Skip to main content
Sandbox.create() boots a fresh VM and returns when it’s ready to use. There’s no readiness check or polling - the returned instance is already active.

With options

Attach metadata tags, inject environment variables, cap the active lifetime, or lock down network egress at creation time.
Use secrets for credentials, not envVars. A secret binds an env var to a stored credential and attaches the real value to outbound requests — the real credential never enters the sandbox. See Secrets.

Common options

See the Sandbox reference for every option including apiKey, baseUrl, and signal.

Create from a template

Boot a sandbox from a system or team template via fromTemplate (name, UUID, or Template instance).
The sandbox’s vCPU, memory, and disk size are inherited from the template; they cannot be overridden. See Templates overview for how to build your own. Next: run commands, write files, or pause the sandbox to save costs between runs.