Vercel Sandbox vs Cloudflare Sandbox

Both run each sandbox in a Firecracker microVM with its own kernel. Vercel Sandbox saves your files at every stop with no code, and ends each session after 24 hours. Cloudflare Sandbox lives inside Workers, sleeps when idle and wakes on the next request; its disk resets on stop, and your code keeps files with snapshots, automatic saves, R2 backups or an R2 mount.

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.

Cloudflare Sandbox

Cloudflare Sandbox SDK runs untrusted or AI-generated code in Linux containers on Cloudflare's network, driven from a Cloudflare Worker.

Each sandbox is a Cloudflare Container backed by a Durable Object. Each container runs in its own Firecracker microVM with its own kernel and network. You build a linux/amd64 image, pick an instance type of up to 4 vCPU and 12 GiB, and reach the sandbox through your own Worker. The disk resets when the container stops, and your code keeps files with snapshots, automatic saves, R2 backups or R2 bucket mounts. It suits teams already on Workers who want sandboxes that sleep when idle. For code that only calls known methods, Cloudflare also offers Dynamic Workers, which run JavaScript in V8 isolates.

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 rankCloudflare Sandbox: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Both are listed with limits: neither has a built-in desktop for an agent to check the UI it built. Vercel costs $3,351 a month and Cloudflare $1,543. boat fits at $634, with a desktop and a disk saved with no code.
259th of 365, with limits
$3,351 a month
192nd of 365, with limits
$1,543 a month
5th cheapest of 365
$634 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Cloudflare fits always-on assistants at $2,188 a month, with your code saving files through snapshots or R2. Vercel is listed with limits ($3,657) because each session stops at 24 hours. boat fits at $657 with auto-stop off.
75th of 361, with limits
$3,657 a month
43rd cheapest of 361
$2,188 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-interpreter calls, and each bills CPU only while code uses it: Cloudflare at $144 a month, Vercel at $216. Cloudflare also wakes a sleeping sandbox on the next request. boat's start limits make it a compromise here.
27th cheapest of 336
$216 a month
17th cheapest of 336
$144 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
Both fit sandboxes for your users: Cloudflare at $731 a month and Vercel at $1,267. boat fits at $209, with start limits per plan.
25th cheapest of 349
$1,267 a month
19th cheapest of 349
$731 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
Vercel is a full match for many short parallel rollouts at $15,761 a month. Cloudflare ($9,428) is listed with limits because of its 1,500 vCPU account cap, which it raises on request.
7th cheapest of 349
$15,761 a month
147th of 349, with limits
$9,428 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
60th cheapest of 359
$818 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
Vercel fits CI at $1,144 a month and boat at $86. Cloudflare ($704) is listed with limits: its largest instance is 4 vCPU / 12 GiB with 20 GB of disk, and it runs Docker with iptables turned off.
112th cheapest of 374
$1,144 a month
303rd of 374, with limits
$704 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
Cloudflare fits a dev box at $93 a month, with files kept by your snapshot or R2 code. Vercel is listed with limits ($145) because each session stops at 24 hours. boat fits at $26 with auto-stop off.
283rd of 371, with limits
$145 a month
123rd cheapest of 371
$93 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
Neither ships a desktop today, so you build one into your image; both are listed with limits (Cloudflare $460, Vercel $952). boat streams a 60 fps desktop with computer tools at $200 a month.
263rd of 367, with limits
$952 a month
207th of 367, with limits
$460 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
100th of 356, with limits
$486 a month
68th of 356, with limits
$233 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
109th cheapest of 343
$468 a month
102nd cheapest of 343
$286 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
234th of 327, with limits
$9,960 a month
168th of 327, with limits
$5,741 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
31st cheapest of 351
$554 a month
25th cheapest of 351
$325 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 SandboxCloudflare Sandboxboat
IsolationFirecracker microVM with its own kernelFirecracker microVM per container, own kernel and networkFull VM with its own kernel, on physical hosts dedicated to boat (AMD Ryzen 7 9700X and Ryzen 9 9950X); vCPUs are shared
Longest session24 hours on Pro and Enterprise, 45 minutes on Hobby; a persistent sandbox resumes from its snapshot in a new sessionNo fixed cap; stops after inactivity and wakes on the next requestNo session cap once you turn auto-stop off on a paid plan; auto-stop defaults to 1 hour
Files between sessionsFilesystem snapshot at every stop with no code, $0.08/GB-month, kept 30 days after last use by default; Drives for storage that outlives sandboxesDisk resets when the container stops; your code keeps files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucketDisk saved every minute and at each stop with no code; kept at least 14 days after a stop, longer with a saved snapshot
Largest machine8 vCPU / 16 GB on Pro, 32 vCPU / 64 GB on Enterprise4 vCPU / 12 GiB / 20 GB disk16 vCPU / 32 GB / 251 GB disk on the $100 plan or higher
Docker insideYes, with sudodocker:dind with iptables and IP forwarding turned offDocker with BuildKit and Compose, root and systemd
Nested virtualizationNo; Firecracker does not expose /dev/kvm to guestsNot documentedYes, /dev/kvm (Android emulators, VMs)
Desktop, browser, computer useNo built-in desktop or computer-use API; you install Chromium and agent-browser yourself (Vercel guide) or connect an external browserBuilt-in desktop removed in SDK 0.10.2; you build one into your image, or use the separate Browser Run service for headless browsersBuilt in: 1920x1080, 60 fps desktop and Chrome, computer tools and a browser-control API, embeddable stream
Coding agentsClaude Code, Codex, OpenCode and pi preinstalled; you start them as commandsGuides for Claude Code, Codex, OpenCode and Pi in your image, plus Cursor, Devin, Claude Managed Agents and OpenAI Agents API integrationsClaude Code, Codex, pi, OpenCode, Prime Agent, Kimi Code and Mistral Vibe, with an API to prompt, steer and stream events
Custom imagesYour own OCI images from a Dockerfile, via Vercel Container RegistryYour own linux/amd64 container imageStart from boat's image or a saved snapshot; you cannot boot your own Docker or OCI image
Inbound accessPublic URLs for up to 15 ports, no built-in auth; no SSH server, raw TCP or public IPHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over IPv6 (some sandboxes have no IPv4 of their own); no static IP
Egress rulesAllow-all, deny-all or a domain and CIDR allowlist, changeable while running; static IPs and VPC peering on EnterpriseallowedHosts deny-by-default list plus outbound handlers you write in Worker codeNo provider-side allowlist; firewall inside the VM
Keys kept outside the sandboxCredentials brokering injects headers for any HTTPS domain you allowYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeOptional AI credentials proxy ($1 per day on, plus $1 per 1,000 requests) for model providers and any HTTPS API you add
Sleep when idleNo idle sleep; a session runs until its timeout or stop()Stops after inactivity and wakes on the next requestAuto-stop timer (1 h default, up to 30 days or off); no idle timer, and a running sandbox bills busy or idle
Regions19 regions across the US, Europe, Asia, South America, Africa and AustraliaSeveral regions across Cloudflare's network; nearest free instance by default, or pin to a region or jurisdictionGermany, Finland and France; you cannot pick a region; no US or Asia region
Every feature Battleships tracks (43)
FeatureVercel SandboxCloudflare Sandboxboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayNo documented wayYes
SSHNo documented wayYesYes
Persistent diskYesWith your own setupYes
Pause/resumeYesNo documented wayYes
Automatic snapshotsYesWith your own setupYes
Fork/cloneYesWith your own setupYes
Live fork (no pause)YesWith your own setupYes
Memory forkNo documented wayNo documented wayNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopNo documented wayYesNo documented way
Wake on requestNo documented wayYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesYesYes
Agent harness APINo documented wayWith your own setupYes
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 wayYesNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsYesNo documented wayYes
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
Cloudflare SandboxNot measured
boat28.06 runs/s

