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

  • Each sandbox runs in an isolated VM — no shared state between executions.
  • Network access is disabled by default; enable explicitly with network_enabled.
  • Resource limits prevent runaway processes.
  • Execution timeout is enforced even if the process ignores signals.

Resource limits

Error codes