Cloudflare Sandbox vs smol machines
Both run each sandbox in its own microVM with its own kernel. Cloudflare Sandbox is a container inside the Workers platform. It sleeps when idle, wakes on the next request, and keeps files through snapshots or R2 that your code sets up. smol machines is an open-source VM engine whose machines keep their files across a stop and can branch while running, with memory.
The companies and products
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.
- Largest instance
- 4 vCPU, 12 GiB memory, 20 GB disk
- Compliance
- Cloudflare holds a SOC 2 Type II report
smol machines
smol machines makes isolated Linux microVMs that run the same way on your laptop, in their hosted cloud, or on your own servers.
The core is smolvm, an open-source microVM engine built on libkrun. Each machine has its own guest kernel. smol cloud is the paid hosted service. It runs machines behind a REST API, Node, Python and Rust SDKs, and a managed agents API. It is for developers who want one VM model from local development to production, with live branching of running machines.
- Uptime SLA
- 99.95% on Pro, Startup and 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. “43rd cheapest of 361” means 42 of the other 360 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 | Cloudflare Sandbox: price rank | smol machines: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month smol machines keeps the filesystem across a stop with no code. On Cloudflare your code saves snapshots, automatic saves or R2, and the disk is 20 GB at most. boat saves the disk with no code, and adds /dev/kvm on every plan, SSH and coding agents you drive from outside. | 192nd of 365, with limits $1,543 a month | 105th of 365, with limits $604 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB | 43rd cheapest of 361 $2,188 a month | 41st cheapest of 361 $1,038 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 well. Cloudflare bills CPU only while busy and wakes on the next request. smol machines has a one-minute minimum, a /code endpoint, and branches of a warm machine that pay the minimum once. | 17th cheapest of 336 $144 a month | 16th cheapest of 336 $140 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. smol machines holds 100 machines on Pro and 1,000 on Startup, and Cloudflare allows 1,500 vCPU per account by default. boat runs 100 to 2,000 by plan, with starts limited per plan, and adds a desktop per user. | 19th cheapest of 349 $731 a month | 12th cheapest of 349 $531 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 smol machines can branch a running machine with its memory and processes, so many rollouts start from one prepared state. Cloudflare starts new sandboxes from a saved snapshot or backup. A boat fork boots fresh from the last 1-minute disk snapshot. | 147th of 349, with limits $9,428 a month | 119th of 349, with limits $6,978 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 | 60th cheapest of 359 $818 a month | 49th cheapest of 359 $670 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 Both run Docker inside: smol machines with its data on the ext4 disk, Cloudflare as docker:dind with iptables off and 20 GB of disk at most. boat adds /dev/kvm for Android builds on every plan; smol cloud offers it on Startup ($150 a month) and Enterprise. | 303rd of 374, with limits $704 a month | 69th cheapest of 374 $514 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB smol machines keeps files across a stop and bills the stopped disk at $0.0001 per GB-hour. Cloudflare starts a fresh disk after sleep unless your code restores a snapshot (beta, 30 days) or mounts an R2 bucket. boat keeps a stopped disk at least 14 days with no compute charge. | 123rd cheapest of 371 $93 a month | 230th of 371, with limits $29 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 built-in desktop. On Cloudflare you build one into your image, or use the separate Browser Run service. smol's guide runs Chromium from an OCI image, and you add a desktop yourself. boat streams a 60 fps desktop with computer tools. | 207th of 367, with limits $460 a month | 135th of 367, with limits $156 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 | 68th of 356, with limits $233 a month | 58th of 356, with limits $136 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 | 102nd cheapest of 343 $286 a month | 97th cheapest of 343 $242 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 | 168th of 327, with limits $5,741 a month | 145th of 327, with limits $4,344 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 Red-team runs often need nested VMs and raw networking. Cloudflare cannot change iptables or take raw TCP inbound. smol cloud offers nested virtualization on Startup and Enterprise, and a TCP tunnel route. boat has /dev/kvm and raw ports over public IPv6 on every plan. | 25th cheapest of 351 $325 a month | 59th of 351, with limits $377 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 requirement | 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 | Cloudflare Sandbox | smol machines | boat |
|---|---|---|---|
| Isolation | Firecracker microVM per container, own kernel and network | libkrun microVM with its own guest kernel | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| Biggest machine | 4 vCPU / 12 GiB / 20 GB disk | 32 vCPU / 32 GB on Startup, 16 vCPU / 24 GB on Pro, 8 vCPU / 16 GB on Standard | 16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher) |
| Files after a stop | Disk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucket | Filesystem survives a stop, /tmp is emptied; stopped disk bills at $0.0001 per GB-hour; checkpoints save a running machine with its RAM | Disk 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 saved |
| Fork | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | Branch a running machine with its memory and processes | Fork a running sandbox in one call from its last 1-minute disk snapshot; the fork boots fresh |
| Wake on request | Sleeps after inactivity and wakes on the next request | A command or terminal starts a stopped machine; idle apps wake on the next request | No; a stopped sandbox is started by API |
| Docker inside | docker:dind with iptables and IP forwarding turned off | Docker inside the VM, with its data on the machine's ext4 disk | Docker with BuildKit and Compose, root and systemd |
| Nested virtualization | Not documented | On Startup ($150 a month plus usage) and Enterprise; refused on Standard and Pro | Yes on every plan, /dev/kvm for Android emulators and VMs |
| Inbound traffic | HTTP and WebSocket previews through your Worker; SSH; no raw TCP inbound or public IP | Up to 16 published ports via token URLs or an authenticated connect route, plus a TCP tunnel route; no dedicated IP | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6; no static IPv4 |
| Outbound rules | allowedHosts deny-by-default list plus outbound handlers you write in Worker code | Blocked, open, or an allowlist of hosts and CIDR ranges | Open internet, no provider-side allowlist; filter inside the VM with root |
| Keeping API keys out of the sandbox | Your outbound handler adds the token for any HTTP or HTTPS host; you write the code | Stored credentials: the guest sees a placeholder, and the real value goes only to allowed hosts over HTTPS | Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register |
| Desktop and browser | Built-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsers | No hosted desktop; smol's guide runs Chromium from an OCI image | 1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU |
| Coding agents | Guides for Claude Code, Codex, OpenCode and Pi in your image | Managed agents API: Claude Code, Codex, OpenCode or any command, with turns, events, pause, rewind and branch | Seven installed, with a prompt, steer and events API |
| Regions | Several regions across Cloudflare's network; pin to a region or jurisdiction | No region choice in the cloud API | Germany, Finland and France; no US or Asia region; you cannot pick one |
| Self-hosting | No; the SDK is open source, the platform is not | Open-source smolvm runs on your laptop or your own servers | No, hosted only |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | smol machines | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Not published | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | No documented way | Yes |
| Browser | With your own setup | With your own setup | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | With your own setup | No documented way | Yes |
| Fork/clone | With your own setup | Yes | Yes |
| Live fork (no pause) | With your own setup | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | Yes | No documented way |
| Wake on request | Yes | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | Yes | Yes |
| Secret proxy for any API | Yes | Yes | Yes |
| Preinstalled agents | Yes | Yes | Yes |
| Agent harness API | With your own setup | Yes | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | Yes | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | Yes | Yes | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | Yes | Yes |
| Usage per sandbox (API) | Not published | Yes | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | No documented way | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | No documented way | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Cloudflare Sandbox nor smol machines is in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which is faster. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. 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. smol machines publishes a boot time under 200 ms for smolvm, which is a start time, not CPU speed.
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 and smol machines are 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.
| Scenario | Cloudflare Sandbox, a month | smol machines, 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 | $39 · Workers Paid | $25 · Standard | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $93 · Standard | $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,660 · Workers Paid | $1,139 · 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 | $476 · Workers Paid | $465 · Startup | $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,889 · Workers Paid · with limits | $1,389 · Startup | $8,800 · $2000/mo · with limits |
Cloudflare Sandbox: You need 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 in 10 ms steps until the container sleeps. 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.
smol machines: smol cloud charges $0.04 for every hour a machine runs, plus $0.05 per active vCPU-hour and $0.0162 per active GB-hour of memory, with a one-minute minimum. Disk bills at $0.0001 per GB-hour, also while stopped, and egress at $0.05 per GB. Standard is $0; Pro ($20 a month) and Startup ($150 a month) are fees on top of usage, not credit.
smol machines: 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; extra starts cost $0.03 to $0.07. A stopped sandbox has no compute charge and keeps its disk at least 14 days. Saved snapshots above the included count ($0.056 a day each) and the AI proxy, if on, still bill while stopped.
Limits in those scenarios
Cloudflare keeps 50 GB of files between sessions only through snapshot, automatic-save or R2 code, and its local disk tops out at 20 GB. Its 1,500 vCPU account cap is short of the 2,000 vCPU the 1,000-job burst needs, raised on request. smol machines fits all five scenarios, but caps machines held by plan (20 on Standard, 100 on Pro, 1,000 on Startup), and a stopped machine still holds a slot. boat does not fit the burst: the $2,000 plan includes 90 starts a minute and 600 an hour, charges $0.03 to $0.07 for extra starts, and refuses starts above 270 a minute.
| Scenario | Cloudflare Sandbox | smol machines | 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 | None for this scenario | None for this scenario |
| 50 agents in parallel | None for this scenario | 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 Cloudflare Sandbox when
your app already runs on Workers and you want short sandboxes that sleep when idle, wake on request, and follow egress rules you write in code.
- Egress rules you can program. Teams that must control traffic can block every host not listed and run their own Worker code on each outbound request.
- Sleeps when idle, wakes on request. Useful for many short, spiky sessions: a sandbox sleeps when quiet, wakes on the next request, and bills CPU only while busy.
- Right next to your Workers app. If your app already runs on Workers, sandboxes sit beside Durable Objects and R2, in a region you can pick.
Use smol machines when
you want one open-source VM engine from your laptop to your own servers, machines that keep their files across a stop, or live branches of a running machine.
- Open source, laptop to your own servers. Teams that want the same VM locally, in a hosted cloud and on their own servers can use one open-source engine.
- Live branches with memory. Useful for RL and test fan-out: branch a running machine with its memory and processes, paying the one-minute minimum once.
- Files that survive a stop. Agents that come back to the same work keep their filesystem across a stop with no code, on machines of up to 32 vCPU.
Where boat fits
If your agents work for hours on builds, tests, emulators or a desktop, Cloudflare Sandbox and smol machines both leave some pieces for you to set up. boat gives each agent a full VM that saves its disk with no code, runs Docker with /dev/kvm on every plan, streams a desktop, and comes with coding agents you drive from outside. boat runs only in the EU, has no GPU and limits starts per plan.
Files kept, no compute while stopped
On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2. smol machines keeps files across a stop and bills the stopped disk. boat saves the disk every minute and at each stop, with no compute charge while stopped. Memory is not saved, so a resume is like a reboot.
A whole machine on every plan
Cloudflare runs Docker with iptables off and takes no raw TCP inbound. smol cloud offers nested virtualization on Startup and Enterprise, and documents no SSH route. boat has Docker, /dev/kvm, SSH, 50 HTTPS URLs and raw ports over public IPv6 on every plan.
Desktop and agents ready to use
Neither ships a built-in desktop. On Cloudflare you bake agents into your image and write the code that adds each token. smol has a managed agents API and stored credentials. boat has a 60 fps desktop, seven agents and an optional paid credentials proxy.
Use boat when your agents do real work for hours: Docker, emulators, SSH and a desktop on every plan, on a VM that saves its disk with no code, with coding agents you drive from outside. Compare it one to one: boat vs Cloudflare Sandbox and boat vs smol machines.
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 Cloudflare Sandbox cheaper than smol machines?
In all five scenarios on this page, smol machines has the lower estimate, for example $93 a month against $148 for one agent that never stops. For 300 user sandboxes they are close, at $465 against $476. boat costs $26 for the always-on agent and $200 for the user sandboxes, but $8,800 for 1,000 short jobs at once, because it bills extra starts. smol and Cloudflare bill busy CPU, so a nearly idle sandbox can cost less there.
Which is faster, Cloudflare Sandbox or smol machines?
We cannot say. Neither is in StarSling's run of 3 October 2026. smol machines publishes a boot time under 200 ms for smolvm. boat did 28.06 V8 Web Tooling runs/s in that run at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host; boat also places some sandboxes on other hosts.
Can Cloudflare Sandbox and smol machines run Docker?
Both can. Cloudflare supports docker:dind with iptables and IP forwarding turned off, because containers cannot change iptables. smol machines runs Docker inside the VM with its data on the ext4 disk. boat runs Docker with BuildKit and Compose, root and systemd, plus /dev/kvm.
Which one keeps my files between sessions?
Both can. smol machines keeps the filesystem across a stop with no code, and bills the stopped disk. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. boat saves the disk every minute and at each stop with no code, and keeps it at least 14 days after a stop.
Can either one fork a running sandbox?
smol machines can branch a running machine into children that keep its memory and processes. Cloudflare snapshots a running sandbox and starts new ones from it, with no one-call fork. boat forks a running sandbox in one call from its last 1-minute disk snapshot, and the fork boots fresh.
Can I self-host Cloudflare Sandbox or smol machines?
smol machines, yes: smolvm is open source and runs on macOS, Linux and Windows hosts. Cloudflare's SDK is open source, but the platform it runs on cannot be self-hosted. boat is a hosted service only.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Cloudflare Sandbox
- boat vs smol machines
- E2B vs Cloudflare Sandbox
- Daytona vs Cloudflare Sandbox
- Modal vs Cloudflare Sandbox
- Vercel Sandbox vs Cloudflare Sandbox
- Cloudflare Sandbox vs Blaxel
- Cloudflare Sandbox vs Runloop
- Cloudflare Sandbox vs Tensorlake
- Cloudflare Sandbox vs Morph Cloud
- Cloudflare Sandbox vs CodeSandbox SDK
- Cloudflare Sandbox vs Northflank