Hobby
Free
Monthly allowance
- 5 Active CPU hours
- 420 GB-hours memory
- 5,000 creations
- 45-minute sessions
- 10 concurrent sandboxes
Respan Gateway: up to 40% off tokens on Gemini, GPT, Claude and 1,000+ more models. One API key, 0% fee.
Vercel Sandbox is Vercel's product for running untrusted or agent-generated code. Each sandbox runs in its own Firecracker microVM with a dedicated kernel, filesystem, and network, on Linux images that come with Node.js, Python, coding agents, and common tools, and you can bring your own image through Vercel Container Registry. Sandboxes allow root access, so agents can install packages, run Docker, and expose up to 15 ports for live previews.
Agents control sandboxes through the @vercel/sandbox JavaScript SDK, a Python SDK, or the sandbox CLI. Sandboxes persist by default, saving state when they stop and resuming where they left off, while snapshots and Drives keep files and installed packages across runs. Network controls restrict outbound traffic, Vercel can supply credentials for private services from your team's configuration, and sandboxes run in 19 Vercel regions.
Pricing follows Vercel's Active CPU model: CPU is billed only while code is running, at $0.128 per hour in the default region, while provisioned memory bills for the whole session at $0.0212 per GB-hour, plus $0.60 per million sandbox creations. Hobby includes 5 hours of active CPU a month with 45-minute sessions, and Pro draws from its $20 monthly credit before usage billing, with sessions up to 24 hours and up to 8 vCPUs. Because memory keeps accruing while a sandbox waits on model calls, stopping idle sandboxes matters as much as CPU efficiency, and since Vercel Sandbox runs on a Vercel account, it's worth comparing the Vercel Sandbox alternatives if you'd rather keep code execution off Vercel.
Core capabilities this platform advertises.
What this tool does well, and the limitations to keep in mind.
Pros
Cons
What's included in each plan, and how the tiers compare.
Free
Monthly allowance
$0.128/Active CPU hour
Usage, after the $20 monthly credit
Custom
Annual contract
Teams building agents or apps on Vercel that need to run untrusted or generated code
Respan routes your agent's model calls across 1,000+ models at up to 55% off tokens and traces every sandbox run alongside the call behind it. Book a demo to see it on your own traffic.
Top companies in Agent Sandboxes you can use instead of Vercel Sandbox.
E2B
A Firecracker microVM for each agent session
Daytona
Isolated sandboxes with a dedicated kernel and network stack
Blaxel
MicroVM sandboxes with an in-memory root filesystem
Runloop
Micro-VM sandboxes with a container isolation layer
Microsandbox
Apache 2.0 open-source runtime
Cloudflare Sandbox
Container microVMs with their own kernel and network
Side-by-side comparisons with other tools in this category.