Vercel Sandbox vs Modal VM Sandboxes

Both run each sandbox in its own VM with its own kernel, and both end a session within 24 hours. Vercel Sandbox is a Firecracker microVM that saves its files at every stop and resumes by name, in 19 regions. Modal VM Sandboxes run on Cloud Hypervisor with systemd and Docker, carry work forward through filesystem snapshots, and sit next to Modal's inference and training.

The companies and products

Vercel Sandbox

Vercel is a cloud platform for web apps and agents, and Vercel Sandbox is its product for running untrusted or agent-written code in isolated Linux microVMs.

Each sandbox is a Firecracker microVM with its own kernel, started from a Vercel image, your own OCI image, or a saved snapshot. You drive it with the JavaScript or Python SDK or the sandbox CLI: run commands, move files, open ports, fork sandboxes, mount Drives and set network rules. Sandboxes are persistent by default: each stop saves the filesystem, and the next session resumes from it. Vercel aims it at code interpreters, app builders, test runs, developer environments and agent workspaces. Its docs suggest a VM for 24/7 hosting.

Modal VM Sandboxes

Modal is a serverless cloud for AI work, and VM Sandboxes are the version of its sandboxes that run in a virtual machine with their own Linux kernel.

You create a VM Sandbox from Python, TypeScript or Go code with runtime="vm", run commands in it, and terminate it when the job is done. Modal built the runtime on the Rust-based Cloud Hypervisor, so Docker, FUSE, systemd and nested cgroups work, with the same API, images and prices as its gVisor sandboxes. It became generally available on 1 October 2026. It suits teams that want many agent machines next to Modal's inference and training.

Which use cases each one fits

For each use case, Battleships prices every sandbox provider on the same workload and sorts them from the cheapest monthly bill up. “27th cheapest of 336” means 26 of the other 335 providers run that workload, with every feature it needs, for less. “With limits” means the provider runs it but misses something, so it is listed after every full match. Open a use case for its whole ranking and what each provider misses.

