Overview
Quickstart
One key, every sandbox provider. Your first command runs in under a minute.
SandboxPlease routes each sandbox to a healthy provider, falls back when one fails, and bills usage at each provider's list price. Press ⌘K to search the docs.
For agents
Paste this into Claude Code, Codex, Cursor…
Read https://sandboxplease.com/agents.md and use SandboxPlease to run code in sandboxes.
What your agent reads: agents.mdAuthentication
Send your key as a bearer token on every call to https://api.sandboxplease.com. The SDKs read SANDBOXPLEASE_API_KEY so new SandboxPlease() needs no argument. A key can carry a credit limit that resets daily, weekly or monthly; a sandbox created past the limit is refused, and running sandboxes are killed when it is reached.
Authorization: Bearer sp-v1-…Choosing a sandbox
A sandbox is provider/size, for example e2b/standard. small (1 vCPU, 2 GB), standard (2 vCPU, 4 GB) and large (8 vCPU, 16 GB) are what you ask for. A provider with fixed machine types runs the next one up, and a provider that cannot run a size is skipped. Pass auto to let SandboxPlease choose, or any other shape as size: { cpu, memory_gb }. A provider with its own size names takes them too, for example minisandbox/default (4 vCPU, 8 GB). Sandboxes lists the shape each provider really runs for each size, and the price it bills.