One API for every sandbox.

Start isolated sandboxes for AI agents, code execution and tests with one API key. Use our own gVisor sandboxes on free credit, or route to E2B, Daytona, Modal and more with your own provider keys.

Sign in with GitHub, get $5 free credit

How it works

  1. Sign in with GitHub. New accounts get $5 of free credit.
  2. Create an API key in the dashboard.
  3. Create a sandbox, run commands, move files, delete it. Pay per second of use.
  4. Optional: add your own E2B, Daytona or Modal key and send "provider": "e2b"; routing to your own accounts is free.

Quick start

# create a sandbox, run a command, delete it
export SANDROUTER_API_KEY=sr_live_...

curl -s https://api.sandrouter.dev/v1/sandboxes \
  -H "Authorization: Bearer $SANDROUTER_API_KEY" \
  -d '{"provider": "auto"}'
# -> {"id": "sbx-...", "state": "ready", ...}

curl -s https://api.sandrouter.dev/v1/sandboxes/sbx-.../exec \
  -H "Authorization: Bearer $SANDROUTER_API_KEY" \
  -d '{"cmd": ["python3", "-c", "print(2 + 2)"]}'

curl -s -X DELETE https://api.sandrouter.dev/v1/sandboxes/sbx-... \
  -H "Authorization: Bearer $SANDROUTER_API_KEY"

Endpoints: create, get, list, delete, exec (also streaming), background processes, files, time-to-live. Python, TypeScript and Go SDKs, a CLI and an MCP server are coming with the launch.

Pricing

SandboxPrice
Sandrouter sandboxes (gVisor)$0.05 per vCPU-hour + $0.005 per GiB-hour, billed per second, from prepaid credit
Your own provider accounts (E2B, Daytona, Modal, ...)Free routing; the provider bills you directly

New accounts: $5 free credit (GitHub accounts older than 30 days, one per GitHub account).