From your codeNeeds a repository
Hand off a long task
A run you pick up later
Start a long run from your code, walk away, and pick it up where it left off with a follow-up or from the console.
Best for
- Engineers who start long work and want it to keep going without them
- Long tasks you do not want to babysit
Uses
- An API key
- A connected GitHub repository
From your code
POST /o/{org}/sessionsRequest body
{
"agent": "claude",
"input": "Set up the dev environment and get the e2e tests passing.",
"resources": [
{
"url": "https://github.com/acme/web"
}
]
}Nothing is sent: the button shows the 202 Accepted this request returns.
{
"execution_id": "7c1e9a4f-2b6d-4f83-a5c0-9e3d1b8f6a24",
"org_id": "acme",
"status": "queued",
"harness": "claude",
"created_at": "2026-10-09T00:56:44.205Z"
}Watch it work, then read what comes back
GET /o/{org}/sessions/{session}/eventsevent: tool_usebash · bun installevent: tool_usebash · bun run test:e2eevent: tool_result3 failed, 41 passedevent: messageTwo failures were a missing env var; one is a real bug.GET /o/{org}/sessions/{session}- status
paused- result
41 of 44 e2e tests pass; one real bug found
Steps
- 01
Start it
POST /o/{org}/sessionsanswers at once with the run's id. A run keeps its computer between turns, so you can write to it later. - 02
Walk away
The run keeps going in the cloud. When the turn ends, the sandbox parks with its disk and memory and costs nothing while parked.
- 03
Pick it back up
GET /o/{org}/p/_/sessions/{id}reads where it got to,POST …/sessions/{id}/messagessends a follow-up and wakes it, and the console shows the same run.