boat vs Cloudflare Sandbox

Both give each sandbox its own kernel. boat gives you a whole VM that saves its disk with no code, runs a desktop and comes with coding agents. Cloudflare gives you a container inside its Workers platform. It sleeps when idle, wakes on the next request, and keeps files through snapshots or R2 that your code sets up.

Where boat stands out

A machine that keeps its files with no code

A boat sandbox saves its disk every minute and at each stop, and resumes with its files in place. Memory and running programs are not saved, so a resume is like a reboot. boat keeps a stopped disk at least 14 days, or longer as a saved snapshot. You can fork a running sandbox in one call. On Cloudflare the disk starts fresh after sleep unless your code saves a snapshot, schedules automatic saves or uses R2.

More fits inside one sandbox

boat gives you a full VM with root, systemd, Docker with BuildKit, nested virtualization, a 60 fps desktop and raw ports over IPv6, up to 16 vCPU / 32 GB / 251 GB disk on the $100 plan or higher. Cloudflare containers top out at 4 vCPU, 12 GiB and 20 GB of disk, cannot change iptables, and no longer ship a desktop.

Agents ready to drive from outside

Seven coding agents come installed, including Claude Code, Codex and OpenCode, and one API lets you prompt, steer and watch them. With the optional paid proxy on, the real keys of supported providers stay outside the sandbox, and a credential can switch to another account when one runs out of credits.

The companies and products

boat

boat.dev runs sandboxes for AI agents: each one is a full Linux VM with its own kernel.

You start a machine with one command or one API call, then SSH in, run Docker, open a desktop, or let a built-in agent (Claude Code, Codex, OpenCode and others) work in it. The disk stays between sessions, and a stopped sandbox costs nothing.

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. “5th cheapest of 365” means 4 of the other 364 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 workloadboat: price rankCloudflare Sandbox: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
boat saves an 8-hour session's disk every minute with no code, and gives agents Docker, a desktop and a browser. On Cloudflare the disk resets when the container sleeps unless your code snapshots it, schedules automatic saves or mounts R2, and a sandbox has 20 GB of disk at most.
5th cheapest of 365
$634 a month
192nd of 365, with limits
$1,543 a month
Always-on AI employees
50 machines 24/7 · 2 vCPU / 4 GB
Always-on assistants need their files and logins to stay put. boat keeps the disk across stops with no code, and runs 24/7 once you turn auto-stop off (paid plans). On Cloudflare your code saves snapshots or mounts R2, and browser work goes to the separate Browser Run service, with no desktop.
6th cheapest of 361
$657 a month
43rd cheapest of 361
$2,188 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
For short code-interpreter calls Cloudflare fits well: CPU is billed only while it is busy, and a container wakes on the next request. A running boat sandbox bills at full rate, busy or idle, and each plan includes a set number of starts.
189th of 336, with limits
$2,000 a month
17th cheapest of 336
$144 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. boat shows the cost of each sandbox and lets an organization cap each member's spend. Cloudflare adds egress rules you write as Worker code.
3rd cheapest of 349
$209 a month
19th cheapest of 349
$731 a month
RL rollouts
1,000 at once · 2 vCPU / 4 GB · 1,000,000 sessions of 3 min a month
39th of 349, with limits
$2,000 a month
147th of 349, with limits
$9,428 a month
Agent evals
250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month
10th cheapest of 359
$200 a month
60th cheapest of 359
$818 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 need disk and a full Docker setup. A default boat sandbox has 51 GB of disk for your files and Docker with BuildKit. Cloudflare has 20 GB of disk at most and runs docker:dind with iptables turned off, but it bills CPU only while busy.
2nd cheapest of 374
$86 a month
303rd of 374, with limits
$704 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box should keep its files when you log off. boat stops at no machine cost and resumes with its disk, kept at least 14 days after a stop. Cloudflare starts from a fresh disk after sleep unless your code snapshots it or works in a mounted R2 bucket.
19th cheapest of 371
$26 a month
123rd cheapest of 371
$93 a month
Computer-use agents
50 at once · 4 vCPU / 8 GB · 20,000 sessions of 15 min a month
boat ships a 1920x1080, 60 fps desktop with Chrome and computer tools for agents, rendered on the CPU. Cloudflare removed its built-in desktop in SDK 0.10.2. You set it up: build a desktop into your own image (no official guide), or use the separate Browser Run service for headless browsers.
7th cheapest of 367
$200 a month
207th of 367, with limits
$460 a month
Browser-use agents
50 at once · 2 vCPU / 4 GB · 30,000 sessions of 10 min a month
7th cheapest of 356
$200 a month
68th of 356, with limits
$233 a month
Scraping & bots (startup scale)
50 at once · 1 vCPU / 2 GB · 100,000 sessions of 3 min a month
6th cheapest of 343
$90 a month
102nd cheapest of 343
$286 a month
Mass scraping & bots (undetectable)
1,000 at once · 1 vCPU / 2 GB · 3,000,000 sessions of 2 min a month
73rd of 327, with limits
$1,800 a month
168th of 327, with limits
$5,741 a month
Parallel red teaming
200 at once · 2 vCPU / 4 GB · 5,000 sessions of 30 min a month
Red-team runs often need nested VMs, raw ports and full root networking. boat has /dev/kvm and raw ports over public IPv6. Cloudflare containers cannot change iptables and take no raw TCP from outside.
3rd cheapest of 351
$200 a month
25th cheapest of 351
$325 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 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 requirement

