Cloudflare Sandbox vs Beam

Cloudflare Sandbox runs each sandbox as a container in its own Firecracker microVM, driven from a Worker. It sleeps when idle, wakes on the next request, and keeps files through snapshots or R2 that your code sets up. Beam is a serverless GPU platform whose sandboxes are fast gVisor containers, with a separate line of CPU VMs that keep their disk and have a desktop.

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.

Beam

Beam is a serverless cloud for GPU inference, sandboxes, VMs and background jobs, built on its open-source runtime Beta9.

Beam runs functions, REST endpoints, task queues, pods, sandboxes and VMs on CPUs and GPUs, from a Python or TypeScript SDK. A sandbox is a container isolated with gVisor by default. It lives until you terminate it or its time to live runs out, and you can save it as a filesystem image or a memory snapshot. Beam VMs are a separate CPU product: a microVM with its own kernel, systemd, a root disk that stays when it stops, and a browser desktop. A VM can pause with its memory, fork and take disk snapshots. CPU work runs on Spot, Shared or Performance tiers at different prices.

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 rankBeam: 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 Docker, systemd and a disk that stays between runs. A Beam VM and a boat sandbox both give these. On Cloudflare your code keeps the disk, and Docker runs with iptables turned off.
192nd of 365, with limits
$1,543 a month
7th cheapest of 365
$1,200 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
12th cheapest of 361
$1,495 a month
6th cheapest of 361
$657 a month
Code interpreter bursts
100 at once · 1 vCPU / 2 GB · 200,000 sessions of 1 min a month
Both fit short code-interpreter calls well: Beam sandboxes bill per millisecond and end on a timer, and Cloudflare bills CPU only while it is busy. boat includes a set number of starts per plan, and extra starts cost $0.03 to $0.07.
17th cheapest of 336
$144 a month
21st cheapest of 336
$161 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
All three fit sandboxes for your users. Cloudflare adds egress rules you write as Worker code. Beam gives each user a quick sandbox, with public URLs your app must protect. boat gives each user a full VM with token-gated URLs.
19th cheapest of 349
$731 a month
14th cheapest of 349
$567 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
147th of 349, with limits
$9,428 a month
332nd of 349, with limits
$984 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
16th cheapest of 359
$258 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
Beam fits CI runners, with Docker in sandboxes and VMs. Cloudflare has 20 GB of disk at most and runs Docker with iptables turned off. boat adds /dev/kvm for Android and VM builds.
303rd of 374, with limits
$704 a month
29th cheapest of 374
$300 a month
2nd cheapest of 374
$86 a month
24/7 dev boxes
1 machine 24/7 · 4 vCPU / 8 GB
A dev box should keep its files. A Beam VM keeps its root disk while stopped. On Cloudflare your code keeps files with snapshots, automatic saves or R2. boat saves the disk every minute and at each stop with no code.
123rd cheapest of 371
$93 a month
44th cheapest of 371
$55 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
Beam VMs have a browser Linux desktop with an SDK for screenshots, clicks and typing. Cloudflare removed its built-in desktop; you build one into your image. boat streams a 60 fps desktop with Chrome in every sandbox.
207th of 367, with limits
$460 a month
12th cheapest of 367
$431 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
73rd of 356, with limits
$272 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
16th cheapest of 343
$196 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
44th of 327, with limits
$967 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
25th cheapest of 351
$325 a month
6th cheapest of 351
$219 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
Beam has GPUs, from RTX 4090 up to H100, H200 and B200. Cloudflare Sandbox and boat have no GPU.
Not ranked: misses a requirementCheapest of 102
$547 a month
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 requirementNot ranked: misses a requirementNot ranked: misses a requirement

Key features