Use case and its workloadVercel Sandbox: price rankModal VM Sandboxes: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Modal VM Sandboxes fit a software factory with your own setup: Docker in a real VM, a desktop from Modal's VNC example, and filesystem snapshots to carry work forward ($633 a month in this preset). Vercel is a compromise: no built-in desktop, no nested virtualization and a 24-hour session cap ($3,351). boat fits at $634 with a built-in desktop.
259th of 365, with limits
$3,351 a month
27th cheapest of 365
$633 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Both end each session within 24 hours, so an agent that lives on its machine all month needs a daily restart on either. Vercel resumes from its snapshot; on Modal you snapshot the filesystem and boot a new sandbox. On boat, turn auto-stop off (default 1 hour) on a paid plan.
75th of 361, with limits
$3,657 a month
Not ranked: misses a requirement6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Short code bursts fit Vercel Sandbox, which bills CPU only while code uses it. boat's start limits slow very large bursts.
27th cheapest of 336
$216 a month
Not ranked: misses a requirement189th of 336, with limits
$2,000 a month
Sandboxes for your users
300 at once · 2 vCPU / 4 GB · 30,000 sessions of 23 min a month
Vercel Sandbox fits sandboxes you hand to your users, at $1,267 a month in this preset. boat fits at $209.
25th cheapest of 349
$1,267 a month
Not ranked: misses a requirement3rd cheapest of 349
$209 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
Large bursts of short rollouts suit Vercel Sandbox, which fits fully here. Modal VM Sandboxes and boat are a compromise.
7th cheapest of 349
$15,761 a month
163rd of 349, with limits
$11,982 a month
39th of 349, with limits
$2,000 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
81st cheapest of 359
$1,508 a month
Not ranked: misses a requirement10th cheapest of 359
$200 a month
CI runners
40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month
Vercel Sandbox fits CI runs fully; Modal VM Sandboxes are a compromise here. boat fits at $86 a month in this preset, with /dev/kvm on every sandbox.
112th cheapest of 374
$1,144 a month
170th of 374, with limits
$655 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
283rd of 371, with limits
$145 a month
Not ranked: misses a requirement19th cheapest of 371
$26 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
Neither has a built-in desktop. Modal has a runnable example that installs Xvfb, VNC and Chromium; on Vercel you install a browser with root. boat streams a 60 fps desktop with computer tools.
263rd of 367, with limits
$952 a month
Not ranked: misses a requirement7th cheapest of 367
$200 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
100th of 356, with limits
$486 a month
Not ranked: misses a requirement7th cheapest of 356
$200 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
109th cheapest of 343
$468 a month
Not ranked: misses a requirement6th cheapest of 343
$90 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
234th of 327, with limits
$9,960 a month
Not ranked: misses a requirement73rd of 327, with limits
$1,800 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
Both fit parallel red teaming: Modal VM at $464 a month in this preset, Vercel at $554. boat fits at $200.
31st cheapest of 351
$554 a month
27th cheapest of 351
$464 a month
3rd cheapest of 351
$200 a month
GPU eval jobs
10 at once · 8 vCPU / 32 GB · 500 sessions of 30 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement
macOS agents
5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month
Not ranked: misses a requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureVercel SandboxModal VM Sandboxesboat
IsolationFirecracker microVM with its own kernelVM with its own Linux kernel on Cloud HypervisorFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026)12.66 runs/s, rank 7 of 15 (shared)VM runtime 15.48 runs/s, gVisor 12.60, both rank 7 of 15 (shared); measured with cpu=428.06 runs/s, 2nd of 15 (shared), on a Ryzen 9 9950X host
Longest session24 hours per session on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox then resumes from its snapshot, with no cap on total lifetime24 hours, default 5 minutes; continue in a new sandbox from a filesystem snapshotNo session cap once you turn auto-stop off on a paid plan; auto-stop defaults to 1 hour and goes up to 30 days
Saving filesFilesystem snapshot at every stop, on by default, $0.08/GB-month; expires 30 days after last use, or never if you set it; the sandbox resumes from it by name. Plus DrivesNo paused state; you call snapshot_filesystem() and boot a new sandbox from it (kept 30 days by default, or with no expiry), or keep files in a VolumeDisk saved every minute and at each stop, with no code and at no charge; a stopped disk is kept at least 14 days; saved snapshots never expire
Memory snapshotsNo; processes start again on every resumeYes, in alpha: snapshotting ends the sandbox, and snapshots expire after 7 daysNo; a resume is like a reboot
Docker and systemdDocker with sudoDocker, systemd and FUSE; you start dockerd yourselfDocker, root and systemd in every sandbox
Nested virtualizationNo; Firecracker does not expose /dev/kvm to guestsEnterprise plan only, as an experimental optionYes, /dev/kvm on every sandbox
Desktop, browser, computer useNo built-in desktop, browser or computer-use API; you install Chromium and agent-browser yourself (root access, Vercel guide) or connect an external cloud browserNot built in; Modal's runnable example installs Xvfb, x11vnc, noVNC, Chromium and a Browser Use agentBuilt in: 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsYou install the harness in the image; official examples cover the Claude Agent SDK and OpenCodeSeven harnesses installed, with an API to prompt, steer and stream events
Keys kept outside the sandboxCredentials brokering injects headers for any HTTPS domain you allowSecrets are environment variables, or you run a credential-injecting proxy in a Sidecar (experimental), from an official exampleOptional AI credentials proxy ($1 per day while on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
Inbound accessPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPEncrypted and raw TCP tunnels, connect tokens, inbound IP allowlistUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 of their own); no static IP
Outbound network rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while running, on every planBlock all, IP-range allowlist, domain allowlist (beta)No provider-side allowlist; firewall inside the VM
Custom imagesYour own OCI images from a Dockerfile, via Vercel Container RegistryCustom images through the same API as Modal's other sandboxesStart from boat's image or a saved snapshot (template), shareable by code; you cannot boot your own Docker or OCI image
Regions19 regions across the US, Europe, Asia, South America, Africa and AustraliaUS, EU and Asia-Pacific plus narrower regions; pinning a region costs 1.15x to 1.75xGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureVercel SandboxModal VM Sandboxesboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdNot publishedYesYes
Desktop GUINo documented wayWith your own setupYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayWith your own setupYes
SSHNo documented wayWith your own setupYes
Persistent diskYesWith your own setupYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsYesNo documented wayYes
Fork/cloneYesYesYes
Live fork (no pause)YesNot publishedYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayYesNo documented way
Wake on requestNo documented wayNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesWith your own setupYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesWith your own setupYes
Agent harness APINo documented wayNo documented wayYes
MCP serverYesNo documented wayNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayNo documented wayNo documented way
Open sourceNo documented wayNo documented wayNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesNot publishedYes
Usage per sandbox (API)No documented wayNot publishedYes
Audit logsNot publishedYesNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesYesNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Vercel Sandbox12.66 runs/s
Modal VM Sandboxes15.48 runs/s
boat28.06 runs/s

All three ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026 (run 37073680030). Modal's VM runtime did 15.48 runs per second, its gVisor runtime 12.60, and Vercel Sandbox 12.66; all three share rank 7, so the run cannot separate them. boat did 28.06, second of 15. StarSling ran Modal with cpu=4 and the sandbox saw 4 CPUs (PR #121); Modal bills that as 4 cores, $0.76/h. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure. Providers ran on different hardware in different regions. This measures CPU speed only, not start time.

