Cloudflare Sandbox vs Freestyle
Cloudflare Sandbox runs a container in its own microVM 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. Freestyle gives each sandbox a full KVM virtual machine that keeps its disk and can pause with its memory, then wake on the next request.
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
Freestyle
Freestyle sells full Linux virtual machines for AI agents, built for long running, complex tasks.
Each Freestyle VM is a KVM virtual machine with its own kernel, booted from a base snapshot. The default Ubuntu image has systemd, Docker and coding agent CLIs preinstalled. VMs can be paused with their memory, snapshotted while running, forked and woken by the next request. Every VM starts behind a default-deny firewall. You drive it from a TypeScript SDK, a CLI or an API.
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 | Freestyle: 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 needs files that stay and full Docker. Freestyle has both with no code. On Cloudflare your code keeps files with snapshots, automatic saves or R2, and Docker runs with iptables off. boat adds a built-in desktop. | 192nd of 365, with limits $1,543 a month | 31st cheapest of 365 $3,311 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 | 49th cheapest of 361 $4,195 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. Cloudflare bills CPU only while it is busy, and Freestyle resumes a paused VM with its processes still running. | 17th cheapest of 336 $144 a month | 46th cheapest of 336 $482 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, and both wake on the next request. boat fits too, with a desktop, hosting and per-sandbox spend limits, and start limits per plan. | 19th cheapest of 349 $731 a month | 26th cheapest of 349 $1,358 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 Freestyle can snapshot a running VM with its memory and boot copies from it, which suits rollouts that branch from one state. Cloudflare can snapshot a sandbox's disk and start new ones from it. A boat fork copies the disk only. | 147th of 349, with limits $9,428 a month | 116th of 349, with limits $6,600 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 | 68th cheapest of 359 $1,046 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 Freestyle runs full Docker, where Cloudflare turns off iptables and has 20 GB of disk. Freestyle's docs send sustained high-CPU work elsewhere. In StarSling's run of 3 October 2026, boat did 28.06 runs/s and Freestyle 10.22. | 303rd of 374, with limits $704 a month | 169th of 374, with limits $625 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box must keep its files. Freestyle keeps the disk, and a paused default VM fits in the free storage allowance. Cloudflare starts fresh after sleep unless your code snapshots it or mounts R2. boat keeps a stopped disk at least 14 days with no compute charge. | 123rd cheapest of 371 $93 a month | 102nd cheapest of 371 $151 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; Freestyle has official guides for GNOME with noVNC. boat has a 60 fps desktop and computer tools in every sandbox. | 207th of 367, with limits $460 a month | 51st cheapest of 367 $940 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 | 99th of 356, with limits $482 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 | 110th cheapest of 343 $482 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 | 183rd of 327, with limits $6,560 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 ports. Freestyle and boat both have nested virtualization and a public IPv6 per VM. Cloudflare cannot change iptables and takes no raw TCP from outside. | 25th cheapest of 351 $325 a month | 28th cheapest of 351 $482 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 | Freestyle | boat |
|---|---|---|---|
| Isolation | Firecracker microVM per container, own kernel and network | Full KVM VM with its own kernel on bare metal; Freestyle says it oversubscribes host resources | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| CPU benchmark (V8 Web Tooling, 4 vCPU / 8 GB, StarSling run of 3 October 2026) | Not in this run | 10.22 runs/s, 14th of 15 | 28.06 runs/s, 2nd of 15 (rank shared), on a Ryzen 9 9950X host |
| Largest machine | 4 vCPU / 12 GiB / 20 GB disk | 32 vCPU / 64 GiB on Pro, 64 / 128 with Enterprise custom limits | 16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher) |
| Files between sessions | Disk is fresh after sleep; mount an R2 bucket, or restore a snapshot (public beta, 30 days), automatic save or R2 backup | Disk kept with no time limit; a paused VM bills only storage, and a default VM fits in the free 60,000 GiB-hours | Disk saved every minute and at each stop; kept at least 14 days while stopped, longer as a saved snapshot |
| Pause with memory | No; after sleep the container starts again without its processes | Pause saves memory and disk; the same processes resume | No; resume boots the machine again with its disk |
| Fork | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | Clone a running VM without pausing it; snapshots capture memory and disk | Fork a running sandbox's disk in one call; the fork uses the last 1-minute snapshot |
| Sleep and wake on request | Stops after inactivity and wakes on the next request | Optional idle timeout (none by default); a paused VM resumes on the next traffic | Auto-stop on a timer (1 h by default), not on idle; you start a stopped sandbox by API or CLI |
| Root, Docker, nested virtualization | docker:dind with iptables and IP forwarding turned off; nested virtualization not documented | systemd as pid 1, Docker from boot, full KVM support | Root, systemd, Docker with BuildKit and /dev/kvm for Android emulators and VMs |
| Desktop, browser and computer use | 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 | Official guides install GNOME with TigerVNC and noVNC, or headed Chromium, driven with Playwright or CDP; no first-party click API | 1920x1080, 60 fps desktop and Chrome, computer tools built in; no GPU |
| Coding agents | Guides for Claude Code, Codex, OpenCode and Pi in your image, plus integrations | claude, codex, opencode and openclaw installed, driven through exec, a PTY or the Claude Agent SDK | Seven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events API |
| Keeping keys out of the sandbox | Your outbound handler adds the token for any HTTP or HTTPS host; you write the code | Credentials injected at the edge for HTTPS headers, Postgres and S3; the VM must trust the Freestyle CA | Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for AI providers and HTTPS APIs; other secrets still enter the sandbox |
| Inbound traffic | HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP | HTTPS on free style.dev names or your own domain, forward auth, firewall ingress rules, a public IPv6 per VM | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6 |
| Outbound rules | allowedHosts deny-by-default list plus outbound handlers you write in Worker code | Default-deny firewall with allow rules by IP, VM, VPC or exact domain | No provider-side allowlist |
| Regions | Several regions across Cloudflare's network; pin to a region or jurisdiction | Regions are not published | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Freestyle | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | Yes | Yes |
| Root | Yes | Yes | Yes |
| Systemd | Not published | Yes | Yes |
| Desktop GUI | No documented way | With your own setup | Yes |
| Browser | With your own setup | With your own setup | Yes |
| Computer-use API | No documented way | With your own setup | Yes |
| SSH | Yes | Yes | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | With your own setup | Yes | 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 | Yes | 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 | No documented way | Yes |
| MCP server | No documented way | No documented way | No documented way |
| GPU | No documented way | Yes | 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 | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Yes | Yes |
| Spend limits | No documented way | Not published | Yes |
| Usage per sandbox (API) | Not published | No documented way | Yes |
| Audit logs | Yes | Yes | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Not published | No documented way |
| HIPAA | Yes | Not published | No documented way |
| EU data residency | Yes | Not published | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
StarSling ran the V8 Web Tooling Benchmark at 4 vCPU / 8 GB on 3 October 2026 (run 37073680030). boat did 28.06 runs per second, 2nd of 15 (a rank shared with four providers), and Freestyle did 10.22, 14th of 15: about 2.7 times the CPU work in the same time. Cloudflare Sandbox is not in that run, so we cannot compare its CPU. Every boat sandbox in the 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. ComputeSDK measured median starts with 100 at once of 671 ms for Cloudflare and 2.0 s for Freestyle (2026-11-06, default sizes); 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.
| Scenario | Cloudflare Sandbox, a month | Freestyle, 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 | $27 · Free | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $159 · Free | $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 | $2,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 | $581 · 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,889 · Workers Paid · with limits | $1,305 · Pro · with limits | $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.
Freestyle: Freestyle bills per second for the vCPU, RAM and disk allocated to a VM, busy or idle, after monthly allowances of 200 vCPU-hours, 400 GiB-hours of RAM and 60,000 GiB-hours of storage. On Free the allowances are hard stops and no card is needed. Hobby and Pro set a $50 or $500 monthly minimum that counts as usage. A paused VM bills only for storage.
Freestyle: 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 tops out at 20 GB of disk and keeps files between days only through snapshots, automatic saves or R2 that your code sets up. Its account limit of 1,500 vCPU at once is short of the 2,000 the 1,000-job burst needs, though Cloudflare raises it on request. Freestyle Pro allows 400 VMs at once, so the burst needs Enterprise, and Freestyle has no idle timeout by default, so a VM bills until you pause it. boat does not fit the burst either: 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 | Freestyle | 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 |
|
|
|
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 the next request, and bill CPU only while busy.
- Sleeps when idle, wakes on request. For many short, spiky sessions: a sandbox sleeps when idle, wakes on the next request, and bills CPU only while busy.
- Egress rules you can program. allowedHosts blocks every host you did not list, and outbound handlers run your own Worker code on each request.
- Next to the rest of Workers. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, in a region you can pick.
Use Freestyle when
each agent or user needs a full VM that keeps its disk, pauses with its memory, forks while running, or needs more than 16 vCPU.
- A full VM that keeps its disk. Each sandbox is a KVM VM with systemd, full Docker and nested virtualization, and its disk stays between sessions with no code.
- Memory pause and live fork. A VM pauses with its memory, resumes the same processes, and can be cloned while it keeps running.
- Bigger machines. Pro VMs go up to 32 vCPU / 64 GiB, well past Cloudflare's 4 vCPU / 12 GiB.
Where boat fits
If your agents work for hours on builds, tests, Docker and web pages, look at boat. It gives each agent a full VM like Freestyle, with a built-in desktop, a browser and an API to drive the agents inside. Its disk is saved every minute. Memory is not saved, and boat runs only in the EU.
More CPU work per second in one run
In StarSling's V8 Web Tooling run of 3 October 2026 at 4 vCPU / 8 GB, boat did 28.06 runs/s on a Ryzen 9 9950X host and Freestyle 10.22, about 2.7 times the work. boat also places some sandboxes on other hosts. Cloudflare is not in that run.
A desktop and browser, ready
On Cloudflare you build a desktop into your own image. Freestyle has official guides for GNOME or headed Chromium with noVNC. On both you also build the screenshot and click layer. boat ships the desktop and computer tools.
Agents driven from outside
On Cloudflare you bake each agent into your image and write the handler that adds every token. On Freestyle you start the CLI through exec or a PTY. boat has a prompt, steer and events API for seven installed agents.
Use boat when your agents do real work for hours: builds, tests, Docker, emulators, a desktop and a browser, on a VM that saves its disk every minute. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Freestyle.
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 Freestyle?
It depends on the job. For sandboxes for your users it is $476 a month on Cloudflare against $581 on Freestyle, and for 50 agents in parallel $1,660 against $2,139. For one coding agent on workdays Freestyle is lower, $27 against $39. boat costs $200, $317 and $20 for those three, and is lower than both in four of our five scenarios. For 1,000 short jobs at once none of the three fits as is.
Which is faster, Cloudflare Sandbox or Freestyle?
We cannot compare them: Cloudflare is not in StarSling's run of 3 October 2026. In that run Freestyle did 10.22 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, and boat did 28.06 on a Ryzen 9 9950X host. boat also places some sandboxes on other hosts.
Can Cloudflare Sandbox run Docker?
Yes, as docker:dind with the daemon's iptables and IP forwarding turned off, because containers cannot change iptables. Freestyle and boat both run Docker with systemd and nested virtualization.
Do they keep my files between sessions?
Freestyle keeps the disk with no code, and can keep memory too when a VM pauses. Cloudflare starts from a fresh disk after sleep, unless your code saves a snapshot (public beta, kept 30 days), schedules automatic saves or works in a mounted R2 bucket. boat saves the disk every minute and at each stop, and keeps it at least 14 days after a stop.
Can I limit where a sandbox connects to?
On both, yes. Cloudflare has an allowedHosts list and outbound handlers in Worker code. Freestyle starts every VM behind a default-deny firewall with allow rules by IP, VM, VPC or domain. boat does not offer a provider-side egress allowlist today.
Where does each one run?
Cloudflare places containers in several regions of its network and lets you pin one. Freestyle does not publish its regions. boat runs on machines in Germany, Finland and France, and you cannot pick a region.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Cloudflare Sandbox
- boat vs Freestyle
- 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