Cloudflare Sandbox vs Claude Managed Agents
Cloudflare Sandbox gives you containers that you drive from your own Worker and fill with any code or agent. Your code keeps their files through snapshots, automatic saves or R2. Claude Managed Agents gives you Claude itself: you send a task, and Anthropic's harness runs Claude, with tools in a container that Anthropic manages or on a worker that you host.
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
Claude Managed Agents
Claude Managed Agents is Anthropic's ready-made agent harness: Claude runs as an autonomous agent, and you talk to it through an events API.
This is an agent platform, not a sandbox you rent. You define an agent (model, prompt, tools, MCP servers, skills) and an environment, then start sessions, send messages as events and stream back what Claude does. The harness handles tool calls, prompt caching and compaction. Each session gets its own Ubuntu container in Anthropic's cloud, or runs its tools on a worker that you host. It is built for teams that want Claude to do long tasks without building their own agent loop or sandbox.
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 | Claude Managed Agents: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A coding agent's long day needs a disk that stays. On Cloudflare your code keeps it with snapshots, automatic saves or R2, on up to 20 GB. A Managed Agents cloud sandbox has up to 8 GB of memory and 10 GB of disk. boat saves a full VM's disk with no code. | 192nd of 365, with limits $1,543 a month | 139th of 365, with limits $964 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Managed Agents keeps an idle session's files and wakes it on the next message; cloud sandbox files are kept 30 days after creation. On Cloudflare your code keeps the files. boat runs 24/7 once auto-stop is off on a paid plan. | 43rd cheapest of 361 $2,188 a month | 259th of 361, with limits $2,511 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 Sandbox, which bills CPU only while busy. Managed Agents bills runtime while the session runs, including time waiting on the model, with tokens on top. A running boat sandbox bills at full rate, busy or idle. | 17th cheapest of 336 $144 a month | 167th of 336, with limits $756 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 Sandbox fits sandboxes for your users, with previews through your Worker. A Managed Agents cloud sandbox has no documented inbound ports. boat gives each sandbox up to 50 HTTPS URLs, token-gated by default. | 19th cheapest of 349 $731 a month | 227th of 349, with limits $823 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 | 247th of 349, with limits $3,978 a month | 39th of 349, with limits $2,000 a month |
| Agent evals 250 at once · 4 vCPU / 8 GB · 15,000 sessions of 20 min a month Agent evals fit Cloudflare Sandbox, which runs any image and bills CPU only while busy. Managed Agents runs evals through Anthropic's harness with Claude models. boat gives each run Docker and a desktop. | 60th cheapest of 359 $818 a month | 247th of 359, with limits $320 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 CI jobs that build Docker images need disk and Docker. Cloudflare has 20 GB of disk at most and turns off iptables, and the Managed Agents cloud sandbox lists Docker as limited availability. boat runs Docker with BuildKit on a VM. | 303rd of 374, with limits $704 a month | 228th of 374, with limits $96 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB A dev box needs a shell and files that stay. Cloudflare has SSH and keeps files through snapshots or R2. A Managed Agents cloud sandbox has no documented SSH. boat has SSH and keeps the disk at least 14 days after a stop. | 123rd cheapest of 371 $93 a month | 238th of 371, with limits $48 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 Cloudflare removed its built-in desktop, and Managed Agents ships headless Chromium with Playwright; on both you add a desktop yourself. boat streams a built-in desktop at 1920x1080, 60 fps. | 207th of 367, with limits $460 a month | 166th of 367, with limits $288 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 | 181st of 356, with limits $288 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 | 194th of 343, with limits $390 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 | 153rd of 327, with limits $4,798 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 | 219th of 351, with limits $160 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 | Claude Managed Agents | boat |
|---|---|---|---|
| What it is | A sandbox SDK: containers you start and drive from your own Cloudflare Worker | A hosted Claude agent: Anthropic's harness runs Claude, and tools run in a cloud sandbox or on a worker you host | A sandbox platform: each agent gets its own full Linux VM, with coding agents installed |
| Isolation | Firecracker microVM per container, with its own kernel and network | Cloud sandbox: isolated Linux container per session. Self-hosted worker: the isolation of the host you run | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| Machine size | Up to 4 vCPU / 12 GiB / 20 GB disk | Cloud sandbox: up to 8 GB memory and 10 GB disk; vCPU not published. Self-hosted worker: whatever your host has | 16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher) |
| Files between sessions | Disk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucket | Cloud sandbox checkpointed when idle; files kept 30 days after creation; history and memory stores stay until you delete them | Disk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot |
| Wake on next request | Stops after inactivity and wakes on the next request | Idle session resumes from its checkpoint on the next message; idle time is not billed | No idle timer; auto-stop 1 hour by default, and you resume a stopped sandbox by API |
| Fork | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | No documented fork or clone of a session or sandbox | Fork a running sandbox in one call, from its last 1-minute snapshot |
| Docker, systemd and /dev/kvm | docker:dind with iptables and IP forwarding turned off; nested virtualization not documented | Cloud sandbox: Docker listed as limited availability; root, systemd and /dev/kvm not documented | Root, Docker with BuildKit, systemd and /dev/kvm on every sandbox |
| Desktop and browser | Built-in desktop removed in SDK 0.10.2; headless browsers through the separate Browser Run service | Headless Chromium with Playwright; no built-in desktop or computer-use tool | 1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream |
| Inbound access | HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP | Cloud sandbox: no documented inbound ports or SSH; you use the sessions and events API | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6 |
| Agents | Guides for Claude Code, Codex, OpenCode and Pi in your own image, plus a Claude Managed Agents integration | Anthropic's harness with Claude models, with steering, memory stores, multiagent threads and webhooks | Seven installed (Claude Code, Codex and more), driven from outside 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 | Vault secrets sit in the sandbox as placeholders and are swapped in at egress, per host | Optional 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 |
| Outbound rules | allowedHosts deny-by-default list plus outbound handlers you write in Worker code | Unrestricted, or limited to listed hosts plus optional package registries and MCP servers | Open internet, no provider-side allowlist |
| Self-hosting | No; the SDK is open source, but the platform runs only on Cloudflare | Self-hosted sandboxes run tools on your own workers while Anthropic keeps the orchestration | No |
| Where it runs | Several regions across Cloudflare's network; pin to a region or jurisdiction | US workspace geo only; inference can be global or US | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Claude Managed Agents | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Yes | Not published | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Not published | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | No documented way | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | With your own setup | Yes | Yes |
| Fork/clone | With your own setup | No documented way | Yes |
| Live fork (no pause) | With your own setup | No documented way | Yes |
| Memory fork | No documented way | No documented way | 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 | No documented way | Yes |
| Raw TCP inbound | No documented way | No documented way | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | Yes | Yes |
| Secret proxy for any API | Yes | Yes | Yes |
| Preinstalled agents | Yes | Yes | Yes |
| Agent harness API | With your own setup | Yes | Yes |
| MCP server | No documented way | Yes | No documented way |
| GPU | No documented way | No documented way | No documented way |
| Windows | No documented way | No documented way | No documented way |
| Arm64 | No documented way | No documented way | No documented way |
| Self-hosting | No documented way | Yes | No documented way |
| BYOC | No documented way | Yes | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | Yes | Yes |
| Usage per sandbox (API) | Not published | Yes | Yes |
| Audit logs | Yes | Not published | No documented way |
| SSO | Yes | Yes | No documented way |
| SOC 2 | Yes | Yes | No documented way |
| HIPAA | Yes | No documented way | No documented way |
| EU data residency | Yes | No documented way | No documented way |
| Zero data retention | Not published | No documented way | Yes |
Performance
Cloudflare Sandbox and Claude Managed Agents are not in StarSling's run of 3 October 2026 (run 37073680030), and Anthropic does not publish how many vCPUs a cloud sandbox gets, so we cannot compare their 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 a 671 ms median start for Cloudflare with 100 at once (2026-11-06, default size); Managed Agents and boat are not in ComputeSDK. On Managed Agents, much of a session's time is often spent waiting on the model rather than the CPU.
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 Claude Managed Agents are not in the public benchmarks we use, so we cannot say which is faster.
Pricing in five scenarios
Each bill is priced from the providers' public price lists by the open Battleships engine, with the cheapest plan that runs the scenario. Start limits, per-start fees and plan minimums are in the price, boat's included.
| Scenario | Cloudflare Sandbox, a month | Claude Managed Agents, 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 | $13 · Claude API (pay-as-you-go, usage tiers) · with limits | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $53 · Claude API (pay-as-you-go, usage tiers) · with limits | $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 | $634 · Claude API (pay-as-you-go, usage tiers) · with limits | $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 | $360 · Claude API (pay-as-you-go, usage tiers) · with limits | $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 | $796 · Claude API (pay-as-you-go, usage tiers) · with limits | $8,800 · $2000/mo · with limits |
Cloudflare Sandbox: You need Workers Paid ($5 a month minimum). CPU is billed only while in use, at $0.072 per vCPU-hour. Memory and disk are billed on the instance size you picked until the container sleeps, and 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.
Claude Managed Agents: There is no plan fee. You pay model tokens at API rates plus $0.08 per session-hour of runtime, only while a session is running, including time waiting on the model. The table shows runtime only, and the cloud sandbox size is not published, so it is not a like-for-like machine. Tokens come on top.
Claude Managed Agents: 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, and its default 1,500 vCPU account limit is short of the 2,000 vCPU the 1,000-job burst needs unless Cloudflare raises it. Claude Managed Agents is an agent platform rather than a sandbox you rent: its cloud sandbox size is not published and Docker is in limited availability, so no scenario counts as a like-for-like fit; a self-hosted worker removes these limits on a host you run. Anthropic publishes no concurrent-session cap, only 300 creates a minute and usage-tier spend caps. 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 boat does not fit 1,000 jobs at once.
| Scenario | Cloudflare Sandbox | Claude Managed Agents | boat |
|---|---|---|---|
| One coding agent, workdays | None for this scenario |
| None for this scenario |
| One agent that never stops | None for this scenario |
| None for this scenario |
| 50 agents in parallel | None for this scenario |
| None for this scenario |
| Sandboxes for your users | 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 for any code or agent, with egress rules you program and sleep when idle.
- Any code, any model. Teams that want their own image and their own agent, on any model, get a sandbox they control from a Worker.
- Egress rules you can program. Teams with strict network rules can block every host but a list, and run their own code on each outbound request.
- Short, spiky sessions inside Workers. Apps already on Workers get sandboxes that sleep when idle, wake on request and bill CPU only while busy.
Use Claude Managed Agents when
you want Claude itself to do long tasks with no harness to build, idle time that costs no runtime, and the option to run tools on your own workers.
- No agent loop to build. Teams that want Claude doing long tasks get the harness, caching, compaction, memory and webhooks ready to use.
- Idle sessions keep their files and wake on the next message. Agents that wait a long time between messages pay runtime only while working and resume where they left off.
- Tools on your own workers. Teams that must keep files and traffic in-house can run every tool call on workers they host themselves.
Where boat fits
If your agents do real work for hours, look at what each option asks of you. On Cloudflare your code keeps the files, on up to 20 GB of disk. A Managed Agents cloud sandbox is small, and its files are kept 30 days. boat gives each agent a full VM that saves its disk with no code, runs Docker and a desktop, and serves public URLs.
Files kept with no code
On Cloudflare your code keeps files with snapshots, automatic saves or R2. Managed Agents keeps cloud sandbox files 30 days after creation. boat saves the disk every minute and at each stop; a resume is like a reboot, and a machine failure loses writes after the last good snapshot.
Room for real builds
Cloudflare tops out at 4 vCPU and 20 GB of disk, with iptables off for Docker. A Managed Agents cloud sandbox has 8 GB of memory, 10 GB of disk and Docker in limited availability. boat goes up to 16 vCPU with root, systemd, Docker and /dev/kvm.
Open and watch what the agent builds
Cloudflare previews HTTP through a Worker you write, and a Managed Agents cloud sandbox has no documented inbound ports. Neither has a built-in desktop. boat gives up to 50 HTTPS URLs, SSH and a 60 fps desktop with computer tools.
Use boat when your agents need a full machine for hours: Docker, emulators, a desktop and browser, public URLs, a disk saved with no code, and the choice of Claude Code, Codex or other agents. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Claude Managed Agents.
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 Claude Managed Agents?
For runtime alone, Managed Agents costs less in all five scenarios on this page, for example $53 against $148 a month for one agent that never stops, and $634 against $1,660 for 50 agents in parallel. Managed Agents also bills model tokens, while on Cloudflare you pay your model provider separately. boat costs $26 and $317 for those two.
Which is faster, Cloudflare Sandbox or Claude Managed Agents?
We cannot say: neither is in StarSling's CPU run, and Anthropic does not publish a cloud sandbox's vCPU count. Cloudflare's largest size is 4 vCPU / 12 GiB, and ComputeSDK measured a 671 ms median start for it with 100 at once.
Can I run Docker in Cloudflare Sandbox or Claude Managed Agents?
Cloudflare supports docker:dind with iptables and IP forwarding turned off, because containers cannot change iptables. The Managed Agents cloud sandbox lists Docker as limited availability; a self-hosted worker can run on a host with Docker. boat runs Docker with BuildKit, root and systemd.
Do they keep my files between sessions?
Yes, in different ways. Cloudflare keeps files when your code saves a snapshot (public beta, kept 30 days), schedules automatic saves, makes an R2 backup or works in a mounted R2 bucket. Managed Agents checkpoints an idle session and resumes it on the next message, and keeps cloud sandbox files 30 days after creation. boat saves the disk every minute and at each stop with no code.
Can I run Claude in Cloudflare Sandbox?
Yes. Cloudflare documents running Claude Code, Codex, OpenCode or Pi inside your sandbox image, with your own keys added by an outbound handler, and lists a Claude Managed Agents integration. Managed Agents itself runs Anthropic's own harness with Claude models.
Where do Cloudflare Sandbox and Claude Managed Agents run?
Cloudflare places containers in several regions of its network, and you can pin a region or jurisdiction. Managed Agents stores data and runs code in the US workspace geo only. boat runs on machines in Germany, Finland and France, with no US or Asia region.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Cloudflare Sandbox
- boat vs Claude Managed Agents
- 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