SandboxSDK reference

SDK reference

Use the TypeScript and JavaScript SDK or the HTTP API from Python. The SDK and API guides contain complete examples organized by task.

Client

Sandbox lifecycle covers client setup, creation, resource settings, listing, and reconnecting to existing sandboxes.

Parallel tasks and fleets covers batches, retry keys, and named workers.

Sandbox instance

Commands and files covers shell commands, output, files, and outbound network policy.

Agents and sessions covers prompts, streaming, and isolated task changes.

Previews and snapshots covers running apps and saved workspaces.

Durable sessions

Reconnect to a durable turn using saved sandbox, session, and turn IDs.

GPU leases

GPU leases covers temporary accelerators with spend and lifetime limits.

Lifecycle

Stop, resume, and delete with TypeScript or Python.

Next

Open the SDK and API overview to choose a guide.