Cloudflare Sandbox vs Runloop

Cloudflare Sandbox runs containers inside the Workers platform. They sleep when idle, wake on the next request, and keep files through snapshots or R2 that your code sets up. Runloop gives each coding agent a devbox with a desktop, a browser, disk snapshots and idle suspend on Pro, built for building and testing agents.

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.

Runloop

Runloop is a US platform of sandboxes, called devboxes, for building, running and testing AI coding agents.

You get Linux devboxes built from Dockerfile-style blueprints, disk snapshots, HTTPS tunnels, agent gateways that hide API keys, browser and computer use, and Axons, event streams that drive agents such as Claude Code. Each devbox runs in a micro-VM on Runloop's own bare-metal hypervisor, with a container layer inside. It is built for teams that ship coding agents, plus evaluation and RL fine-tuning work on the Enterprise plan.

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 rankRunloop: price rankboat: price rank
Software factory
100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month
Runloop fits fully. Cloudflare is a compromise: its disk holds 20 GB at most, and your code keeps files with snapshots, automatic saves or R2. boat adds nested virtualization and saves the disk every minute with no code.
192nd of 365, with limits
$1,543 a month
24th cheapest of 365
$8,152 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
38th cheapest of 361
$10,194 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
Short code-interpreter calls suit Cloudflare well: CPU is billed only while busy, and a container wakes on the next request. Runloop also fits, with no published start limit on paid plans. boat includes a set number of starts per plan.
17th cheapest of 336
$144 a month
52nd cheapest of 336
$525 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
Cloudflare adds egress rules you write as Worker code, and Runloop adds hostname allowlists. boat runs 100 to 2,000 sandboxes at once by plan and has no provider-side allowlist.
19th cheapest of 349
$731 a month
37th cheapest of 349
$3,301 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
Runloop fits RL rollouts: it starts large waves with no published start limit on paid plans. Cloudflare and boat are compromise fits here: Cloudflare caps an account at 1,500 vCPU by default, and boat caps starts per plan.
147th of 349, with limits
$9,428 a month
8th cheapest of 349
$15,922 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
91st cheapest of 359
$2,562 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
Runloop fits fully, with Docker on its Docker-in-Docker blueprints. Cloudflare is a compromise, with 20 GB of disk at most and no iptables changes. In StarSling's run of 3 October 2026, boat did 28.06 runs/s and Runloop 8.93 on the V8 Web Tooling Benchmark.
303rd of 374, with limits
$704 a month
125th cheapest of 374
$1,554 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. Runloop keeps them in disk snapshots on every plan, and through idle suspend on Pro. 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 code.
123rd cheapest of 371
$93 a month
118th cheapest of 371
$410 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
Runloop ships a desktop and a browser your agent can control. On Cloudflare you build a desktop into your image, or use the separate Browser Run service. boat streams its desktop at 60 fps, and you can embed it.
207th of 367, with limits
$460 a month
41st cheapest of 367
$2,306 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
38th cheapest of 356
$1,153 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
73rd cheapest of 343
$781 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
267th of 327, with limits
$15,611 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
Runloop can lock a devbox to a hostname allowlist. Cloudflare containers cannot change iptables or take raw TCP inbound. boat gives a full kernel with nested virtualization and raw ports over public IPv6.
25th cheapest of 351
$325 a month
16th cheapest of 351
$770 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 SandboxRunloopboat
IsolationFirecracker microVM per container, own kernel and networkMicro-VM on a custom bare-metal hypervisor, plus a container layerFull 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 run8.93 runs/s, 15th of 1528.06 runs/s, 2nd of 15 (shared), on a Ryzen 9 9950X host
Largest machine4 vCPU / 12 GiB / 20 GB diskSizes include 4 vCPU / 8 GiB; disk up to 64 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 directory backups or a mounted R2 bucketDisk snapshots on every plan; idle suspend keeps the disk on Pro; shutdown deletes the diskDisk saved every minute and at each stop, with no code, on every plan; kept at least 14 days after a stop, longer as a saved snapshot
Long runsNo fixed maximum; stops after an inactivity timeout and wakes on the next request; runtime not guaranteedKeep-alive timer 1 hour by default, 48 hours max; an idle policy replaces it, with no documented capAuto-stop 1 h by default; up to 30 days, or off on a paid plan with no session cap
Sleep when idle, wake on requestStops after inactivity and wakes on the next requestSuspend after idle, wake on an HTTP request to the tunnel (Pro plan)No idle timer; auto-stop counts from create or resume, full rate while running
Custom imageAny linux/amd64 container imageBlueprints built from Dockerfiles, x86_64 and arm64boat's Ubuntu 24.04 image or a saved snapshot; x86_64 only
Docker insidedocker:dind with iptables and IP forwarding turned offYes, on the Docker-in-Docker blueprints, as rootDocker with BuildKit and Compose, root and systemd
Nested virtualizationNot documentedNot documented; the docs cover Docker-in-DockerYes, /dev/kvm (Android emulators, VMs)
Desktop and browserBuilt-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsersDesktop and browser your agent can control1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU
Inbound trafficHTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IPOne HTTPS tunnel per devbox; SSH through a TLS proxy; no public IP documentedUp to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6
Egress controlallowedHosts deny-by-default list plus outbound handlers you write in Worker codeHostname allowlist with wildcards, or block allOpen internet, no provider-side allowlist; filter inside the VM with root
Keeping keys out of the sandboxYour outbound handler adds the token for any HTTP or HTTPS host; you write the codeAgent gateways for any API endpoint with bearer, header or basic authOptional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register
Coding agentsGuides for Claude Code, Codex, OpenCode and Pi in your imageClaude Code, Codex, OpenCode, Gemini CLI and DeepAgents through agent wrappersSeven installed (Claude Code, Codex, pi, OpenCode and more), with a prompt, steer and events API
Where it runsSeveral regions across Cloudflare's network; pin to a region or jurisdictionRegions not documented; deploy into your own AWS, GCP or Azure (Enterprise)Germany, Finland and France; no US or Asia region; you cannot pick one
Every feature Battleships tracks (43)
FeatureCloudflare SandboxRunloopboat
Full VM (own kernel)YesYesYes
Docker insideYesYesYes
Nested virtualizationNo documented wayNo documented wayYes
RootYesYesYes
SystemdNot publishedNot publishedYes
Desktop GUINo documented wayYesYes
BrowserWith your own setupYesYes
Computer-use APINo documented wayYesYes
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 wayNo documented wayNo 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 wayNo documented wayYes
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 setupYesYes
MCP serverNo documented wayYesNo documented way
GPUNo documented wayNo documented wayNo documented way
WindowsNo documented wayNo documented wayNo documented way
Arm64No documented wayYesNo documented way
Self-hostingNo documented wayNo documented wayNo documented way
BYOCNo documented wayYesNo documented way
Open sourceYesNo documented wayNo documented way
Scoped API keysNot publishedYesYes
Spend limitsNo documented wayNot publishedYes
Usage per sandbox (API)Not publishedYesYes
Audit logsYesNot publishedNo documented way
SSOYesYesNo documented way
SOC 2YesYesNo documented way
HIPAAYesNot publishedNo documented way
EU data residencyYesNo documented wayNo documented way
Zero data retentionNot publishedNot publishedYes

