Skip to main content
A Session is an ephemeral sandbox bound to an Agent. One session = one task = one sandbox. The sandbox is created, the agent runs to completion, and the sandbox is destroyed. For process-mode agents that take input and produce a result. Typical mapping: one Session per webhook, API call, or batch job.

Create session

The platform creates a sandbox, writes input to /tmp/agent_input.json, sets AGENT_INPUT_PATH as an env var, and runs the agent’s entrypoint. The agent reads input, does work, writes its result to /tmp/agent_result.json, and exits. Returns 201 with status: "creating".

Get / Delete

Get result

Returns the agent’s output after completion. The platform reads /tmp/agent_result.json from the sandbox.

Session object

Lifecycle

Terminal states are final. The sandbox is destroyed when the session ends.