Skip to main content
The Sandbox API runs code in isolated environments. Use an ephemeral run to preview a script once, or a durable session when you need a longer-lived VM (for example while building or debugging a custom tool). Agents can also use native workbench tools; this page covers the REST surface. See also Tools (custom tools) and Native tools.

Ephemeral vs durable

API endpoints

Example: ephemeral run

Request bodies: SandboxEphemeralDto, CreateSandboxSessionDto — see API reference — Sandbox.
  • Tools — Create custom tools after a successful sandbox preview
  • Browser sessions — Live browser runtime (separate from code sandbox)