Cloud & Architecture · Freemium
Vercel Sandbox
Vercel Sandbox is Vercel's service for running untrusted or agent-generated code in isolated Linux microVMs. Vercel's docs say each sandbox runs in a Firecracker microVM with its own filesystem and network, and can run workloads that need system privileges, such as Docker, VPN clients or FUSE drivers. Developers control it through the Sandbox CLI and the JavaScript and Python SDKs. The default image is Ubuntu-based with Node.js, Python and common tools, with root access.
Who it is for: teams that build coding agents, AI code validation steps, preview environments for user-submitted code, or multi-agent setups, especially those already deploying on Vercel.
Key features: - Persistent sandboxes. By default, stopping a sandbox snapshots its filesystem automatically, and the next SDK call starts a new session from that snapshot. Memory and running processes are not carried over: each resume boots a new VM session. Snapshots expire 30 days after last use by default, and sandboxes that can no longer resume are removed after 14 days of inactivity. - Session limits: a default timeout of 5 minutes, extendable to 45 minutes on Hobby and 24 hours on Pro and Enterprise. The cap applies per session, so a persistent sandbox can live much longer. - Up to 8 vCPUs and 16 GB of memory on Pro (32 vCPUs and 64 GB on Enterprise), 64 GB of ephemeral NVMe disk, network controls, drives for shared data, and a choice of regions.
Pricing type: usage-based. As of November 26, 2026, Vercel's pricing docs list, for Pro in the default iad1 region, $0.128 per hour of Active CPU, $0.0212 per GB-hour of provisioned memory, $0.60 per million sandbox creations and $0.08 per GB-month of snapshot storage. Active CPU counts only the time code is using the CPU, not time spent waiting on network calls or a model. Memory is billed for the whole time the sandbox runs, in one-minute minimum increments, at 2 GB per vCPU. Hobby includes a monthly allowance (5 Active CPU hours and 420 GB-hours of memory), and Pro usage draws first on the plan's $20 monthly credit. Rates vary by region.
Limitations: because resume starts a new session from a filesystem snapshot, anything held only in memory, such as a running dev server or a loaded model, has to be restarted.
Use it for short-to-medium agent tasks where code spends most of its time waiting on a model. Look elsewhere if you need memory and processes to survive an idle gap.
Alternatives: E2B, Daytona, Modal Sandboxes, AWS Lambda MicroVMs and Cloudflare Containers.
Official URL: https://vercel.com/sandbox
