Skip to main content
rt.sandbox is the programmatic way to spin up, drive, and tear down sandboxes. create() hands you a live Sandbox object you can exec against, subscribe to for status and metrics, and pause or destroy when you’re done.

Create

SandboxCreateOptions

Workspace mount paths must be /workspace or a subpath under /workspace. When an agent uses this sandbox, the mounted workspace is persistent filesystem state the agent can carry across runs.

List

Filters include status, tags, template, exclude_template, limit, cursor, and admin-only all.

Get an Instance

get() returns a local Sandbox object. It does not fetch immediately; methods and subscriptions use the API.

Execute

Lifecycle

Dev URLs, SSH, and logs

These live on the manager and take a sandbox id:

Wait and Subscribe

Accessors

Not In The SDK

Named checkpoint and restore operations are not public SDK methods. Use pause/resume for lifecycle preservation.