Overview

The Sandbox API provides VM-based code execution with configurable resources, network access, and toolchains. Sandboxes run on infrastructure you control. For organization-scoped templates and long-lived instances, see Cloud Sandboxes.

Base URL

Local development:

Endpoints

Get capabilities

Response:

Execute code

Request body: Response:

Streaming execution

Response (SSE):

Health check

Response:

Security

  • Buffered /sandbox/execute runs on the VM driver; when a warm pool is configured it checks out a health-checked VM and returns it afterwards, and a checkout failure returns 503 rather than falling back to an unsandboxed run.
  • /sandbox/execute/stream spawns the process directly with a cleared, allow-listed environment and caps the timeout at 300 seconds. It does not use the VM driver.
  • network_enabled defaults to false.
  • Execution timeout is enforced by the server.

Error codes