← Providers
Vercel Sandbox
provider: "vercel"
Bills active CPU only; this is the 100%-CPU price, idle work costs less.
Price per hour
| 1 vCPU · 2 GB | $0.170 |
| 2 vCPU · 4 GB | $0.341 |
| 4 vCPU · 8 GB | $0.682 |
| 8 vCPU · 16 GB | $1.36 |
| 16 vCPU · 32 GB | max 8 vCPU |
| 32 vCPU · 128 GB | max 8 vCPU |
Source: vercel.com/docs/vercel-sandbox/pricing, checked 2026-11-04.
Adapter
- Supports
- Exec + streaming · Files
- Max size
- 8 vCPU · 16 GB
- Routing
- Chosen when it's the cheapest fit, or as a fallback
- Docs
- vercel.com
setup
npm i @sandboxrouter/sdk @vercel/sandbox
export VERCEL_OIDC_TOKEN=...
# or
export VERCEL_TOKEN=...
export VERCEL_TEAM_ID=...
export VERCEL_PROJECT_ID=...use Vercel Sandbox
import { Router } from "@sandboxrouter/sdk";
const router = new Router();
const sbx = await router.create({ vcpu: 2, memoryGb: 4 }, { provider: "vercel" });
await sbx.exec("uname -a", { onStdout: (c) => process.stdout.write(c) });
await sbx.kill();