Performance

Cloudflare SandboxNot measured
Runloop8.93 runs/s
boat28.06 runs/s

In StarSling's run of 3 October 2026 (run 37073680030), the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, median of 5 sandboxes: boat did 28.06 runs/s (second of 15) and Runloop 8.93 (15th), about 3.1 times apart. Higher is better. 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. Providers ran on different hardware in different regions. Cloudflare Sandbox is not in that run, so we cannot compare its CPU. For start time, ComputeSDK measured a 671 ms median for Cloudflare with 100 at once (2026-11-06) and 465 ms for Runloop one at a time (2026-08-07), each at its default size; those are different tests. 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 monthRunloop, 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$113 · Basic$20 · $20/mo
One agent that never stops
4 vCPU / 8 GB, 50 GB disk, running 24/7 all month
$148 · Workers Paid$429 · Basic$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$5,268 · Basic$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$1,441 · Basic$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$3,184 · Basic$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.

Runloop: Runloop bills per second for allocated CPU ($0.108 per vCPU-hour) and memory ($0.0252 per GB-hour) while a devbox starts, runs, suspends or resumes: $0.63 an hour at 4 vCPU / 8 GB. Its disk bills $0.2499 per GB-month for the devbox's whole life. Basic has no plan fee. Pro adds $250 a month that is not usage credit. New accounts get $50 of credit with no card.

Runloop: 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's local disk holds 20 GB at most, so the scenarios that keep 50 GB of files between days need your own snapshot, automatic-save or R2 code. Its account can run 1,500 vCPU at once by default, short of the 2,000 the 1,000-job burst needs, though Cloudflare raises it on request. Runloop fits all five scenarios but publishes no egress price. 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.