FeatureCloudflare SandboxBeamboat
IsolationFirecracker microVM per container, own kernel and networkgVisor container by default for sandboxes, with an opt-in VM-backed mode; Beam VMs are CPU microVMs with their own kernelFull VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared
Largest machine4 vCPU / 12 GiB / 20 GB diskMax sandbox size not published; Beam VM root disk 50 GiB by default, up to 100 GiB16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher)
Files between sessionsDisk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucketA sandbox keeps files through a saved image, a memory snapshot or a volume; a Beam VM keeps its root disk while stoppedDisk saved every minute and at each stop, with no code; kept at least 14 days after a stop
Snapshots and forkSnapshot or back up a running sandbox, then start new sandboxes from it; no one-call forkSandbox memory snapshots with running processes; VMs pause with RAM kept, fork and take disk snapshotsFork a running sandbox in one call, from its last 1-minute disk snapshot; memory is not kept
Docker insidedocker:dind with iptables and IP forwarding turned offDocker in sandboxes with docker_enabled, and in Beam VMsDocker with BuildKit and Compose, root and systemd
systemdNot documentedIn Beam VMs; not in sandboxesYes, in every sandbox
Nested virtualizationNot documentedNot documented for sandboxes or VMsYes, /dev/kvm for Android emulators and VMs
GPUsNoGPU sandboxes, serverless GPUs and GPU machines up to H100, H200 and B200No GPU on any size
Desktop and browserBuilt-in desktop removed in SDK 0.10.2; headless browsers through the separate Browser Run serviceBeam VMs have a browser Linux desktop and an SDK for screenshots, clicks, typing and recording; not documented for sandboxes1920x1080, 60 fps desktop and Chrome in every sandbox, with computer tools for agents
Inbound accessHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPSandboxes: public HTTPS URL per port, no built-in auth. VMs: token-protected URLs and TCP ports on a persistent public IPv6 addressUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6; the IP changes at each resume
Outbound rulesallowedHosts deny-by-default list plus outbound handlers you write in Worker codeBlock all outbound traffic, or allow up to 64 hosts, wildcard domains, IPs or CIDRs, changeable while runningOpen internet, no provider-side allowlist
Keeping API keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeBrokered secrets: the guest sees a placeholder, and Beam puts the real key into HTTPS headers to approved hostsOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and custom HTTPS APIs; other secrets enter the sandbox
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageYou install agents and run them through process exec; Beam's MCP server plugs into Claude Code, Codex and CursorSeven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events API
Regions and self-hostingSeveral regions across Cloudflare's network; pin to a region or jurisdiction; not self-hostableUS by default, another region if you choose one; Beta9 runtime is AGPL-3.0 and free to self-host, or bring your own cloud for a feeGermany, Finland and France; no US or Asia region; not self-hostable
Every feature Battleships tracks (43)
FeatureCloudflare SandboxBeamboat
Full VM (own kernel)YesNo documented wayYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNo documented wayYes
Desktop GUINo documented wayNo documented wayYes
BrowserWith your own setupNo documented wayYes
Computer-use APINo documented wayNo documented wayYes
SSHYesYesYes
Persistent diskWith your own setupWith your own setupYes
Pause/resumeNo documented wayNo documented wayYes
Automatic snapshotsWith your own setupNo documented wayYes
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-stopYesNo documented wayNo documented way
Wake on requestYesNo documented wayNo documented way
HTTPS preview URLsYesYesYes
Raw TCP inboundNo documented wayNo documented wayYes
Public IPv4No documented wayNo documented wayNo documented way
Egress allowlistYesYesNo documented way
Secret proxyYesYesYes
Secret proxy for any APIYesNo documented wayYes
Preinstalled agentsYesNo documented wayYes
Agent harness APIWith your own setupNo documented wayYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayYesNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayNo documented wayNo documented way
Self-hostingNo documented wayYesNo documented way
BYOCNo documented wayYesNo documented way
Open sourceYesYesNo documented way
Scoped API keysNot publishedNot publishedYes
Spend limitsNo documented wayNot publishedYes
Usage per sandbox (API)Not publishedNo documented wayYes
Audit logsYesNot publishedNo documented way
SSOYesNo documented wayNo documented way
SOC 2YesYesNo documented way
HIPAAYesYesNo documented way
EU data residencyYesNot publishedNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
BeamNot measured
boat28.06 runs/s

Cloudflare Sandbox and Beam are 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 median starts with 100 at once (2026-11-06, each at its default size): 534 ms for Beam and 671 ms for Cloudflare. Providers ran on different hardware in different regions. 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 and Beam 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.

ScenarioCloudflare Sandbox, a monthBeam, 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$20 · Developer$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$58 · Developer$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$836 · Team$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$312 · Team$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$527 · Team · 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 until the container sleeps, and 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.

Beam: Beam bills sandboxes per millisecond while they run, for each vCPU and GiB, on Spot, Shared or Performance tiers; new accounts default to Performance. For 4 vCPU / 8 GiB that is $0.28 an hour on Performance, $0.088 on Shared and $0.036 on Spot, which Beam can interrupt with 30 seconds of notice. Developer is $20 a month with $20 of credit; Team is $89 a month plus usage. Storage is not billed yet.

Beam: Plans cost $20, $100, $500 or $2,000 a month, and the whole plan price comes back as VM time for that month. A 4 vCPU / 8 GB sandbox costs $0.036 an hour, billed per second while it runs, busy or idle. A stopped sandbox has no compute charge; saved snapshots above the included count and the AI proxy, if on, still bill. The $20 plan includes 200 starts a day; extra starts cost $0.03 to $0.07.

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. A Cloudflare account runs 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. Beam's Developer plan allows 30 vCPUs at once, so 50 parallel agents need Team, and Team allows 1,000 vCPUs, short of the burst's 2,000. Beam does not bill storage yet, so its estimates count no disk cost. On boat, the $2,000 plan includes 90 starts a minute, extra starts cost $0.03 to $0.07, and starts above 270 a minute fail with 429, so none of the three fits 1,000 jobs at once as listed.

