Cloudflare Sandbox vs Google Agent Runtime
Cloudflare Sandbox runs each container in its own Firecracker microVM with root and Docker. The disk starts fresh after it sleeps, unless your code keeps files with snapshots or R2. Google Agent Runtime hosts your agent code and runs sandboxes as an unprivileged user in gVisor, with no sudo. It can pause them with their files and snapshot their memory.
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
Google Agent Runtime
Google Agent Runtime is the agent hosting part of Gemini Enterprise Agent Platform on Google Cloud, renamed from Vertex AI Agent Engine in April 2026.
It is a hyperscaler service, not a sandbox company. Agent Runtime deploys agents you build with ADK, LangGraph, LangChain, AG2 or LlamaIndex and bills them only while they work on a turn. Next to it, Agent Sandbox gives those agents a place to run code: a Code Execution sandbox, a shell or custom container sandbox, and a Computer Use browser. Each sandbox runs in a gVisor-isolated container in a Google-managed tenant project. Teams on GKE can also run the open-source GKE Agent Sandbox in their own cluster, with gVisor or Kata Containers, and manage it themselves.
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 | Google Agent Runtime: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month Long builds need root, Docker and files that stay. Cloudflare has root and Docker, and keeps files through snapshots or R2 that your code sets up. Google keeps files on pause but documents no root or Docker inside. boat has all of it on one VM. | 192nd of 365, with limits $1,543 a month | 310th of 365, with limits $5,801 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB A paused Google sandbox keeps its files, but it is deleted when its TTL ends (7 days at most); a snapshot carries the state into a new one. On Cloudflare your code saves snapshots or mounts R2. On boat you turn auto-stop off on a paid plan. | 43rd cheapest of 361 $2,188 a month | 34th cheapest of 361 $7,519 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 busy and wakes on the next request. Google's Code Execution sandbox is a ready Python and JavaScript interpreter with no network. | 17th cheapest of 336 $144 a month | 251st of 336, with limits $275 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 fits sandboxes for your users, with previews through your Worker. Google gives your users a shell through its API or a private endpoint, with no public URL documented. boat serves up to 50 HTTPS URLs per sandbox. | 19th cheapest of 349 $731 a month | 275th of 349, with limits $1,916 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 | 132nd of 349, with limits $8,240 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 | 90th cheapest of 359 $2,060 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 Docker-heavy CI is hard on both. Cloudflare runs Docker with iptables turned off and has 20 GB of disk. Google documents no Docker inside; you build images outside and push them to Artifact Registry. boat runs Docker and systemd on every VM. | 303rd of 374, with limits $704 a month | 104th cheapest of 374 $989 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. Cloudflare starts from a fresh disk after sleep unless your code snapshots it or mounts R2. Google documents no SSH and runs each command in a new shell. boat gives SSH and keeps a stopped disk at least 14 days. | 123rd cheapest of 371 $93 a month | 317th of 371, with limits $241 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 Google gives you a browser with a VNC view and a click and type API. On Cloudflare you build a desktop into your image, or use Browser Run for headless browsers. boat streams a 60 fps desktop with computer tools. | 207th of 367, with limits $460 a month | 85th of 367, with limits $1,648 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 | 132nd of 356, with limits $824 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 | 56th cheapest of 343 $515 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 | 212th of 327, with limits $8,240 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 Cloudflare containers cannot change iptables and take no raw TCP from outside. Google sandboxes have no root. boat gives root networking, raw ports over IPv6 and /dev/kvm. | 25th cheapest of 351 $325 a month | 281st of 351, with limits $412 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 | Google Agent Runtime | boat |
|---|---|---|---|
| Isolation | Firecracker microVM per container, own kernel and network | gVisor-isolated container in a Google-managed tenant project | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| Root and Docker | Root; docker:dind with iptables and IP forwarding turned off | Runs as appuser with no sudo; images must not need root; Docker inside not documented | Root, systemd and Docker with BuildKit on every machine |
| Nested virtualization | Not documented | Not documented | Yes, /dev/kvm (Android emulators, VMs) |
| Largest machine | 4 vCPU / 12 GiB / 20 GB disk | Runtime up to 8 vCPU and 32 GiB; sandbox maximum not published | 16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher) |
| Files after a stop | Disk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 backups or a mounted R2 bucket | Pause keeps the file system at a lower, unpublished rate; a snapshot (Preview) saves files and memory into a new sandbox | Disk saved every minute and at each stop, with no code; kept at least 14 days after a stop, longer as a saved snapshot; memory is not saved |
| How long a sandbox lives | No fixed maximum; stops after an inactivity timeout and wakes on the next request; runtime not guaranteed | TTL of up to 7 days for a custom container and 14 days for Code Execution; a snapshot carries the state into a new sandbox | Auto-stop 1 h by default; up to 30 days, or off on a paid plan with no session cap |
| Snapshots and branching | Snapshot or back up a running sandbox's disk, then start new sandboxes from it; no one-call fork | Snapshots (Preview) keep memory and files; start many sandboxes from one snapshot | Fork a running sandbox in one call from its last 1-minute snapshot; no memory snapshots |
| Idle behavior | Sleeps after inactivity and wakes on the next request | Runtime skips idle time between turns; sandboxes bill while they exist | Auto-stop on a timer (1 h by default), not on idle; full rate while running |
| Reaching the sandbox | HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP | Through Google's API or a private endpoint in your VPC; no public URL documented | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6 |
| Egress control | allowedHosts deny-by-default list plus outbound handlers you write in Worker code | Off unless the template turns it on; route through your VPC with Cloud NAT, a static IP, Cloud NGFW or Secure Web Proxy | No provider-side allowlist |
| Keeping keys out of the sandbox | Your outbound handler adds the token for any HTTP or HTTPS host; you write the code | You provision and scope the credentials the agent uses | Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs; other secrets still enter the sandbox |
| Desktop and browser | Built-in desktop removed in SDK 0.10.2; build one into your own image, or use the separate Browser Run service for headless browsers | A browser in a container with a VNC live view, a click, type and screenshot API, and CDP; full desktop not documented | 1920x1080, 60 fps desktop and Chrome, computer tools, embeddable stream; no GPU |
| Coding agents | Guides for Claude Code, Codex, OpenCode and Pi in your image, plus integrations | Managed Agents API (Preview) runs Google's Antigravity harness; install other harnesses in a custom image | Seven installed (Claude Code, Codex, OpenCode and more), with a prompt, steer and events API |
| Regions | Several regions across Cloudflare's network; pin to a region or jurisdiction | 23 locations in the US, Europe, the Middle East, Asia, Canada, Australia and Brazil | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Google Agent Runtime | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | No documented way | Yes |
| Docker inside | Yes | No documented way | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | No documented way | Yes |
| Systemd | Not published | Not published | Yes |
| Desktop GUI | No documented way | Not published | Yes |
| Browser | With your own setup | Yes | Yes |
| Computer-use API | No documented way | Yes | 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 | Yes | Yes |
| Live fork (no pause) | With your own setup | Yes | Yes |
| Memory fork | No documented way | Yes | No documented way |
| Custom image (Docker or snapshot) | Yes | Yes | Yes |
| ≥24 h sessions | Yes | Yes | Yes |
| Idle auto-stop | Yes | No documented way | No documented way |
| Wake on request | Yes | No documented way | No documented way |
| HTTPS preview URLs | Yes | No documented way | Yes |
| Raw TCP inbound | No documented way | Not published | Yes |
| Public IPv4 | No documented way | No documented way | No documented way |
| Egress allowlist | Yes | Yes | No documented way |
| Secret proxy | Yes | No documented way | Yes |
| Secret proxy for any API | Yes | No documented way | Yes |
| Preinstalled agents | Yes | Yes | Yes |
| Agent harness API | With your own setup | Yes | Yes |
| MCP server | No documented way | No documented way | 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 | Yes | No documented way |
| Self-hosting | No documented way | No documented way | No documented way |
| BYOC | No documented way | No documented way | No documented way |
| Open source | Yes | No documented way | No documented way |
| Scoped API keys | Not published | Not published | Yes |
| Spend limits | No documented way | Not published | 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 | Yes | No documented way |
| EU data residency | Yes | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Cloudflare Sandbox nor Google Agent Runtime is 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 a 671 ms median start for Cloudflare with 100 at once (2026-11-06, default size). Google and boat are 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 Google Agent Runtime 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 | Google Agent Runtime, 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 | $73 · Pay as you go | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $301 · Pay as you go | $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 | $3,626 · Pay as you go · 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 | $1,030 · Pay as you go | $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 | $2,060 · Pay as you go | $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.
Google Agent Runtime: Google bills $0.085 per vCPU-hour and $0.009 per GiB-hour allocated, rounded to the second. Sandboxes bill while they exist; a paused one costs less at a rate Google does not publish. Disk, snapshot and egress rates are not published. The pricing page lists free monthly resources but does not say they cover sandboxes, so our totals do not subtract them.
Google Agent Runtime: 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 fits four of the five scenarios, with files kept through snapshots, automatic saves or R2 that your code sets up. The 1,000-job burst needs 2,000 vCPU against a default account limit of 1,500, though Cloudflare raises it on request. Google fits most scenarios, but the 50-agent fleet does not fit because Google documents no Docker inside its sandboxes, and every Google row leaves disk and egress unpriced. boat does not fit the burst as is: the $2,000 plan includes 90 starts a minute and 600 an hour, charges $0.03 to $0.07 for extra starts, and refuses starts above 270 a minute.
| Scenario | Cloudflare Sandbox | Google Agent Runtime | 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 with root and Docker that sleep when idle and wake on the next request.
- Root and Docker inside. Useful if your agent needs root: Cloudflare runs docker:dind in each sandbox, while Google sandboxes run as an unprivileged user.
- 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.
- Next to your Workers. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, with egress rules you write as code.
Use Google Agent Runtime when
you build agents with ADK or LangGraph on Google Cloud and want them hosted inside your own project, with locked sandboxes you can pause and snapshot.
- A managed home for your agent code. Useful if you build agents with ADK or LangGraph: Agent Runtime hosts them and skips billing for idle time between turns.
- State you can pause and branch. Useful if you need to keep a sandbox's files on pause, or branch many sandboxes from one memory snapshot.
- Inside your Google Cloud network. Useful if agents must stay in a Google Cloud perimeter, with egress off by default and 23 locations to pick from.
Where boat fits
Both are built around short, controlled runs: Cloudflare needs your code to keep files across sleep, and Google locks the sandbox down without root and ends it at its TTL. If your agents do long work like builds, Docker stacks, emulators and a desktop, boat gives each one a full VM that saves its disk with no code. boat runs only in the EU, and memory is not saved.
A full VM with root, Docker and /dev/kvm
Cloudflare runs Docker with iptables turned off and 20 GB of disk. Google has no sudo and documents no Docker, so you bake every tool into an image ahead of time. boat has root, Docker with BuildKit and /dev/kvm on every sandbox.
A disk saved with no code
On Cloudflare your code saves snapshots, automatic saves or R2. Google ends a sandbox at its TTL, 7 days at most, and a snapshot carries the state on. boat saves the disk every minute and at each stop, and keeps a stopped disk at least 14 days.
Coding agents driven from outside
On Cloudflare you install each agent in your image and write the handler that adds every key. Google's managed harness is Antigravity, in Preview; other harnesses go in a custom image. boat ships Claude Code, Codex and more with a prompt, steer and events API.
Use boat when your agents need a real computer for hours: root, Docker, a desktop and public URLs on a full VM that saves its disk, with coding agents installed. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Google Agent Runtime.
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 Google Agent Runtime?
In all five of our scenarios, Cloudflare's estimate is lower: $39 against $73 for one agent on workdays, $148 against $301 for one agent all month, $476 against $1,030 for sandboxes for your users, and $1,889 against $2,060 for 1,000 short jobs at once. boat comes to $20, $26 and $200 for the first three, and $8,800 for the burst, because it bills extra starts.
Which is faster?
Neither is in StarSling's run of 3 October 2026, so we cannot say. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host. boat also places some sandboxes on other hosts.
Can I run Docker in Cloudflare Sandbox or Google Agent Runtime?
On Cloudflare, yes, with docker:dind and the daemon's iptables and IP forwarding turned off. In Google's managed sandboxes, commands run as the unprivileged user appuser with no sudo, and Google documents no Docker inside. Teams on GKE can run the open-source GKE Agent Sandbox in their own cluster. boat runs Docker with root and systemd.
Which one keeps my files?
Google can pause a sandbox with its file system and snapshot its memory, and deletes the sandbox when its TTL ends. Cloudflare starts from a fresh disk after sleep, unless your code saves a snapshot, schedules automatic saves or works in a mounted R2 bucket. boat saves the disk every minute and at each stop with no code. Memory is not saved on boat.
Is Google Agent Runtime the same as Vertex AI Agent Engine?
Yes. Google renamed Vertex AI Agent Engine to Agent Runtime in April 2026, as part of Gemini Enterprise Agent Platform. Its code, shell and browser sandboxes are a separate part called Agent Sandbox.
Where does each one run?
Cloudflare places containers in several regions of its network and lets you pin one. Google runs in 23 locations across the US, Europe, the Middle East, Asia, Canada, Australia and Brazil. boat runs on machines in Germany, Finland and France, and you cannot pick a region.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Cloudflare Sandbox
- boat vs Google Agent Runtime
- 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