ScenarioCloudflare SandboxRunloopboat
One coding agent, workdaysNone for this scenario
  • egress price not published
None for this scenario
One agent that never stopsNone for this scenario
  • egress price not published
None for this scenario
50 agents in parallelNone for this scenario
  • egress price not published
None for this scenario
Sandboxes for your usersNone for this scenario
  • egress price not published
None for this scenario
1,000 short jobs at once
  • Workers Paid: max 1,500 vCPU running at once (needs 2,000)
  • egress price not published
  • 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 follow egress rules you program.

  • Sleeps when idle, wakes on request. Useful for many short, spiky sessions: a sandbox sleeps when idle, wakes on the next request, and bills CPU only while busy.
  • Egress rules you can program. Cloudflare can block every host except the ones you list, and run your own Worker code on each outbound 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 Runloop when

you build and test coding agents that need a desktop, disk snapshots, hostname allowlists, arm64, very large bursts, or devboxes inside your own AWS, GCP or Azure account.

  • A desktop and saved disks for agents. Useful for computer-use agents: each devbox has a desktop and browser, and its disk survives in a snapshot or a suspend.
  • Run it in your own cloud. On the Enterprise plan, Runloop can run devboxes inside your own AWS, GCP or Azure account.
  • arm64 and Dockerfile blueprints. Useful for arm64 builds: Runloop offers x86_64 and arm64 machines and builds images from Dockerfiles.

Where boat fits

Cloudflare Sandbox and Runloop both keep an agent's files through steps you take: snapshot or R2 code on Cloudflare, snapshot calls or Pro suspend on Runloop. If your agents run for hours on installs, builds, tests, Docker and emulators, boat gives each one a full VM that saves its disk with no code on every plan. boat runs only in the EU, has no GPU and limits starts per plan.

Files that stay put with no code

On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2. On Runloop a shutdown deletes the disk, so you take snapshots or use suspend on the $250-a-month Pro plan. boat saves the disk every minute and at each stop. Memory is not saved, so a resume is like a reboot.

A full Linux machine

Neither documents /dev/kvm, so Android emulators and VMs have no documented way to run. Cloudflare runs Docker with iptables off on 20 GB of disk, and both reach a sandbox through HTTPS or SSH, with no raw TCP inbound. boat has /dev/kvm and raw ports over public IPv6.

CPU for builds

In StarSling's run of 3 October 2026, boat did 28.06 V8 Web Tooling runs/s and Runloop 8.93, about 3.1 times apart. Every boat sandbox in that run ran on a Ryzen 9 9950X host; boat also places some sandboxes on other hosts. Cloudflare is not in that run.

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

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

Its estimates are lower in all five scenarios, for example $148 against $429 a month for one agent that never stops, and $1,660 against $5,268 for 50 agents in parallel. On Cloudflare those scenarios keep files only through your own snapshot or R2 code. boat costs $26 and $317 for the same two, but $8,800 for 1,000 short jobs at once, where Runloop costs $3,184, because boat bills extra starts.

Which is faster, Cloudflare Sandbox or Runloop?

Only Runloop is in StarSling's run of 3 October 2026: 8.93 V8 Web Tooling runs/s at 4 vCPU / 8 GB. boat did 28.06 in the same run, on an AMD Ryzen 9 9950X host; boat also places some sandboxes on other hosts. Cloudflare is not in that run, so we cannot compare its CPU.

Can Cloudflare Sandbox and Runloop run Docker?

Both can. Cloudflare supports docker:dind with iptables and IP forwarding turned off, and Runloop runs Docker as root on its Docker-in-Docker blueprints. boat runs Docker with BuildKit and Compose, root and systemd.

Do they keep my files between sessions?

Yes, through steps you take. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. Runloop keeps the disk in a snapshot, or through idle suspend on Pro, and deletes it on shutdown. boat saves the disk every minute and at each stop with no code, and keeps it at least 14 days after a stop.

Which one has a desktop for computer-use agents?

Runloop ships a desktop and a browser your agent can control. Cloudflare removed its built-in desktop in SDK 0.10.2, so you add one to your own image, or use the separate Browser Run service for headless browsers. boat streams a 60 fps desktop with computer tools.

Where do they run?

Cloudflare places containers in several regions of its network and lets you pin a region or jurisdiction. Runloop does not document regions, but on Enterprise it can deploy into your own AWS, GCP or Azure account. 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