ScenarioCloudflare SandboxBeamboat
One coding agent, workdaysNone for this scenario
  • disk beyond 0 GiB: price unknown
None for this scenario
One agent that never stopsNone for this scenario
  • disk beyond 0 GiB: price unknown
None for this scenario
50 agents in parallelNone for this scenario
  • disk beyond 0 GiB: price unknown
None for this scenario
Sandboxes for your usersNone for this scenario
  • disk beyond 0 GiB: price unknown
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • Team: max 1,000 vCPU running at once (needs 2,000)
  • disk beyond 0 GiB: price unknown
  • 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 your own container image, or short sandboxes that sleep when idle, wake on the next request, and follow egress rules you write in code.

  • Sleeps when idle, wakes on request. For many short, spiky sessions, a sandbox sleeps after a quiet spell, wakes on the next request, and bills CPU only while busy.
  • Egress rules you can program. For teams that must control traffic, Cloudflare blocks every host not on your list and runs your own code on each outbound request.
  • Next to the rest of your Workers app. If your app already runs on Workers, sandboxes sit beside Durable Objects and R2, in a region you can pick.

Use Beam when

your agents need GPUs, when you want memory snapshots or VMs that pause with their memory, when you want US hosting, or when you must self-host.

  • GPUs in the same platform. For workloads that need a GPU, Beam offers GPU sandboxes, serverless GPUs and GPU machines from RTX 4090 to H100, H200 and B200.
  • Memory snapshots and VMs that pause. For agents that should resume mid-task, Beam snapshots a running sandbox with its processes, and its VMs pause with their memory.
  • Open source and your own cloud. For teams that must self-host, the Beta9 runtime is AGPL-3.0 and free to run, or Beam can run in your own cloud.

Where boat fits

Cloudflare Sandbox and Beam both give you a machine to drive from code. If you run coding agents that work for hours, build with Docker, run emulators or a browser, and need their files the next day, look at boat: every sandbox is a full VM that saves its disk with no code.

Files kept with no code

On Cloudflare your code keeps files with snapshots, automatic saves or R2. A Beam sandbox keeps files through a saved image, snapshot or volume; a Beam VM keeps its disk. boat saves the disk every minute and at each stop. A resume is like a reboot.

/dev/kvm on every sandbox

Cloudflare runs Docker with iptables turned off on up to 20 GB of disk. Beam VMs have Docker and systemd. Neither documents /dev/kvm, so an Android emulator or nested VM is not a supported path. Every boat sandbox has /dev/kvm.

Agents and a desktop in every sandbox

On Cloudflare and Beam you install each agent yourself. Beam VMs have a desktop; Cloudflare no longer ships one. boat installs seven agents and has a 60 fps desktop in every sandbox.

Use boat when your agents do real work for hours or days: builds, Docker, emulators and a desktop, on a full VM that saves its disk with no code. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Beam.

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 Beam?

Not in these scenarios. Beam's estimate is lower in all five, for example $58 against $148 a month for one agent that never stops, and $312 against $476 for sandboxes for your users. Beam's estimates count no disk cost, because Beam does not bill storage yet. boat costs $26 and $200 for those two.

Which is faster, Cloudflare Sandbox or Beam?

We cannot say for CPU: neither is in StarSling's run. For start time, ComputeSDK measured median starts with 100 at once of 534 ms for Beam and 671 ms for Cloudflare (2026-11-06, default sizes).

Is either one a VM?

Cloudflare runs each container in its own Firecracker microVM with its own kernel. A Beam sandbox is a gVisor container by default, with an opt-in VM-backed mode, and Beam also sells CPU VMs with their own kernel and systemd. Every boat sandbox is a full VM with /dev/kvm.

Can Cloudflare Sandbox or Beam run Docker?

Yes. Cloudflare supports docker:dind with iptables and IP forwarding turned off. Beam supports Docker inside a sandbox with docker_enabled and inside its VMs. boat runs Docker with BuildKit and Compose, with systemd, in every sandbox.

Do they keep my files?

Yes, in different ways. A Cloudflare sandbox keeps files through a snapshot, automatic saves, an R2 backup or a mounted R2 bucket that your code sets up. A Beam sandbox keeps files through a saved image, a memory snapshot or a volume, and a Beam VM keeps its root disk while stopped. boat saves the disk every minute and at each stop with no code; a machine failure loses writes after the last good snapshot.

Which one has GPUs?

Beam. It offers GPU sandboxes, serverless GPUs and GPU machines from RTX 4090 up to H100, H200 and B200. Cloudflare Sandbox and boat have no GPU.

Try boat

Install the CLI, then run boat new.

7-day free trial

More comparisons