Developers

Moving from Cursor's API.

What a script written for Cursor's Cloud Agents API calls on Outrunner instead.

The same work, by other names

A Cursor agent is an Outrunner session. A run is a run: one prompt and what the agent did for it. Basic auth with your key as the user name works as it does on Cursor, so most of a migration is new paths and field names.

CursorOutrunner
POST /v1/agentsPOST /api/v1/workspaces
prompt.text, prompt.imagesprompt, images
repos[0].url, startingRefrepo_url, base_branch
repos[0].prUrlpr_url
model.id, model.paramsmodel, effort (from GET /models)
autoCreatePR, workOnCurrentBranchauto_create_pr, work_on_current_branch
mode: "plan"plan_mode: true
agentId (idempotent create)Idempotency-Key header
POST /v1/agents/{id}/runsPOST /workspaces/{id}/messages
delivery: "steer"The same message, sent while it works
GET /v1/agents/{id}/runs/{runId}GET /workspaces/{id}/runs/{run_id}
GET …/runs/{runId}/streamGET /workspaces/{id}/runs/{run_id}/stream
GET /v1/agents/{id}/streamGET /workspaces/{id}/stream
POST …/runs/{runId}/cancelPOST /workspaces/{id}/runs/{run_id}/cancel
GET /v1/agents/{id}/usageGET /workspaces/{id}/usage
GET …/artifacts, …/downloadGET /workspaces/{id}/artifacts, …/{artifact_id}/download
POST …/archive, …/unarchivePOST /workspaces/{id}/archive, …/unarchive
DELETE /v1/agents/{id}DELETE /workspaces/{id}
GET /v1/me, /v1/models, /v1/repositoriesGET /me, /models, /projects

Statuses and stream events

Cursor's run statuses map to running (RUNNING), finished (FINISHED), cancelled (CANCELLED) and error (ERROR). Outrunner adds needs_input: the agent asked a question or for secrets, and waits for your answer.

Stream events keep their names: status, assistant, tool_call, result, heartbeat, error and done, plus prompt and needs_input. Last-Event-ID resumes a stream on both.

Webhooks

Instead of one statusChange event, Outrunner sends workspace.ready, turn.completed, needs_input, pr.opened and error, signed with Outrunner-Signature and retried for about nine hours.

Read about webhooks →

Not here yet

A few of Cursor's options have no direct match yet. Each has a way to get the same result:

  • Per-session envVars and inline mcpServers: set them on the session's project, or give secrets when the agent asks.
  • customSubagents: commit them to the repository's .claude/agents.
  • Creating environments and their builds over the API: set projects up in the app, then read and change them over the API.
  • Projects with a coordinator agent: Outrunner's Missions do this in the app.
  • The TypeScript and Python SDKs: call the API over HTTPS (openapi.json describes it), the CLI, or the MCP server.
Tell us what you need ↗

Something unclear? Let us know ↗