Key features

FeatureboatCloudflare Sandbox
IsolationFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are sharedFirecracker microVM per container, own kernel and network
Largest machine16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher)4 vCPU / 12 GiB / 20 GB disk
Files between sessionsDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot; memory and running programs are not savedDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucket
Fork a running sandboxOne call, without stopping it; the fork uses the last 1-minute snapshotSnapshot or back up a running sandbox, then start new sandboxes from it (snapshots public beta, 30 days); no one-call fork
Custom imageNo; start from boat's Ubuntu 24.04 image or a saved snapshotAny linux/amd64 container image
Docker insideDocker with BuildKit and Compose, root and systemddocker:dind with iptables and IP forwarding turned off
Nested virtualizationYes, /dev/kvm (Android emulators, VMs)Not documented
Desktop and browser1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPUBuilt-in desktop removed in SDK 0.10.2; headless browsers through the separate Browser Run service
Inbound trafficUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6, and over IPv4 on sandboxes that have their own IPv4HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP
Egress controlNo provider-side allowlistallowedHosts deny-by-default list plus outbound handlers you write in Worker code
Keeping keys out of the sandboxOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs; switch a credential to another accountYour outbound handler adds the token for any HTTP or HTTPS host; you write the code
Coding agentsSeven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events APIGuides for Claude Code, Codex, OpenCode and Pi in your image, plus Cursor, Devin, Claude Managed Agents and OpenAI Agents API integrations
Sleep when idleAuto-stop 1 h after create or resume by default (up to 30 days, or off on paid plans); no idle timer, full rate while runningStops after inactivity and wakes on the next request
StartsIncluded starts per plan ($20: 12 a minute, 60 an hour, 200 a day); extra starts $0.03 to $0.07; above 3x the per-minute number, starts failNo per-start fee; capped by 1,500 vCPU running per account, higher on request
RegionsGermany, Finland and France; no US or Asia region; you cannot pick oneSeveral regions across Cloudflare's network; pin to a region or jurisdiction
ComplianceSOC 2 in progress; no report todaySOC 2 Type II report
Compliance and transparencySOC 2 is in progress. We're open about where we stand: live status and data retention policy.SOC 2
Every feature Battleships tracks (43)
FeatureboatCloudflare Sandbox
Full VM (own kernel)YesYes
Docker insideYesYes
Nested virtualizationYesNo documented way
RootYesYes
SystemdYesNot published
Desktop GUIYesNo documented way
BrowserYesWith your own setup
Computer-use APIYesNo documented way
SSHYesYes
Persistent diskYesWith your own setup
Pause/resumeYesNo documented way
Automatic snapshotsYesWith your own setup
Fork/cloneYesWith your own setup
Live fork (no pause)YesWith your own setup
Memory forkNo documented wayNo documented way
Custom image (Docker or snapshot)YesYes
≥24 h sessionsYesYes
Idle auto-stopNo documented wayYes
Wake on requestNo documented wayYes
HTTPS preview URLsYesYes
Raw TCP inboundYesNo documented way
Public IPv4No documented wayNo documented way
Egress allowlistNo documented wayYes
Secret proxyYesYes
Secret proxy for any APIYesYes
Preinstalled agentsYesYes
Agent harness APIYesWith your own setup
MCP serverNo documented wayNo documented way
GPUNo documented wayNo documented way
WindowsNo documented wayNo documented way
Arm64No documented wayNo documented way
Self-hostingNo documented wayNo documented way
BYOCNo documented wayNo documented way
Open sourceNo documented wayYes
Scoped API keysYesNot published
Spend limitsYesNo documented way
Usage per sandbox (API)YesNot published
Audit logsNo documented wayYes
SSONo documented wayYes
SOC 2No documented wayYes
HIPAANo documented wayYes
EU data residencyNo documented wayYes
Zero data retentionYesNot published

Performance

boat28.06 runs/s
Cloudflare SandboxNot measured

