Cloudflare Sandbox vs Koyeb
Both run each sandbox in its own microVM and put it to sleep when idle. Cloudflare Sandbox lives inside Workers, tops out at 4 vCPU and lets you program every outbound request. Koyeb runs sandboxes as services from any Docker image, with GPUs, bigger machines and more regions. On both, your code keeps files across sleep with snapshots, R2 or volumes.
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
Koyeb
Koyeb is a serverless cloud for apps, inference and sandboxes. In February 2026 it agreed to join Mistral AI.
A Koyeb sandbox is a Koyeb service: a microVM that starts from any Docker image. You drive it from Python or JavaScript SDKs or the Koyeb CLI: run commands, read files, expose a port and take snapshots. The default image comes with four coding agents. A sandbox can scale to zero when idle and wake on the next request, on CPU or GPU instance types. It suits teams that run AI agents or untrusted code next to apps they already host on Koyeb.
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 | Koyeb: price rank | boat: price rank |
|---|---|---|---|
| Software factory 100 at once · 4 vCPU / 8 GB · 2,200 sessions of 8 h a month A software factory needs a disk that survives and room for Docker builds. On Cloudflare your code keeps files with snapshots, automatic saves or R2. On Koyeb you take SDK snapshots or attach a volume (1 to 10 GB). boat saves the disk with no code. | 192nd of 365, with limits $1,543 a month | 92nd of 365, with limits $366 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 | 194th of 361, with limits $923 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 suit short code runs. Cloudflare bills CPU only while busy and wakes on the next request. Koyeb has small instances from $0.0036 an hour and scales to zero after 5 idle minutes on standard instances. | 17th cheapest of 336 $144 a month | 6th cheapest of 336 $66 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 Both fit sandboxes for your users. Cloudflare adds egress rules written as Worker code. Koyeb adds regions in the US and Asia. boat gives each user a full VM with up to 50 HTTPS URLs. | 19th cheapest of 349 $731 a month | 8th cheapest of 349 $495 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 | 233rd of 349, with limits $1,631 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 | 27th cheapest of 359 $429 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 and runs Docker with iptables off. Koyeb does not document Docker inside a sandbox or /dev/kvm. boat has Docker with BuildKit plus /dev/kvm. | 303rd of 374, with limits $704 a month | 143rd of 374, with limits $88 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 when you log off. Cloudflare starts from a fresh disk after sleep unless your code snapshots it or mounts R2. Koyeb needs an SDK snapshot or a volume. boat keeps a stopped disk at least 14 days with no code. | 123rd cheapest of 371 $93 a month | 232nd of 371, with limits $37 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 Neither ships a desktop. On Cloudflare you build one into your image. On Koyeb you add a desktop and VNC to your Docker image. boat streams a 60 fps desktop with Chrome. | 207th of 367, with limits $460 a month | 128th of 367, with limits $123 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 | 237th of 356, with limits $123 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 | 242nd of 343, with limits $89 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 | 67th of 327, with limits $1,683 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 Red-team runs often need raw ports and full root networking. Cloudflare takes no raw TCP from outside, Koyeb offers a TCP proxy to one port, and boat has raw ports over IPv6 and nested VMs. | 25th cheapest of 351 $325 a month | 261st of 351, with limits $299 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 Koyeb runs GPUs, from RTX 4000 cards up to H100, H200 and B200. Cloudflare Sandbox and boat are CPU only. | Not ranked: misses a requirement | 3rd cheapest of 102 $628 a month | Not ranked: misses a requirement |
| macOS agents 5 at once · 4 vCPU / 8 GB · 1,000 sessions of 20 min a month | Not ranked: misses a requirement | Not ranked: misses a requirement | Not ranked: misses a requirement |
Key features
| Feature | Cloudflare Sandbox | Koyeb | boat |
|---|---|---|---|
| Isolation | Firecracker microVM per container, own kernel and network | Cloud Hypervisor microVM per instance | Full VM with its own kernel, on a physical host dedicated to boat (AMD Ryzen 7 9700X or Ryzen 9 9950X); vCPUs are shared |
| Biggest machine | 4 vCPU / 12 GiB / 20 GB disk | Up to 40 vCPU / 128 GB, and GPU types larger still | 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 | Local disk lost on redeploy and in Deep Sleep; keep files with SDK snapshots or volumes (preview, 1 to 10 GB, not on eco instances) | Disk saved every minute and at each stop, with no code; kept at least 14 days after a stop; memory is not saved |
| Fork and snapshots | Snapshot or back up a running sandbox, then start new sandboxes from it; no one-call fork | SDK snapshots of the filesystem, or with running processes, then new sandboxes from them | Fork a running sandbox in one call; the fork uses the last 1-minute snapshot |
| Sleep and wake | Stops after inactivity and wakes on the next request; CPU billed only while busy | Scales to zero after 5 idle minutes or more and wakes on request; Light Sleep wakes in about 200 ms (preview); not on eco instances | Auto-stop on a timer (1 h by default), not on idle; stop and start by API |
| Custom image | Any linux/amd64 container image | Any Docker image | No; start from boat's Ubuntu 24.04 image or a saved snapshot |
| Docker inside | docker:dind with iptables and IP forwarding turned off | Not documented inside a sandbox | Docker with BuildKit and Compose, root and systemd |
| Nested virtualization | Not documented | Not documented | Yes, /dev/kvm for Android emulators and VMs |
| Inbound traffic | HTTP and WebSocket previews routed through your Worker; SSH; no raw TCP inbound or public IP | One exposed HTTPS port at a time, plus an optional TCP proxy to one port (preview); no dedicated IP | 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 | Block all outbound traffic, or allow only listed IPs and CIDRs | 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 | Secrets set as environment variables inside the service | 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 | No desktop or browser preinstalled; add them to a custom Docker image | 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 | Default image has Mistral Vibe, Codex, Gemini and OpenCode, run through the command API | Seven installed (Claude Code, Codex, OpenCode and more), with a prompt, steer and events API |
| GPUs | No | RTX 4000 SFF Ada up to H100, H200, B200 and multi-GPU | No |
| Regions | Several regions across Cloudflare's network; pin to a region or jurisdiction | EU, US and Asia; you pick the region | Germany, Finland and France; no US or Asia region; you cannot pick one |
Every feature Battleships tracks (43)
| Feature | Cloudflare Sandbox | Koyeb | boat |
|---|---|---|---|
| Full VM (own kernel) | Yes | Yes | 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 | No documented way | Yes |
| Computer-use API | No documented way | No documented way | Yes |
| SSH | Yes | No documented way | Yes |
| Persistent disk | With your own setup | With your own setup | 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 | Not published | 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 | Yes | No documented way |
| Wake on request | Yes | Yes | No documented way |
| HTTPS preview URLs | Yes | Yes | Yes |
| Raw TCP inbound | No documented way | Yes | 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 | No documented way | Yes |
| MCP server | No documented way | Yes | 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 | 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 | No documented way | Yes |
| Usage per sandbox (API) | Not published | No documented way | Yes |
| Audit logs | Yes | Yes | 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 Koyeb 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. Koyeb publishes a CPU share of at least 0.25 dedicated vCPU per GB of memory, bursting to all cores. ComputeSDK measured a 671 ms median start for Cloudflare with 100 at once (2026-11-06, default size).
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 Koyeb 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 | Koyeb, 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 | $29 · Pro | $20 · $20/mo |
| One agent that never stops 4 vCPU / 8 GB, 50 GB disk, running 24/7 all month | $148 · Workers Paid | $57 · Pro | $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 | $475 · Pro · 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 | $329 · Scale | $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 | $485 · Scale · 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. There is no 4 vCPU / 8 GB size: 4 vCPU always comes with 12 GiB. Snapshot pricing is not published.
Koyeb: Koyeb bills each instance per second at a fixed price per type: eco-xlarge (4 vCPU / 8 GB, 20 GB disk) costs $0.0576 an hour. The idle period before sleep bills at the full rate, and Deep Sleep costs nothing. Pro is $29 a month with $10 of usage included and Scale $299 with $100 included; the rest of the fee is not credit.
Koyeb: 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 tops out at 20 GB of disk and keeps files between days only through snapshots, automatic saves or R2 that your code sets up. Koyeb's priced 4 vCPU / 8 GB shape, eco-xlarge, has a 20 GB disk with no published price for more and takes no volume, and Koyeb does not document Docker inside a sandbox for the 50-agent fleet. For 1,000 short jobs at once none of the three fits as priced: Cloudflare's 1,500 vCPU account cap is short of the 2,000 needed, Koyeb's 1,000 sandboxes need more memory than Scale's 1 TB, and boat's $2,000 plan charges $0.03 to $0.07 for starts above 90 a minute and refuses them above 270.
| Scenario | Cloudflare Sandbox | Koyeb | 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 | 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 that sleep when idle, with egress rules you write as code.
- Egress rules you can program. Cloudflare can block every host except the ones you list, and run your own Worker code on each outbound HTTP request.
- CPU billed only while busy. Good for many short, spiky sessions: CPU is billed only while in use, and a sleeping sandbox wakes on the next request.
- Sits next to your Workers. If your app already runs on Workers, sandboxes sit next to Durable Objects and R2, with less to wire up.
Use Koyeb when
your sandboxes need GPUs or bigger machines, start from your own Docker image, sleep and wake on a request, or must run in the US or Asia.
- GPUs in the same platform. Useful when an agent or eval needs a GPU: Koyeb runs instances from RTX 4000 cards up to H100, H200 and B200.
- Bigger machines. Koyeb instance types go up to 40 vCPU and 128 GB, while a Cloudflare container tops out at 4 vCPU.
- More ways in from outside. A Koyeb sandbox can expose an HTTPS port and a TCP proxy, where Cloudflare routes only HTTP and WebSocket through your Worker.
Where boat fits
Cloudflare Sandbox and Koyeb both suit sandboxes that sleep between requests. If your agents instead work for hours on one machine, building, testing and running a browser, look at boat: a full VM that saves its disk with no code, runs nested VMs and a desktop, and comes with coding agents. boat has no GPU and runs only in the EU.
A disk that stays without extra code
On Cloudflare your code saves snapshots, automatic saves or R2. On Koyeb your code takes SDK snapshots, or you attach a volume of up to 10 GB. boat saves the disk every minute and at each stop. Memory is not saved.
Root, systemd, Docker and /dev/kvm
Cloudflare runs Docker with iptables turned off, and Koyeb does not document Docker inside a sandbox. Neither documents nested virtualization, so Android emulators and VM builds need another host. boat has Docker, systemd and /dev/kvm on every sandbox.
Agents, desktop and ports built in
Neither ships a desktop, and Koyeb exposes one HTTPS port at a time. boat has a 60 fps desktop, up to 50 HTTPS URLs and an agent API to prompt and steer seven installed agents.
Use boat when your agents do real work for hours on a machine that saves its disk with no code: builds, Docker, emulators, a desktop browser and preview servers, with agents ready to drive. Compare it one to one: boat vs Cloudflare Sandbox and boat vs Koyeb.
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 Koyeb?
In our five scenarios Koyeb's estimate is lower each time: $57 against $148 a month for one agent that never stops, and $329 against $476 for sandboxes for your users. Koyeb's priced shape has a 20 GB disk with no published price for more. boat costs $26 and $200 for those two.
Which is faster, Cloudflare Sandbox or Koyeb?
Neither is in StarSling's run of 3 October 2026, so we cannot say. Koyeb guarantees at least 0.25 dedicated vCPU per GB of memory, and a Cloudflare container tops out at 4 vCPU. boat did 28.06 runs/s on the V8 Web Tooling Benchmark at 4 vCPU / 8 GB, on an AMD Ryzen 9 9950X host.
Do Cloudflare Sandbox and Koyeb keep my files?
Yes, if your code sets it up. A Cloudflare sandbox starts from a fresh disk after sleep, unless your code saves a snapshot, schedules automatic saves or works in a mounted R2 bucket. Koyeb loses local disk on redeploy and in Deep Sleep, unless you take an SDK snapshot or attach a volume. boat saves the disk every minute and at each stop with no code.
Can Cloudflare Sandbox or Koyeb run Docker?
Both start from container images. Cloudflare supports docker:dind with iptables and IP forwarding turned off. Koyeb does not document Docker inside a sandbox. Neither documents /dev/kvm. boat runs Docker with root, systemd and /dev/kvm, but cannot boot your own image.
Does either one have GPUs?
Koyeb does, from an RTX 4000 SFF Ada up to H100, H200 and B200, billed per second. Cloudflare Sandbox and boat are CPU only.
Where does each one run?
Cloudflare places containers in several regions of its network and lets you pin one. Koyeb runs in the EU, US and Asia, and you pick the region. 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 Koyeb
- 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