Sandbox.create(). The sandbox starts immediately and is ready for operations once the method returns.
Basic Usage
Options Reference
| Option | Type | Default | Description |
|---|---|---|---|
template | string | "base" | Template ID or name |
timeout / timeoutMs | number | 300s / 300000ms | Auto-termination timeout |
metadata | object | {} | Custom key-value pairs |
envs | object | {} | Environment variables |
allow_internet_access / allowInternetAccess | boolean | true | Enable outbound network |
network | object | null | Fine-grained network control |
mcp | object | null | MCP server configuration |
secure | boolean | true | Enable security features |