V8 Web Tooling Benchmark at a 4 vCPU / 8 GB target, runs per second, higher is better. Source: StarSling's run of 3 October 2026 (run 37073680030), median of 5 sandboxes. Providers ran on different hardware in different regions. StarSling gives a shared rank when the run cannot separate two providers. Modal VM Sandboxes measured on: VM Sandbox, request = size. Every boat sandbox in this run ran on an AMD Ryzen 9 9950X host. boat also places some sandboxes on AMD Ryzen 7 9700X hosts, which this run did not measure.

Pricing in five scenarios

Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.

ScenarioVercel Sandbox, a monthModal VM Sandboxes, a monthboat, a month
One coding agent, workdays
4 vCPU / 8 GB, 50 GB disk, 8 hours a day, 22 days a month, files kept between days
$57 · Pro$0 · Starter$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$236 · Pro · with limits$109 · Starter · with limits$26 · $20/mo
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$2,884 · Pro$1,480 · Starter$317 · $20/mo × 3 seats
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$828 · Pro$579 · Team$200 · $100/mo × 2 seats
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$3,152 · Pro$1,911 · Team · with limits$8,800 · $2000/mo · with limits

Vercel Sandbox: Vercel charges for CPU only while your code uses it ($0.128 per vCPU-hour in iad1), and for memory for the whole time the sandbox runs ($0.0212 per GB-hour). It adds $0.60 per million sandboxes created, $0.08 per GB-month of snapshots, and $0.05 per GB-month for Drives plus reads and writes. The $20 Pro credit is shared with your other Vercel usage.

Modal VM Sandboxes: Modal bills per second for the larger of the CPU and memory you request and what you use, until the sandbox ends. It prices CPU per physical core, and one core equals two vCPUs, so 4 vCPU / 8 GiB is 2 cores + 8 GiB: $0.476 an hour when the request equals the size. Starter costs $0 with $30 of credit a month, and Team $250 a month with $100 of credit. Pinning a region multiplies the price by 1.15x to 1.75x.

Modal VM Sandboxes: boat charges a flat price per size, per second, while the sandbox runs, busy or idle: $0.036 an hour for 4 vCPU / 8 GB. Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A stopped sandbox has no compute charge, but saved snapshots above the plan's count and the optional AI credentials proxy still charge. Starts above the plan's included number cost $0.03 to $0.07 each.

Limits in those scenarios

For one agent that never stops, both end each session at 24 hours. Vercel resumes from its snapshot with processes started again. Modal needs a filesystem snapshot and a new sandbox each day, which your code sets up. Modal's scenario bills assume a minimal CPU request that bursts above it; that extra CPU is shared and not guaranteed. For 1,000 short jobs at once Vercel fits at $3,152 a month. boat does not fit it: even the $2,000 plan includes 90 starts a minute, 600 an hour and 2,400 a day, starts above that are paid, and starts above 270 a minute fail with 429. Other boat limits: a stopped disk is kept at least 14 days unless you save a snapshot, memory is not saved, no GPU, and no US or Asia region.

ScenarioVercel SandboxModal VM Sandboxesboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
  • Starter: sessions capped at 24 h
None for this scenario
50 agents in parallelNone for this scenarioNone for this scenarioNone for this scenario
Sandboxes for your usersNone for this scenarioNone for this scenarioNone for this scenario
1,000 short jobs at onceNone for this scenario
  • shared vCPUs on this tier (Modal (VM Sandboxes) sells dedicated cores separately as “VM Sandbox, request = size”): heavy, sustained CPU use can be slowed by other tenants
  • 2,400 starts/day included, paid above that (needs ~6,667)
  • 600 starts/hour included, paid above that (needs ~1,000)
  • starts above 90/min are paid, and starts above 270/min fail with 429

Which one should you use?

Use Vercel Sandbox when

you run many short bursts of untrusted code close to users around the world, want files saved at every stop without extra code, or already deploy on Vercel.

  • Regions all over the world. Useful if your users are spread out: Vercel Sandbox runs in 19 regions, from Virginia to Tokyo, Sydney and Cape Town.
  • Files come back on their own. Every stop saves a filesystem snapshot and the next session resumes from it by name; on Modal you call the snapshot yourself.
  • Dockerfile images and brokered keys. Useful if you already have a Dockerfile: boot sandboxes straight into it, and inject API keys for allowed domains from outside.

Use Modal VM Sandboxes when

you need systemd, raw TCP tunnels, memory snapshots or a large disk in VMs that finish within a day, or already run your models and GPUs on Modal.

  • A fuller Linux kernel. Useful for agents that need systemd, FUSE, raw TCP tunnels or a 512 GiB disk in a real VM.
  • Memory snapshots and large bursts. Modal can clone a sandbox with its processes still running (alpha) and runs 5,000 containers at once on Team.
  • One platform with inference and training. Useful if you already serve or train models on Modal: sandboxes and models sit on one account and one bill.

Where boat fits

Vercel Sandbox and Modal VM Sandboxes both end a session within a day. If your agents work for hours or days on one machine, with builds, Docker, emulators and a browser to check their work, look at boat. It saves the disk with no code, has no session cap once auto-stop is off, and did more CPU work in one benchmark. boat runs only in Europe and caps starts per plan.

Agents that run past a day

Both end each session at 24 hours. Vercel resumes from a snapshot and restarts every process. On Modal you snapshot the filesystem and boot a new sandbox. On boat, turn auto-stop off (default 1 hour); a resume is like a reboot, and a machine failure loses writes after the last good snapshot.

A desktop and a browser built in

Neither has a built-in screen. On Modal you follow its example to set up Xvfb and VNC; on Vercel you install a browser with root or connect a cloud browser. boat streams a 60 fps desktop with Chrome and computer tools.

More CPU work and /dev/kvm everywhere

In StarSling's run of 3 October 2026, boat did 28.06 V8 Web Tooling runs/s, against 15.48 for Modal's VM runtime and 12.66 for Vercel. boat gives /dev/kvm on every sandbox; Vercel has no nested virtualization, and Modal offers it on Enterprise only.

Use boat when your agents work for hours or days on one machine: builds, Docker, emulators and a built-in desktop with a browser, on a VM that saves its disk with no code, with an API to drive the agents inside. Check the start limits of your plan first. Compare it one to one: boat vs Vercel Sandbox and boat vs Modal VM Sandboxes.

boat's own limits
  • Plans start at $20 a month. The plan price comes back as VM time for that month. Unused time does not carry over. Source
  • Starts (create, fork, resume): the $20 plan includes 12 a minute, 60 an hour and 200 a day. The $2,000 plan includes 90 a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07. A start fails with 429 above 3 times the included starts per minute, or 6 times per hour or per day. Source
  • A stopped sandbox has no compute charge. boat keeps its disk for at least 14 days. A saved snapshot keeps it longer; extra saved snapshots and the AI credentials proxy are paid. Source
  • Auto-stop defaults to 1 hour. You can turn it off on a paid plan. The trial allows 2 hours at most. Source
  • boat saves the disk every minute and at each stop. Memory, running programs and /tmp are not saved: a resume is like a reboot. A machine failure loses writes after the last good snapshot. Source
  • Machines run in Germany, Finland and France only. Snapshot copies can be stored outside the EU. Source
  • Public IPv6 and outbound IPv4. No dedicated IPv4. The IP changes at each resume. Source
  • Hosts are AMD Ryzen 7 9700X and Ryzen 9 9950X. vCPUs are shared. No GPU. You cannot boot your own Docker image. Source

Questions people ask

Is Vercel Sandbox cheaper than Modal VM Sandboxes?

Usually not. Modal costs less in four of our five scenarios: $0 against $57 for one workday agent inside Starter's credit, and $1,480 against $2,884 for 50 parallel agents. On Modal you snapshot the filesystem to keep files between sessions. For 1,000 short jobs at once Vercel fits at $3,152, and Modal is $1,911 on shared burst CPU. boat costs $20 and $317 for the first two; it does not fit the 1,000-job burst.

Which is faster, Vercel Sandbox or Modal VM Sandboxes?

The run cannot separate them. On the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, in StarSling's run of 3 October 2026, Modal's VM runtime did 15.48 runs per second and Vercel Sandbox did 12.66, both at shared rank 7. boat did 28.06 on a Ryzen 9 9950X host. This measures CPU speed only, not start time.

Can Vercel Sandbox and Modal VM Sandboxes run Docker?

Yes, both run Docker inside their VM: Vercel with sudo, and Modal with systemd, where you start dockerd yourself. Vercel has no nested virtualization, and Modal offers it on the Enterprise plan only, as an experimental option. boat runs Docker and exposes /dev/kvm on every sandbox.

Can either run 24/7?

Not as one session. Vercel Sandbox stops after 24 hours on Pro and Enterprise and resumes from its filesystem snapshot with processes started again. A Modal VM Sandbox also ends within 24 hours; you snapshot its filesystem and boot a new sandbox from it, or keep files in a Volume. boat has no session cap once auto-stop is off on a paid plan.

Do they have a desktop or browser for computer use?

Not built in. On Vercel you install Chromium and agent-browser with root or connect a cloud browser. Modal has a runnable example that installs Xvfb, VNC, Chromium and a Browser Use agent. boat includes a 60 fps desktop, Chrome, computer tools and a browser-control API.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons