Modal vs Vercel Sandbox
Modal runs sandboxes on a large AI compute platform with GPUs, as gVisor containers or, with runtime="vm", as VMs with Docker. Your code keeps a sandbox's disk with a filesystem snapshot. Vercel Sandbox runs each one as a Firecracker microVM with Docker, saves a filesystem snapshot on every stop and resumes from it by name.
The companies and products
Modal
Modal is a serverless cloud for AI work: inference, training, batch jobs and sandboxed code, all driven from Python, TypeScript or Go code.
Modal Sandboxes are containers you create from code, run commands in, and then terminate. By default they run under gVisor, a user-space kernel from Google. Since October 2026 you can also pick a VM runtime with its own Linux kernel for Docker and FUSE (Battleships tracks that as a separate card, Modal VM Sandboxes). Your code can save a sandbox's disk as a filesystem snapshot and start new sandboxes from it. It suits teams that already run models on Modal and want scalable code execution next to their GPUs.
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.
- Default image
- Ubuntu; the universal image adds Node.js 24, Python 3.14, Bun, and Claude Code, Codex, OpenCode and pi preinstalled
- Longest session
- 24 hours on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox resumes from its last snapshot with no cap on total lifetime
- Biggest sandbox
- 8 vCPU / 16 GB on Pro, 32 vCPU / 64 GB on Enterprise
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. “15th cheapest of 336” means 14 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 workload | Modal: price rank | Vercel Sandbox: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory: boat ranks 5th and Modal's VM runtime 27th. Vercel ranks 259th as a compromise, with no built-in desktop and no nested virtualization. | 106th of 365, with limits $633 a month | 259th of 365, with limits $3,351 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Both Modal and Vercel cap a session at 24 hours, so an always-on agent is a compromise on either: Modal ranks 61st and Vercel 75th. boat ranks 6th and has no session cap once auto-stop is off (default 1 h). | 61st of 361, with limits $1,574 a month | 75th of 361, with limits $3,657 a month | 6th cheapest of 361 $657 a month |
| Code interpreter bursts 100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month Both fit short code runs: Modal ranks 15th and Vercel Sandbox 27th. boat ranks 189th, because each run counts against its plan's start limits. | 15th cheapest of 336 $140 a month | 27th cheapest of 336 $216 a month | 189th 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 Sandboxes for your users: boat ranks 3rd, Modal 18th and Vercel Sandbox 25th in this preset's default settings. | 18th cheapest of 349 $671 a month | 25th cheapest of 349 $1,267 a month | 3rd 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 Many short parallel rollouts suit both: Modal ranks 6th and Vercel Sandbox 7th. boat ranks 39th as a compromise, because its start limits slow big bursts. | 6th cheapest of 349 $11,982 a month | 7th cheapest of 349 $15,761 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 | 62nd cheapest of 359 $889 a month | 81st cheapest of 359 $1,508 a month | 10th cheapest of 359 $200 a month |
| CI runners 40 at once · 8 vCPU / 16 GB · 6,000 sessions of 12 min a month CI jobs that build Docker images: boat ranks 2nd, Modal 110th and Vercel 112th. Vercel and boat run Docker by default, Modal with runtime="vm". | 110th cheapest of 374 $1,112 a month | 112th cheapest of 374 $1,144 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box that stays up all day: boat ranks 19th. Modal (129th) and Vercel (283rd) are compromises, because each session stops at 24 hours. | 129th of 371, with limits $9.07 a month | 283rd of 371, with limits $145 a month | 19th cheapest of 371 $26 a month |
| Computer-use agents 50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month boat ranks 7th, Modal 45th and Vercel 263rd. boat has a desktop built in. Modal's official example installs Xvfb, Chromium and noVNC in a VM sandbox. On Vercel you install a browser yourself with root. | 45th cheapest of 367 $153 a month | 263rd of 367, with limits $952 a month | 7th cheapest of 367 $200 a month |
| Browser-use agents 50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month | 57th of 356, with limits $121 a month | 100th of 356, with limits $486 a month | 7th 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 | 98th cheapest of 343 $252 a month | 109th cheapest of 343 $468 a month | 6th 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 | 171st of 327, with limits $5,957 a month | 234th of 327, with limits $9,960 a month | 73rd 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 | 289th of 351, with limits $464 a month | 31st cheapest of 351 $554 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 Modal ranks 18th, with GPUs from T4 to B300. Neither Vercel Sandbox nor boat has a GPU. | 18th cheapest of 102 $1,116 a month | Not ranked: misses a requirement | Not 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 requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Modal | Vercel Sandbox | boat |
|---|---|---|---|
| Isolation | gVisor container by default; VM runtime with its own kernel (runtime="vm") | Firecracker microVM with its own kernel | Full VM with its own kernel on hosts dedicated to boat; vCPUs are shared |
| Docker inside | Yes with the VM runtime; not documented on the default gVisor runtime | Yes, with sudo | Yes, with root and systemd |
| Nested virtualization | VM runtime only, Enterprise plan, as an experimental option | No; Firecracker does not expose /dev/kvm to guests | Yes, /dev/kvm (Android emulator, VMs) |
| Longest session | 24 hours (default 5 minutes); a filesystem snapshot carries the disk to a new sandbox | 24 hours on Pro and Enterprise, 45 minutes on Hobby; the sandbox resumes from its snapshot with no cap on total lifetime | No cap once auto-stop is off on a paid plan (default 1 h, timer up to 30 days) |
| Stop and resume | No in-place stop and resume; your code calls a snapshot. A filesystem snapshot starts new sandboxes (kept 30 days by default, or never expires); Volumes hold shared data | Filesystem snapshot on every stop by default (30-day default expiry, can be never), resumed by name; plus persistent Drives | Disk saved every minute and at each stop; no compute charge while stopped; disk kept at least 14 days, longer with a saved snapshot |
| Memory snapshots | Yes, in alpha: a new sandbox restores an exact clone; snapshots kept 7 days | No; processes start over on resume | No; a resume is like a reboot |
| GPUs | T4 to B300; 10 at once on Starter, 50 on Team | None | None |
| Desktop, browser, computer use | No built-in desktop; the official example installs Xvfb, Chromium, x11vnc and noVNC in a VM sandbox | No built-in desktop; you install a browser yourself with root (Vercel guide) or connect a cloud browser | 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API |
| Custom images | Build images in code or pull any linux/amd64 registry image | Your own OCI images from a Dockerfile, via Vercel Container Registry | Start from boat's image or a saved snapshot; you cannot boot your own Docker image |
| Coding agents | You install a harness in the image (official OpenCode example) | Claude Code, Codex, OpenCode and pi preinstalled; you start them as commands | Seven harnesses preinstalled, with an API to prompt, steer and stream events |
| Keys kept outside the sandbox | Secrets are environment variables, or you run your own proxy in a sidecar (beta) | Credentials brokering injects headers for any HTTPS domain you allow | Optional paid AI credentials proxy ($1 a day + $1 per 1,000 requests) for model providers and HTTPS APIs you add |
| Inbound access | Encrypted and raw TCP tunnels, connect tokens, inbound IP allowlist | Public URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IP | HTTPS URLs for up to 50 ports, token-gated by default; SSH; raw ports over IPv6 on sandboxes without their own IPv4 |
| Outbound network rules | Block all, IP-range allowlist, domain allowlist (beta) | Allow-all, deny-all or a domain and CIDR allowlist, changeable while running | No provider-side allowlist; firewall inside the VM |
| Regions | US, EU and Asia-Pacific; pinning a region costs 1.15x to 1.75x | 19 regions across the US, Europe, Asia, South America, Africa and Australia | Germany, Finland and France; no US or Asia region, no region choice |
Every feature Battleships tracks (43)
| Feature | Modal | Vercel Sandbox | boat |
|---|---|---|---|
| Full VM (own kernel) | No documented way | Yes | Yes |
| Docker inside | No documented way | Yes | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | Yes |
| Systemd | No documented way | Not published | Yes |
| Desktop GUI | With your own setup | No documented way | Yes |
| Browser | With your own setup | With your own setup | Yes |
| Computer-use API | With your own setup | No documented way | Yes |
| SSH | With your own setup | No documented way | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | No documented way | Yes | Yes |
| Fork/clone | Yes | Yes | Yes |
| Live fork (no pause) | Not published | Yes | Yes |
| Memory fork | Yes | No documented way | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | No documented way | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | Yes | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | No documented way | Yes | Yes |
| Secret proxy for any API | No documented way | Yes | Yes |
| Preinstalled agents | With your own setup | Yes | Yes |
| Agent harness API | No documented way | No documented way | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | Yes | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | No documented way | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | Not published | Yes | Yes |
| Usage per sandbox (API) | Not published | No documented way | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
StarSling's run of 3 October 2026 (run 37073680030) ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB. Modal did 12.60 runs/s on gVisor and 15.48 on its VM runtime. Vercel Sandbox did 12.66. Modal and Vercel share rank 7, so the run cannot separate them. boat did 28.06, second of 15, 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.
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 measured on: Sandbox (gVisor), request = size, any region. 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.
| Scenario | Modal, a month | Vercel Sandbox, a month | boat, 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 | $0 · Starter | $57 · Pro | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $109 · Starter · with limits | $236 · Pro · 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 | $1,480 · Starter · with limits | $2,884 · Pro | $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 | $579 · Team | $828 · Pro | $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 | $1,911 · Team · with limits | $3,152 · Pro | $8,800 · $2000/mo · with limits |
Modal: Modal bills by the second for whichever is higher, the CPU and memory you request or what you use. An idle sandbox pays until it is terminated. Modal prices CPU per physical core, and one core equals 2 vCPU, so a 4 vCPU / 8 GiB sandbox is $0.476 an hour at a full request. Starter is free with $30 of monthly credit, Team is $250 a month with $100 of credit, and pinning a region multiplies the price by 1.15x to 1.75x.
Vercel Sandbox: Vercel charges for CPU only while your code uses it ($0.128 per vCPU-hour in iad1), and for memory 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. The $20 Pro credit is shared with your other Vercel usage.
Limits in those scenarios
Both cap a session at 24 hours, so the always-on agent does not fit either: $109 a month on Modal and $236 on Vercel, against $26 on boat with auto-stop off. On Modal your code keeps the disk with a filesystem snapshot, and Docker needs the VM runtime, so the 50-agent fleet fits only Modal's VM runtime. For 1,000 short jobs at once, Vercel fits at $3,152 a month. boat does not fit: even its $2,000 plan includes 90 starts a minute and 2,400 a day, charges for starts above that and refuses starts above 270 a minute. boat also has no GPU and no US or Asia region. A running boat sandbox bills at full rate, busy or idle. A stopped one has no compute charge, but extra saved snapshots and the optional AI credentials proxy still charge.
| Scenario | Modal | Vercel Sandbox | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario | None for this scenario | None for this scenario |
| One agent that never stops |
|
| None for this scenario |
| 50 agents in parallel |
| None for this scenario | None for this scenario |
| Sandboxes for your users | None for this scenario | None for this scenario | None for this scenario |
| 1,000 short jobs at once |
| None for this scenario |
|
Which one should you use?
Use Modal when
your sandboxes need GPUs, sit next to models you already run on Modal, need memory snapshots, or come in huge bursts of short jobs.
- GPUs next to your sandboxes. Useful if your agent trains or runs models: Modal rents GPUs from T4 to B300 on the same platform.
- Huge bursts of short jobs. Modal runs up to 5,000 containers at once on Team and publishes no start-rate cap.
- Memory snapshots. Useful for exact clones: Modal can snapshot a sandbox's memory, though this is still alpha and snapshots expire after 7 days.
Use Vercel Sandbox when
you want Docker and a real kernel in every sandbox, a snapshot on every stop with no code, or regions close to users worldwide.
- Docker and a real kernel by default. Every Vercel sandbox is a Firecracker microVM, so Docker runs with sudo and no special runtime.
- A snapshot on every stop, with no code. Vercel snapshots the filesystem on every stop by default and resumes the sandbox by name. On Modal your code calls the snapshot.
- Regions all over the world. Useful if your users are far from Europe: Vercel Sandbox runs in 19 regions, from Virginia to Tokyo and Sydney.
Where boat fits
Modal and Vercel Sandbox both stop a session at 24 hours, and neither has a built-in desktop. boat fits agents that work for hours on one machine, building, testing and checking what they built. Each boat sandbox is a full VM that saves its disk with no code.
No 24-hour cutoff once auto-stop is off
Both Modal and Vercel end a session at 24 hours. On Modal your code snapshots the disk and starts a new sandbox. On Vercel the files come back, but every process starts over. On a paid boat plan, turn auto-stop off (default 1 h) and there is no session cap.
A desktop and a browser built in
On Modal you build the desktop image yourself; its official example installs Xvfb, Chromium and noVNC. On Vercel you install a browser with root. boat streams a 60 fps desktop with Chrome and computer tools, so an agent can open the app it built and check it.
More CPU work in one public run
In StarSling's run of 3 October 2026 at 4 vCPU / 8 GB, boat did 28.06 runs/s, Modal 15.48 on its VM runtime and 12.60 on gVisor, and Vercel 12.66. The boat sandbox ran on a Ryzen 9 9950X host; boat also places sandboxes on other hosts.
Use boat when your agents work for hours on one machine: builds, tests, Docker, emulators and a desktop with a browser, on a VM that saves its disk with no code. Turn auto-stop off on a paid plan, and check your plan's start limits. Compare it one to one: boat vs Modal and boat vs Vercel Sandbox.
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 Modal cheaper than Vercel Sandbox?
In our scenarios, yes. One workday agent costs $0 on Modal inside its $30 monthly credit, against $57 on Vercel. Sandboxes for your users cost $579 on Modal and $828 on Vercel. 50 parallel agents cost $1,480 on Modal's VM runtime and $2,884 on Vercel. On boat the same three cost $20, $200 and $317. Vercel bills CPU only while busy, so a nearly idle sandbox can cost less there.
Which is faster, Modal or Vercel Sandbox?
The public run cannot separate them. In StarSling's run of 3 October 2026 at 4 vCPU / 8 GB, Modal did 12.60 runs/s on gVisor and 15.48 on its VM runtime, and Vercel did 12.66. boat did 28.06 on a Ryzen 9 9950X host. Providers ran on different hardware.
Can Modal and Vercel Sandbox run Docker?
Vercel Sandbox runs Docker with sudo in every sandbox, since each is a Firecracker microVM. Modal runs Docker on its VM runtime, which you choose with runtime="vm". Every boat sandbox runs Docker with root and systemd.
Can a Modal sandbox keep its files like Vercel does?
Yes, with a call in your code. A Modal filesystem snapshot boots new sandboxes and is kept 30 days by default or indefinitely. Vercel takes that snapshot on every stop by default and resumes by name. boat saves the disk every minute and at each stop with no code.
How long can a sandbox run on Modal or Vercel?
Both stop a session at 24 hours. Modal's default timeout is 5 minutes. Vercel's Hobby plan stops at 45 minutes, and a stopped sandbox resumes from its snapshot with processes starting over. boat has no session cap once auto-stop is off on a paid plan (default 1 hour).
Do Modal or Vercel Sandbox have GPUs?
Modal does, from T4 up to B300, on its default gVisor runtime. Vercel Sandbox and boat have no GPUs, so for GPU jobs Modal is the pick.
Is boat SOC 2 compliant?
No SOC 2 report today; SOC 2 is in progress. Modal has SOC 2 Type II, and Vercel has SOC 2 Type 2. Live status is at status.ascii.dev and our data retention policy is at docs.boat.dev/data-retention.
Try boat
Install the CLI, then run boat new.
7-day free trial