Skip to content Skip to content

Cursor Cloud

cursor_cloud runs Cursor Cloud Agents through the official Cursor SDK so Paperclip can keep task state while Cursor handles remote code execution. Use it when you want durable remote Cursor agent sessions that survive between Paperclip heartbeats.


  • You want Paperclip to run Cursor Cloud Agents through the official Cursor SDK.
  • You want durable remote Cursor agent sessions across Paperclip heartbeats.
  • You want Paperclip to keep task state while Cursor handles remote code execution.
  • You want local execution on the same machine as Paperclip. Use Cursor Local.
  • You do not have a Cursor API key or a Cursor account that allows cloud agents.
  • The work the agent needs to do cannot be expressed as a repository checkout.

FieldRequiredNotes
repoUrlyesGit repository URL Cursor should open.
repoStartingRefnoStarting ref for the repo.
repoPullRequestUrlnoPull request URL to attach the agent to.
runtimeEnvTypenocloud, pool, or machine.
runtimeEnvNamenoNamed cloud, pool, or machine target.
workOnCurrentBranchnoContinue work on the current branch instead of cutting a new one.
autoCreatePRnoLet Cursor auto-create a pull request.
skipReviewerRequestnoSuppress the reviewer request on auto-created PRs.
instructionsFilePathnoAgent instructions file prepended to the prompt.
promptTemplatenoHeartbeat prompt template.
bootstrapPromptTemplatenoFirst-run-only bootstrap prompt template.
modelnoCursor model id. Omit to use the account default.
env.CURSOR_API_KEYyesCursor API key. Use a Paperclip secret reference.
env.*noAdditional environment variables injected into the cloud agent shell.

Paperclip reuses the durable Cursor agent across heartbeats when the repo and runtime identity still match. Each Paperclip heartbeat maps to a Cursor run on that durable agent. If the repo URL, starting ref, or runtime environment changes, Paperclip starts a fresh Cursor agent.


  • Paperclip drives the agent through the Cursor SDK rather than a local CLI.
  • Paperclip injects PAPERCLIP_* runtime env vars into the cloud agent shell via the Cursor SDK cloud envVars channel.
  • Paperclip remains the source of truth for issue and task state. Cursor provides the remote execution surface.


{
"adapterType": "cursor_cloud",
"adapterConfig": {
"repoUrl": "https://github.com/example-org/example-repo",
"repoStartingRef": "main",
"runtimeEnvType": "cloud",
"workOnCurrentBranch": false,
"autoCreatePR": true,
"skipReviewerRequest": false,
"promptTemplate": "You are the engineering lead. Work carefully and report progress.",
"bootstrapPromptTemplate": "Bootstrap the working environment, then await instructions.",
"env": {
"CURSOR_API_KEY": {
"type": "secret_ref",
"secretId": "secret-id",
"version": "latest"
}
}
}
}