Cloudflare is not in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which has faster CPU. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on other hosts. ComputeSDK measured a 671 ms median start for Cloudflare with 100 at once (2026-11-06, 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.

Scenarioboat, a monthCloudflare Sandbox, 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
$20 · $20/mo$39 · Workers Paid
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$26 · $20/mo$148 · Workers Paid
50 agents in parallel
50 machines of 4 vCPU / 8 GB at once, 8-hour sessions, 1,100 sessions a month, Docker inside
$317 · $20/mo × 3 seats$1,660 · Workers Paid
Sandboxes for your users
2 vCPU / 4 GB, 30,000 sessions of 10 minutes a month, up to 300 at once
$200 · $100/mo × 2 seats$476 · Workers Paid
1,000 short jobs at once
2 vCPU / 4 GB, 1,000 at once, 3 minutes each, 200,000 jobs a month
$8,800 · $2000/mo · with limits$1,889 · Workers Paid · with limits

boat: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A default 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. The $20 plan includes 12 starts a minute, 60 an hour and 200 a day; each extra start costs $0.03 to $0.07.

boat: A stopped sandbox costs no machine time and keeps its disk at least 14 days. Saved snapshots above the plan's included count ($0.056 a day each) and the AI proxy, if on, still bill while sandboxes are stopped.

Cloudflare Sandbox: You need Workers Paid ($5 a month minimum). CPU is billed only while it is in use, at $0.072 per vCPU-hour. Memory and disk are billed on the instance size you picked, in 10 ms steps, until the container sleeps, including the idle wait before it sleeps. Snapshot pricing is not published.

Cloudflare Sandbox: There is no 4 vCPU / 8 GB size: 4 vCPU always comes with 12 GiB. Durable Object and Worker requests are billed on top, and egress is free up to 1 TB in North America and Europe, then $0.025 per GB. A nearly idle sandbox can cost less on Cloudflare than on boat.

Limits in those scenarios

Cloudflare's local disk tops out at 20 GB and resets after sleep, so the scenarios that keep 50 GB of files between days need your own snapshot, automatic-save or R2 code. An account can run 1,500 vCPU at once by default, short of the 2,000 vCPU the 1,000-job burst needs, though Cloudflare raises it on request. On boat, the $2,000 plan includes 90 starts a minute, 600 an hour and 2,400 a day. Extra starts cost $0.03 to $0.07 each, and starts above 270 a minute fail (sources: docs.boat.dev/pricing, docs.boat.dev/limits).

ScenarioboatCloudflare Sandbox
One coding agent, workdaysNone for this scenarioNone for this scenario
One agent that never stopsNone for this scenarioNone for this scenario
50 agents in parallelNone for this scenarioNone for this scenario
Sandboxes for your usersNone for this scenarioNone for this scenario
1,000 short jobs at once
  • 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
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
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

Which one should you use?

Use Cloudflare Sandbox when

your app already runs on Workers, you want your own container image, or you want short sandboxes that sleep when idle and bill CPU only while busy.

  • Egress rules you can program. Cloudflare can block every host except the ones you list, and run your own code on each outbound request.
  • 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.
  • Wide footprint inside the Cloudflare platform. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, in a region you can pick.

Use boat when

your agents work for hours: builds, tests, full Docker, emulators and a desktop, on a VM that saves its disk with no code.

  • A machine that keeps its files with no code. On Cloudflare a sandbox that sleeps comes back with a fresh disk from its image, so an agent loses its cloned repo, installed packages and half-done work unless your code saves a snapshot, schedules automatic saves or works in a mounted R2 bucket.
  • More fits inside one sandbox. Agent builds outgrow a small sandbox: 20 GB of disk holds few large Docker images, Docker runs with iptables turned off, and you build your own desktop to check a UI.
  • Agents ready to drive from outside. On Cloudflare you bake each agent into your image and write the outbound handler that adds every token yourself, then keep that code working as providers and keys change.

Questions people ask

Is boat cheaper than Cloudflare Sandbox?

In four of the five scenarios on this page, boat costs less: for example $26 against $148 a month for one agent that never stops. For 1,000 short jobs at once, Cloudflare's estimate is far lower, $1,889 against $8,800, because boat bills the extra starts. Neither fits that scenario as is: Cloudflare needs a raised vCPU limit, and boat refuses starts above 270 a minute. A nearly idle sandbox can also cost less on Cloudflare, which bills CPU only while busy.

Does Cloudflare Sandbox keep my files?

Only while the container runs, unless your code keeps them: a snapshot (public beta, kept 30 days after it is created or last restored), a scheduled automatic save, an R2 directory backup or a mounted R2 bucket. boat saves the disk every minute and on stop with no code. It keeps the disk at least 14 days after a stop, and longer if you save a named snapshot. If a boat machine fails, you lose what was written after the last good snapshot.

Is a Cloudflare sandbox a VM or a container?

Both, in a way. You ship a container image, and Cloudflare runs each container in its own Firecracker microVM with its own kernel. boat sandboxes are full VMs with root and systemd. They start from boat's Ubuntu image or a saved snapshot, not from your own image.

Can I run Docker inside either one?

Yes. boat runs Docker with BuildKit and Compose on the sandbox's own kernel. Cloudflare supports docker:dind with the daemon's iptables and IP forwarding turned off, because containers cannot change iptables.

Can I limit where a sandbox connects to?

On Cloudflare, yes: allowedHosts blocks every host not on your list, and outbound handlers can inspect and change each HTTP request. boat does not offer a provider-side egress allowlist today.

Where does each one run?

boat runs on machines in Germany, Finland and France, and you cannot pick a region. Cloudflare places containers in several regions of its network, picks the nearest free instance by default, and lets you pin a container to a region or jurisdiction.

Start a sandbox

Install the CLI, then run boat new.

7-day free trial

More comparisons