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.
| Cursor | Outrunner |
|---|---|
POST /v1/agents | POST /api/v1/workspaces |
prompt.text, prompt.images | prompt, images |
repos[0].url, startingRef | repo_url, base_branch |
repos[0].prUrl | pr_url |
model.id, model.params | model, effort (from GET /models) |
autoCreatePR, workOnCurrentBranch | auto_create_pr, work_on_current_branch |
mode: "plan" | plan_mode: true |
agentId (idempotent create) | Idempotency-Key header |
POST /v1/agents/{id}/runs | POST /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}/stream | GET /workspaces/{id}/runs/{run_id}/stream |
GET /v1/agents/{id}/stream | GET /workspaces/{id}/stream |
POST …/runs/{runId}/cancel | POST /workspaces/{id}/runs/{run_id}/cancel |
GET /v1/agents/{id}/usage | GET /workspaces/{id}/usage |
GET …/artifacts, …/download | GET /workspaces/{id}/artifacts, …/{artifact_id}/download |
POST …/archive, …/unarchive | POST /workspaces/{id}/archive, …/unarchive |
DELETE /v1/agents/{id} | DELETE /workspaces/{id} |
GET /v1/me, /v1/models, /v1/repositories | GET /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.
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
envVarsand inlinemcpServers: 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.jsondescribes it), the CLI, or the MCP server.
Something unclear? Let us know ↗