Cloudflare Sandbox vs Ona
Cloudflare Sandbox is a self-serve API. Your Worker starts a container that sleeps when idle, wakes on the next request, and keeps files through snapshots or R2 that your code sets up. Ona, formerly Gitpod and now part of OpenAI, gives engineers and its Codex agent full dev environments that keep their disk. Since Ona Cloud shut down on October 31, 2026, Ona runs only as Enterprise, in your own AWS or GCP account, sold through sales.
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
Ona
Ona, formerly Gitpod, is a platform for cloud dev environments and background coding agents, and is now part of OpenAI.
Ona is a different kind of product from boat: a dev-environment platform, not a sandbox API. Each task or developer gets an isolated VM built from a Dev Container config. People open it in a browser IDE, VS Code or JetBrains, and Ona's Codex Agent can plan, code, test and open pull requests in it. Ona has a built-in web browser that its AI can drive, prebuilds and Enterprise warm pools. It is built for engineering teams who want the same governed environment for every developer and agent. Since Ona Cloud shut down on October 31, 2026, every customer runs it in their own AWS or GCP account on an Enterprise contract.
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 | Ona: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month On Cloudflare your code keeps files with snapshots, automatic saves or R2, and the disk is 20 GB at most. On Ona each agent gets a VM that keeps its disk, and the SDK on Enterprise, Ona's only plan, starts them from code. boat saves the disk with no code and adds Docker, /dev/kvm and a desktop. | 192nd of 365, with limits $1,543 a month | 334th of 365, with limits $7,315 a month | 5th cheapest of 365 $634 a month |
| Always-on AI employees 50 machines 24/7 · 2 vCPU / 4 GB Ona keeps an assistant's files across stops, but stops it after 30 idle minutes unless auto-stop is set to Never. On Cloudflare your code saves snapshots or mounts R2. On boat you turn auto-stop off on a paid plan (default 1 hour), and a running sandbox bills at full rate. | 43rd cheapest of 361 $2,188 a month | 147th of 361, with limits $8,504 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 Cloudflare fits short code-interpreter calls well: CPU is billed only while busy, and a container wakes on the next request. Ona is built for dev environments, not for short calls. | 17th cheapest of 336 $144 a month | 326th of 336, with limits $5,320 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 and boat both fit sandboxes for your users. Ona is built for your own engineers, and its per-user policy defaults to 10 running environments (admins can set 1 to 100). | 19th cheapest of 349 $731 a month | 325th of 349, with limits $5,988 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 | 277th of 349, with limits $9,773 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 | 332nd of 359, with limits $5,768 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 Cloudflare has 20 GB of disk at most and runs Docker with iptables turned off. Ona has no fork, so each run starts from a prebuild, though Enterprise warm pools hand out an environment in about 10 seconds. boat can fork a warm machine from its last 1-minute snapshot, and each fork counts as one start. | 303rd of 374, with limits $704 a month | 366th of 374, with limits $5,461 a month | 2nd cheapest of 374 $86 a month |
| 24/7 dev boxes 1 machine 24/7 · 4 vCPU / 8 GB Ona is a full cloud IDE with Dev Containers and prebuilds. Cloudflare starts a fresh disk after sleep unless your code restores a snapshot (beta, 30 days) or mounts an R2 bucket. boat is a full VM that keeps a stopped disk at least 14 days, with no compute charge while stopped. | 123rd cheapest of 371 $93 a month | 371st of 371, with limits $5,140 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 Ona's AI can drive a built-in browser inside the environment, with no full desktop for other apps. On Cloudflare you build a desktop into your image, or use the separate Browser Run service. boat streams a 60 fps desktop with Chrome and computer tools. | 207th of 367, with limits $460 a month | 355th of 367, with limits $5,691 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 | 219th of 356, with limits $5,346 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 | 220th of 343, with limits $5,468 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 | 261st of 327, with limits $14,360 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 takes no raw TCP from outside and cannot change iptables. Ona documents no raw TCP or /dev/kvm. boat has root networking, raw ports over public IPv6, nested VMs and fork. | 25th cheapest of 351 $325 a month | 150th of 351, with limits $5,228 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 | Ona | boat |
|---|---|---|---|
| Kind of product | Sandbox SDK: containers you start and drive from a Cloudflare Worker | Dev-environment platform for engineers and the Codex agent | Sandbox API: full VMs you start and drive from code |
| Isolation | Firecracker microVM per container, own kernel and network | Isolated VM per environment, built from a Dev Container config | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| How you buy it | Self-serve on Workers Paid ($5 a month minimum) | Enterprise only, through sales; Ona Cloud and Core shut down on October 31, 2026 | Self-serve plans from $20 a month; 7-day trial with a card |
| Driving it from code | Sandbox SDK from your Worker | Python, TypeScript and Go SDK and a CLI on Enterprise, Ona's only plan | API, SDK and CLI on every plan, including the trial |
| Files after a stop | Disk is fresh after sleep; keep files with snapshots (public beta, 30 days), scheduled automatic saves, R2 directory backups or a mounted R2 bucket | Disk kept across stops, and its storage stays on your cloud bill; archived after 3 days stopped by default (admins can set 1 to 30 days) | 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 and running programs are not saved |
| Fork | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | No environment copy; start from a config, a prebuild or an Enterprise warm pool | Fork a running sandbox in one call; the fork uses the last 1-minute snapshot |
| Docker and nested virtualization | docker:dind with iptables and IP forwarding off; nested virtualization not documented | Docker and root in the Dev Container; nested virtualization not documented | Docker with BuildKit and Compose, root, systemd and /dev/kvm |
| Desktop and computer use | 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 | Browser IDE, VS Code and JetBrains; a built-in web browser that Ona's AI can drive; no full graphical desktop | 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 | Managed Codex Agent from chat, Slack, a pull request, a Linear issue or an automation; you install Claude Code yourself | Seven installed (Claude Code, Codex, OpenCode and more), with a prompt, steer and events API |
| Keeping keys out of the sandbox | Your outbound handler adds tokens for any HTTP or HTTPS host; you write the code | Secrets injected as environment variables or files; OIDC can swap them for short-lived cloud credentials | Optional paid proxy ($1 a day while on, plus $1 per 1,000 requests) for model providers and HTTPS APIs you register |
| Egress control | allowedHosts deny-by-default list plus outbound handlers in Worker code | No provider-side egress allowlist documented | No provider-side allowlist; filter inside the VM with root |
| Reaching the sandbox | HTTP and WebSocket previews through your Worker; SSH; no raw TCP inbound or public IP | HTTPS URL per port and SSH; no raw TCP or public IP documented | Up to 50 HTTPS URLs, token-gated by default; SSH; raw ports over public IPv6; the IP changes at each resume |
| Largest machine and GPUs | 4 vCPU / 12 GiB / 20 GB disk; no GPU | Instance types in your own cloud, including GPU types such as one A10G with 16 vCPU and 64 GB | 16 vCPU / 32 GB / 251 GB disk (needs the $100 plan or higher); no GPU |
| Where it runs | Several regions across Cloudflare's network; pin to a region or jurisdiction | Enterprise runners in your own AWS or GCP account, in a region you choose | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Ona | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | Yes |
| Docker inside | Yes | Yes | Yes |
| Nested virtualization | No documented way | No documented way | Yes |
| Root | Yes | Yes | 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 | Yes | Yes |
| Persistent disk | With your own setup | Yes | Yes |
| Pause/resume | No documented way | Yes | Yes |
| Automatic snapshots | With your own setup | No documented way | 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 | No documented way | No documented way |
| HTTPS preview URLs | Yes | Yes | 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 | No documented way | 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 | Yes | 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 | No documented way | 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 | No documented way | Yes |
| Audit logs | Yes | No documented way | 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 | Yes | No documented way |
| Zero data retention | Not published | Not published | Yes |
Performance
Neither Cloudflare Sandbox nor Ona is in StarSling's run of 3 October 2026 (run 37073680030), so we cannot say which is faster. In that run boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, second of 15. 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.
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 Ona 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 | Ona, 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 | $5,030 · Enterprise (AWS Marketplace 12-month contract) · 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 | $5,140 · Enterprise (AWS Marketplace 12-month contract) · 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 | $6,521 · Enterprise (AWS Marketplace 12-month contract) · 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 | $5,432 · Enterprise (AWS Marketplace 12-month contract) · 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 | $5,955 · Enterprise (AWS Marketplace 12-month contract) · with limits | $8,800 · $2000/mo · with limits |
Cloudflare Sandbox: You need Workers Paid ($5 a month minimum). CPU is billed only while busy, at $0.072 per vCPU-hour. Memory and disk are billed on the instance size in 10 ms steps until the container sleeps. 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.
Ona: Ona Cloud and Core shut down on October 31, 2026, so Ona's prices here use its Enterprise listing on AWS Marketplace: a 12-month, $60,000 contract (about $5,000 a month), plus compute on your own AWS bill. Real Enterprise prices are negotiated with sales.
Ona: 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
In the scenarios that keep 50 GB of files between days, Cloudflare needs your own snapshot, automatic-save or R2 code, and its local disk tops out at 20 GB. Its default 1,500 vCPU account limit is short of the 2,000 the 1,000-job burst needs, and Cloudflare raises it on request. No Ona scenario fits as published, because Ona sells only Enterprise, through sales; the table assumes 3 environments at once, since Ona publishes no Enterprise limit. boat does not fit the burst either: the $2,000 plan includes 90 starts a minute and 600 an hour, charges $0.03 to $0.07 for extra starts, and refuses starts above 270 a minute.
| Scenario | Cloudflare Sandbox | Ona | 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, self-serve sandboxes that sleep when idle and wake on the next request.
- Self-serve and pay as you go. Anyone on Workers Paid can start sandboxes today, and CPU is billed only while it is busy.
- Sleeps when idle, wakes on request. Useful for many short, spiky sessions: a sandbox sleeps when idle and starts again on the next request.
- Egress rules you can program. Cloudflare can block every host except the ones you list, and run your own code on each outbound request.
Use Ona when
your engineers want a governed cloud IDE shared with a Codex agent, inside your own AWS or GCP account or with a GPU.
- A full cloud IDE for your team. Useful if your engineers work in the same environments as their agents, with browser, VS Code and JetBrains IDEs, prebuilds and warm pools.
- Runs in your own cloud. Useful if environments must run inside your own AWS or GCP account: Ona's Enterprise runners do that.
- GPU environments. Useful if your agents need a GPU: Enterprise runners can use GPU types, such as an A10G VM with 16 vCPU and 64 GB.
Where boat fits
If what you run is coding agents that work for hours, Cloudflare gives you a small container that keeps files through snapshot or R2 code you write, and Ona gives you a dev environment that you drive from code on an Enterprise contract. boat is a self-serve sandbox API with full VMs that save their disk with no code, fork while running, and come with agents, a desktop and open ports. boat runs only in the EU, has no GPU and limits starts per plan.
A machine that keeps its work
On Cloudflare your code saves snapshots (kept 30 days), automatic saves or R2. On Ona the disk stays, but its storage is on your cloud bill while stopped, and there is no way to copy an environment. boat saves the disk every minute, keeps a stopped disk at least 14 days with no compute charge, and forks a running sandbox. A boat resume is like a reboot.
A whole VM
Cloudflare runs Docker with iptables off and has 20 GB of disk at most. Ona documents no /dev/kvm, full desktop or raw TCP. boat has Docker with BuildKit, /dev/kvm, a 60 fps desktop and raw ports over public IPv6.
Agents driven from outside
On Cloudflare you bake each agent into your image and write the handler that adds every token. On Ona the managed agent is Codex, and secrets enter the environment. boat installs seven agents with one API, and its optional paid proxy keeps supported model keys outside the sandbox.
Use boat when your code starts and drives agents that work for hours: full VMs with Docker, /dev/kvm and a desktop, that save their disk with no code and fork while running. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Ona.
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 Ona?
In every scenario we priced, yes. One agent running all month is $148 on Cloudflare against $5,140 on Ona, and 300 user sandboxes are $476 against $5,432. Ona's figures use its Enterprise listing, so a real sales quote may differ. boat costs $26 and $200 for the same two.
Which is faster?
We cannot say. Neither Cloudflare Sandbox nor Ona is in StarSling's run of 3 October 2026. boat did 28.06 V8 Web Tooling runs/s in that run at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host; boat also places some sandboxes on other hosts.
Can I run Docker inside either one?
Yes. Cloudflare supports docker:dind with iptables and IP forwarding turned off, and Ona runs Docker inside the Dev Container. boat runs Docker with BuildKit and Compose, root, systemd and /dev/kvm.
Which one keeps my files?
Both can. Ona keeps the disk across stops and archives a stopped environment after 3 days by default. Cloudflare keeps files with a snapshot (public beta, 30 days), scheduled automatic saves, an R2 backup or a mounted R2 bucket. boat saves the disk every minute and at each stop with no code, and keeps it at least 14 days after a stop.
Can I sign up for either one today?
Cloudflare Sandbox is self-serve on Workers Paid. Ona sells only Enterprise, through sales, since Ona Cloud and Core shut down on October 31, 2026. boat's plans are self-serve, from a 7-day trial (card required) up.
Can I run Claude Code on them?
Yes, you install and run it yourself: in your image on Cloudflare, inside the environment on Ona, where the managed agent is Codex. boat installs Claude Code, Codex, OpenCode and others, with one API to prompt, steer and watch them.
Try boat
Install the CLI, then run boat new.
7-day free trial
More comparisons
- boat vs Cloudflare Sandbox
- boat vs Ona
- 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