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.

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 workloadCloudflare Sandbox: price rankFreestyle: price rankboat: 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 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

FeatureCloudflare SandboxFreestyleboat
IsolationFirecracker microVM per container, own kernel and networkFull KVM VM with its own kernel on bare metal; Freestyle says it oversubscribes host resourcesFull 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 run10.22 runs/s, 14th of 1528.06 runs/s, 2nd of 15 (rank shared), on a Ryzen 9 9950X host
Largest machine4 vCPU / 12 GiB / 20 GB disk32 vCPU / 64 GiB on Pro, 64 / 128 with Enterprise custom limits16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher)
Files between sessionsDisk is fresh after sleep; mount an R2 bucket, or restore a snapshot (public beta, 30 days), automatic save or R2 backupDisk kept with no time limit; a paused VM bills only storage, and a default VM fits in the free 60,000 GiB-hoursDisk saved every minute and at each stop; kept at least 14 days while stopped, longer as a saved snapshot
Pause with memoryNo; after sleep the container starts again without its processesPause saves memory and disk; the same processes resumeNo; resume boots the machine again with its disk
ForkSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkClone a running VM without pausing it; snapshots capture memory and diskFork a running sandbox's disk in one call; the fork uses the last 1-minute snapshot
Sleep and wake on requestStops after inactivity and wakes on the next requestOptional idle timeout (none by default); a paused VM resumes on the next trafficAuto-stop on a timer (1 h by default), not on idle; you start a stopped sandbox by API or CLI
Root, Docker, nested virtualizationdocker:dind with iptables and IP forwarding turned off; nested virtualization not documentedsystemd as pid 1, Docker from boot, full KVM supportRoot, systemd, Docker with BuildKit and /dev/kvm for Android emulators and VMs
Desktop, browser and computer useBuilt-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsersOfficial guides install GNOME with TigerVNC and noVNC, or headed Chromium, driven with Playwright or CDP; no first-party click API1920x1080, 60 fps desktop and Chrome, computer tools built in; no GPU
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your image, plus integrationsclaude, codex, opencode and openclaw installed, driven through exec, a PTY or the Claude Agent SDKSeven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events API
Keeping keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeCredentials injected at the edge for HTTPS headers, Postgres and S3; the VM must trust the Freestyle CAOptional 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 trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPHTTPS on free style.dev names or your own domain, forward auth, firewall ingress rules, a public IPv6 per VMUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6
Outbound rulesallowedHosts deny-by-default list plus outbound handlers you write in Worker codeDefault-deny firewall with allow rules by IP, VM, VPC or exact domainNo provider-side allowlist
RegionsSeveral regions across Cloudflare's network; pin to a region or jurisdictionRegions are not publishedGermany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCloudflare SandboxFreestyleboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayYesYes
RootYesYesYes
SystemdNot publishedYesYes
Desktop GUINo documented wayWith your own setupYes
BrowserWith your own setupWith your own setupYes
Computer-use APINo documented wayWith your own setupYes
SSHYesYesYes
Persistent diskWith your own setupYesYes
Pause/resumeNo documented wayYesYes
Automatic snapshotsWith your own setupYesYes
Fork/cloneWith your own setupYesYes
Live fork (no pause)With your own setupYesYes
Memory forkNo documented wayYesNo documented way
Custom image (Docker or snapshot)YesYesYes
≥24 h sessionsYesYesYes
Idle auto-stopYesYesNo documented way
Wake on requestYesYesNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayYesYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesYesYes
Preinstalled agentsYesYesYes
Agent harness APIWith your own setupNo documented wayYes
MCP serverNo documented wayNo documented wayNo documented way
GPUNo documented wayYesNo 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 sourceYesNo documented wayNo documented way
Scoped API keysNot publishedYesYes
Spend limitsNo documented wayNot publishedYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesYesNo documented way
SSOYesYesNo documented way
SOC 2YesNot publishedNo documented way
HIPAAYesNot publishedNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
Freestyle10.22 runs/s
boat28.06 runs/s

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.

ScenarioCloudflare Sandbox, a monthFreestyle, 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
$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.

ScenarioCloudflare SandboxFreestyleboat
One coding agent, workdaysNone for this scenarioNone for this scenarioNone for this scenario
One agent that never stopsNone for this scenarioNone 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 once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • Pro: max 400 concurrent
  • shared vCPUs on this tier”): heavy, sustained CPU use can be slowed by other tenants
  • 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 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