On the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, boat did 28.06 runs per second and Vercel Sandbox did 12.66 (about 2.2x), in StarSling's run of 3 October 2026 (run 37073680030). boat was second of 15; Vercel shared rank 7. 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. Cloudflare Sandbox is not in that run, so we cannot say how fast its CPU is. For start time, ComputeSDK measured Vercel at 533 ms and Cloudflare at 671 ms median with 100 at once (6 November 2026), each at its default size; boat is not in ComputeSDK.

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. 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. Cloudflare Sandbox is not in the public benchmarks we use, so we cannot say which is faster.

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 monthCloudflare Sandbox, 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$39 · Workers Paid$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$236 · Pro · with limits$148 · Workers Paid$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,660 · Workers Paid$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$476 · Workers Paid$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,889 · Workers Paid · 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. Rates are up to 1.73x higher outside the US. The $20 Pro credit is shared with your other Vercel usage.

Cloudflare Sandbox: Cloudflare needs Workers Paid ($5 a month minimum). CPU is billed only while busy, at $0.072 per vCPU-hour; memory and disk are billed on the instance size until the container sleeps, idle wait included. There is no 4 vCPU / 8 GB size, so 4 vCPU always pays for 12 GiB. Durable Object and Worker requests are billed on top. Egress is free up to 1 TB in North America and Europe, then $0.025 per GB. Snapshot pricing is not published.

Cloudflare Sandbox: 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 card is required, also for the 7-day trial. 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

Cloudflare's local disk tops out at 20 GB and resets after sleep, so scenarios that keep files between days need your own snapshot, automatic-save or R2 code. Vercel keeps the files with no code but ends each session at 24 hours, so one agent that never stops restarts its processes every day. For 1,000 short jobs at once, Vercel fits at $3,152. Cloudflare needs 2,000 vCPU against a 1,500 vCPU account limit that it raises on request. boat does not fit: the $2,000 plan includes 90 starts a minute and 2,400 a day, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429. boat also keeps a stopped disk at least 14 days unless you save a snapshot, and a machine failure loses what was written after the last 1-minute snapshot.

ScenarioVercel SandboxCloudflare Sandboxboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stops
  • Pro: sessions capped at 24 h
None for this scenarioNone 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
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • 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, want files saved between sessions with no extra code, or need to run close to users in 19 regions.

  • Files saved on every stop, with no code. Useful for work that spans days: each stop saves the filesystem, and the next session boots from it with no code from you.
  • Bigger machines and more regions. One Pro sandbox can reach 8 vCPU / 16 GB, and sandboxes run in 19 regions, from Virginia to Tokyo and Sydney.
  • Images from your Dockerfile. If you already have a Dockerfile, build it into an OCI image, push it to Vercel's registry and boot sandboxes into it.

Use Cloudflare Sandbox when

your app already runs on Workers and you want short sandboxes that sleep when idle, wake on the next request, bill CPU only while busy, and follow egress rules you write as code.

  • Sleeps when idle, wakes on request. Useful for many short, spiky sessions: a sandbox sleeps when idle, wakes on the next request, and bills CPU only while busy.
  • No fixed session cap. Cloudflare does not stop a container after a set runtime, so a busy sandbox can keep going past 24 hours.
  • Egress rules you can program. If your app already runs on Workers, you can block every host but a list and run your own code on each outbound request.

Where boat fits

Vercel ends sessions at 24 hours, and Cloudflare keeps files only through code you write. If your agents work for hours on one machine, with Docker, emulators, a desktop and a browser, look at boat. It saves the disk every minute with no code and runs with no session cap once auto-stop is off. Check its start limits first: each create, fork and resume counts as a start.

Long tasks and saved files with no code

On Vercel a long agent task ends at 24 hours; the sandbox resumes from its snapshot, and processes start again. On Cloudflare the disk resets when the sandbox sleeps unless your code snapshots it, schedules saves or works in an R2 mount. boat saves the disk every minute, with no code.

A desktop and a full machine inside

Neither has a built-in desktop, so you build one to let an agent open the app it built, and neither documents /dev/kvm for emulators. Cloudflare also runs Docker with iptables off. boat has Docker, systemd, /dev/kvm and a 60 fps desktop with Chrome.

Agents driven from outside

On Vercel you start each agent as a plain command, and on Cloudflare you put it in your image and write the outbound handler for its keys. boat gives you one API to prompt, steer and stream seven installed agents.

Use boat when your agents work for hours on one machine: builds, tests, Docker, emulators and a built-in desktop with a browser, on a VM that saves its disk with no code and has 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 Cloudflare 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 Vercel Sandbox cheaper than Cloudflare Sandbox?

No. Cloudflare's estimate is lower in all five of our scenarios, and it fits four of them: one workday agent is $39 a month against $57 on Vercel, 50 parallel agents are $1,660 against $2,884, and sandboxes for your users are $476 against $828. For 1,000 short jobs at once, Vercel fits at $3,152, and Cloudflare needs a raised vCPU limit. boat costs $20, $317 and $200 in those first three. A nearly idle sandbox can cost less on either, because both bill CPU only while busy.

Which is faster?

Vercel Sandbox did 12.66 runs per second on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB in StarSling's run of 3 October 2026, and boat did 28.06 on an AMD Ryzen 9 9950X host. Cloudflare Sandbox is not in that run, so we cannot compare its CPU speed. For start time with 100 at once, ComputeSDK measured Vercel at 533 ms and Cloudflare at 671 ms.

Can they run 24/7?

Vercel sessions last up to 24 hours on Pro and Enterprise, then stop and resume from a snapshot with processes started again. Cloudflare sets no fixed runtime, but a sandbox stops when idle and comes back with a fresh disk unless your code restores a snapshot or uses an R2 mount. boat has no session cap once you turn auto-stop off (default 1 hour) on a paid plan.

Can Vercel Sandbox or Cloudflare Sandbox run Docker?

Yes, both. Vercel runs Docker with sudo, and Cloudflare supports docker:dind with iptables and IP forwarding turned off, because its containers cannot change iptables. boat runs Docker with root and systemd.

Do they keep my files?

Vercel saves a filesystem snapshot at every stop with no code and boots the next session from it, kept 30 days after last use by default. Cloudflare starts from a fresh disk after sleep; your code keeps files with snapshots (public beta), scheduled automatic saves, R2 backups or a mounted R2 bucket. boat saves the disk every minute and at each stop, and keeps a stopped disk at least 14 days, longer with a saved snapshot.

Where do they run?

Vercel Sandbox runs in 19 regions, with iad1 in the US as the default. Cloudflare places containers in several regions of its network, and you can pin a region or jurisdiction. boat runs on machines in Germany, Finland and France, and you cannot pick a region. Snapshot copies can be stored outside the EU.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons