Where should Claude Code, Codex and other coding agents run in the cloud? We compared 39 cloud VMs, sandboxes and devboxes on price, persistence, session limits, Docker and desktops, as of December 1, 2026. Every price is a public list price in US dollars for a machine with 4 vCPU and 8 GB of RAM running flat out for one hour, read from vendor pages that day or, where noted, from the Roost provider directory, which cites vendor pages checked in mid to late November. Nothing here was bought or benchmarked, so treat it as a map of the market, not a hands-on review. If you only want the answer, start with the best-pick table under Detailed Summary.
TLDR
For most developers the right home for a coding agent is not a sandbox API. If you only use Claude, Claude Code’s cloud sessions add no VM charge on top of a Claude plan. If you want a persistent Linux box your agent can live in, agent-first devboxes like boat.dev, Sandboxer and InstaBox list at about $0.034 to $0.036 an hour for 4 vCPU and 8 GB, roughly a ninth of the $0.331 that E2B, Daytona, Superserve and Blaxel charge. Check session limits before price (GitHub Codespaces kills every codespace at 12 hours), and pick something you can leave: four services shut down or stopped taking new machines between October 31 and November 20, 2026.
Thoughts
The biggest price gap in this market is between two kinds of product that look alike from the outside. Sandbox APIs such as E2B, Daytona, Superserve and Blaxel are built for companies whose apps spawn thousands of short-lived sandboxes, and their pricing pays for SDKs, concurrency, snapshots and forking. Agent-first devboxes are built for one developer and one long-lived agent. At list price, one 4 vCPU, 8 GB machine running all month (about 730 hours) costs roughly $242 on E2B or Daytona rates and roughly $26 on boat.dev or Sandboxer, and a bare Hetzner CX33 VPS caps at $9.99 a month if you are happy to install everything yourself. That gap is the same argument DHH made for leaving the cloud for his own servers, in miniature. Unless you are building a product that hands sandboxes to other people, a sandbox API is the expensive way to give one agent a computer. And if your agent is Claude Code or Codex anyway, try the vendor’s own cloud first, since it costs nothing extra.
Session limits matter more than price for the job most people want done, which is an agent that works while they sleep. GitHub Codespaces has a hard 12-hour lifetime even while active. Vercel Sandbox stops at 45 minutes on its Hobby plan and 24 hours on Pro, E2B allows 1 hour on Hobby and 24 on Pro, Modal defaults to 5 minutes with a 24-hour ceiling, Docker Sandboxes end 24 hours after creation, and Namespace’s Developer plan caps sessions at 3 hours. boat.dev (with auto-stop turned off), Sandboxer, Freestyle, Daytona, Northflank and Prime Intellect list no cap at all. If the whole point is to stop babysitting your coding agents, read the lifetime column before the price column. A cheap box that kills your run at hour 12 costs you the run.
This market is churning fast enough that portability is a feature. Conductor joined Meta on November 4, 2026, and its cloud was read-only by November 13 and shut down on November 20, sixteen days end to end. Runloop discontinued its devboxes on November 14. Ona, the hosted successor to Gitpod, shut down its cloud on October 31 as its team joined OpenAI. Cube Computer stopped new machines on November 6 and deletes every machine on December 20. Daytona archived its open-source repository in June and now ships closed source. The defense is boring: keep your environment in a setup script or Dockerfile, and favor services with compatible APIs (Sandboxer speaks Daytona’s API, Alibaba’s sandbox and Tencent’s CubeSandbox speak E2B’s, and Run Cloud ships adapters for six competitors) or open-source runtimes you could host yourself, such as E2B, Coder or Cloudroom Core.
The numbers are softer than any comparison table, this one included, makes them look. Upstash’s pricing page bills Box at “$0.2/active CPU hour” while its FAQ prices per core-hour, so a fully busy Medium box is either $0.20 or $0.80 an hour depending on which page is right. Fly.io’s docs say Sprites keep “filesystem and memory between runs” while sprites.dev says checkpoints capture disk, not processes. Morph’s pricing page and docs disagree on its free tier, Daytona’s README claims a dedicated kernel while its default sandboxes are containers, and E2B’s Enterprise minimum moved from $2,000 to $3,000 a month within weeks. Prime Intellect’s launch rates expire on December 22. Use the tables to build a shortlist of two or three, then run your real workload on each for a day and read the bill.
Hourly list price is the wrong number to optimize for an agent anyway. A coding agent spends most of its life waiting on the model, so services that bill only for CPU actually used (Fly.io Sprites, Vercel Sandbox, Cloudflare and Modal) cost far less than their full-use price suggests. Vercel’s $0.682 an hour at full use falls to about $0.22 at 10 percent CPU, and Fly’s own example puts a four-hour Claude Code session on a Sprite at $0.23. Next to the model tokens the agent burns in those same hours, the machine is close to a rounding error. Choose on lifetime, persistence, Docker and region, and let price break ties.
Key Takeaways
- Claude Code cloud sessions add no VM charge on a Pro, Max, Ultra, Team or Enterprise plan and give you an Ubuntu 24.04 VM of about 4 vCPU, 16 GB and 30 GB with Docker, Postgres 16 and Redis 7 preinstalled. The catches: Claude only, GitHub required, no bypass-permissions mode, and idle VMs are reclaimed.
- OpenAI Codex Cloud is included with paid ChatGPT plans: 2 vCPU, 8 GiB RAM and 8 GiB disk on Plus, 4 vCPU, 16 GiB and 32 GiB on Pro, Business and Enterprise. It runs Codex only.
- The cheapest agent-ready machines per hour are InstaBox ($0.034) and boat.dev and Sandboxer ($0.036) for 4 vCPU and 8 GB. Steady use on any of them means a $20-a-month plan, though InstaBox also has a limited free tier.
- The cheapest always-on options are Upstash Box keep-alive Medium at $16 a month (a container) and Uno at $20 a month for 4 vCPU and 4 GB. The raw floor is a Hetzner CX33 at $9.99 a month with no agent tooling.
- E2B, Daytona, Superserve and Blaxel all list at $0.331 an hour for 4 vCPU and 8 GB, about nine times the cheapest devboxes.
- Vercel Sandbox has the highest full-use price at $0.682 an hour, but bills only active CPU, so a mostly idle agent costs about a third of that.
- For Docker-heavy work, pick a full VM with its own kernel: boat.dev, Sandboxer, Freestyle (with nested virtualization) or machine0. Modal runs gVisor by default and supports Docker only on its VM runtime.
- For a desktop or computer use, boat.dev (60fps desktop with Chrome), Orgo, box by Simular, E2B’s desktop template, Daytona and Cursor Cloud Agents have one built in.
- For many parallel agents, Morph branches a running machine with its memory and processes, and E2B, Freestyle and Blaxel can fork live sandboxes.
- GitHub Codespaces’ 12-hour hard lifetime rules it out for overnight agent runs, whatever its other merits.
- Region can decide it: boat.dev runs only in Germany, Finland and France, Upstash Box only in AWS us-east-1, Uno in the Netherlands and BoxCompute in Malaysia, while Vercel lists 19 regions and Northflank 17 plus your own cloud.
- Northflank is the self-serve option for running agents in microVMs inside your own AWS, GCP, Azure or Oracle account.
- For self-hosting, Cloudroom Core is the simplest (Apache-2.0, one command on Ubuntu 24.04), Coder suits teams, and E2B and CubeSandbox give you a sandbox API on your own hardware.
- Conductor, Runloop, Ona Cloud and Cube Computer all shut down or stopped new machines in a three-week window, so keep your setup portable.
Detailed Summary
Best Pick by Use Case
These picks follow from the tables below and are our reading of the listed facts, not vendor claims.
| Use case | Pick | Why |
|---|---|---|
| Persistent Claude Code box you SSH into (EU is fine) | boat.dev | $0.036/h for 4/8, Docker, desktop, auto-stop can be turned off |
| Same, but a US region or memory kept on pause | Sandboxer | Same price grid, Ashburn region, pause keeps memory, nested KVM |
| Claude only, zero setup | Claude Code cloud sessions | No extra VM charge on a Claude plan; Docker, Postgres and Redis preinstalled |
| Cheapest always-on box | Upstash keep-alive ($16/mo) or Uno ($20/mo); raw floor Hetzner CX33 ($9.99/mo) | Flat monthly price |
| Cheapest per hour with agent tooling | InstaBox ($0.034), boat.dev or Sandboxer ($0.036) | Steady use needs a $20/mo plan |
| Docker-heavy work | boat.dev, Sandboxer, Freestyle, machine0 | Full VMs with their own kernel and Docker inside |
| Desktop, GUI or computer use | boat.dev, Orgo, box by Simular, E2B Desktop, Daytona, Cursor Cloud | Desktop is built in |
| Pay only while the agent is busy | Fly.io Sprites, Vercel Sandbox, Modal | Billed on CPU actually used |
| Many parallel agents, branch or fork | Morph, E2B, Freestyle, Blaxel | Memory or live fork |
| Self-host | Cloudroom Core, Coder, E2B or CubeSandbox | Open-source licenses |
| Inside your own AWS, GCP or Azure account | Northflank | Self-serve BYOC with a microVM per agent |
| Building a product that spawns sandboxes | E2B, Daytona, Modal, Vercel | Mature SDKs; E2B and Daytona share list rates |
How the Prices Were Compared
Each price is what a 4 vCPU, 8 GB machine costs for one wall-clock hour at full use, at list price, before plan fees, disk and data transfer. Per-unit rates were converted as (vCPU rate x 4) + (GB rate x 8), or the provider’s fixed size price was used. Modal sells physical cores (one core is two vCPU), so 4 vCPU is two cores. Services that bill only active CPU (Vercel, Cloudflare, Fly.io Sprites, Upstash pay-as-you-go and Modal) cost much less when an agent mostly waits on the model, so their figure is a ceiling. Rows marked with an asterisk come from Roost’s provider pages rather than a fresh read of the vendor’s site.
Agent-First Cloud VMs and Devboxes
Persistent machines that you or your agent live in, usually with Claude Code and Codex preinstalled. This is where the cheapest agent-ready hours are.
| Service | 4 vCPU / 8 GB per hour | Free tier | Persistence | Docker / desktop | Worth knowing |
|---|---|---|---|---|---|
| boat.dev | $0.036 (fixed size) | 7-day, 25-hour trial (card); then $20/mo minimum, returned as VM time | Disk saved every minute, kept 14+ days; no memory | Yes / 60fps desktop + Chrome | KVM VM. EU-only hosts. No GPU. |
| Sandboxer | $0.036* | None; $20/mo minimum* | Disk and memory kept 14 days; idle pause keeps memory* | Yes, plus nested KVM / VNC* | Daytona-compatible API. US-East and Helsinki. Early access, no SLA. |
| InstaBox | $0.034* | 1 machine (4/8), 8-hour runs* | Disk and memory on pause; disk fork* | Yes / computer-use desktop* | Firecracker. Claude Code, Codex, OpenCode preinstalled. $20/mo Pro. |
| exe.dev | $0.21 standalone; $35/mo plan for a shared 4/8 pool* | 7-day trial with a paid ChatGPT link* | Persistent disk, snapshots* | Yes / none* | SSH and HTTPS per VM. Nine regions. |
| machine0 | $0.104 (xl); dedicated vCPU $0.236 | None; $5 refundable top-up | Runs until stopped; snapshots, clones | Yes / web terminal only | Static IP, GPUs up to 8x H200, 99.99% SLA claim. |
| Fly.io Sprites | $0.329 at 100%, billed on actual use | $1 trial, then $5/mo usage | 100 GB disk, auto checkpoints; idle costs nothing | Yes / none | A 4-hour Claude Code session example: $0.23. |
| Prized | Box 4 vCPU/16 GB $0.137; sandbox $0.261 | $30 credit, no card | Boxes live until deleted; sandboxes fork live | Not stated | prized teleport moves a Claude Code chat onto a box. |
| boxes.dev | $0.40 per box-hour overage* | 20 box-hours* | Sleep keeps disk and memory* | Yes / none* | $19/user/mo with 50 box-hours. Sleeps after 5 minutes. |
| Orgo | No 4/8; 4 vCPU/16 GB $0.11 | $3 credit | Plan computers never suspend | Not stated / VNC desktop | Built for computer-use agents. $29/mo always-on. |
| box by Simular | $0.20 | About 25 hours once | Sleeps idle; deleted after 14 days asleep | Not stated / Linux desktop via MCP | One box per account. |
| Uno | Flat $20/mo for 4 vCPU/4 GB | None found | 40 GB disk; sleeps with memory after 10 min | Yes, root / not stated | Netherlands. Optional residential exit IP. |
| Upstash Box | Keep-alive Medium $16/mo; pay-as-you-go unclear | 10 boxes, 5 CPU-hours/mo | Files persist, processes do not | Not documented / browser | Container isolation. AWS us-east-1 only. |
| Morph Cloud | $0.20 | Unclear (0 or 300 MCU) | Branch with memory and running processes | Not stated | Branch one machine into hundreds. |
| Run Cloud | $0.059 | $5, no card | Pause, snapshots, persistent sandboxes with SSH | Not stated / desktop sandboxes | Firecracker. Adapters for E2B, Daytona, Modal, Vercel, Blaxel, Sprites. |
| BoxCompute | No 4/8; 4 CPU/8 GB “XL” $0.40* | $5 credit, 14 days* | Disk only; no snapshots* | Unknown / computer-use API* | Malaysia. Max 3 running. |
| Freestyle | $0.264 plus storage* | 200 vCPU-hours/mo, hard stop* | Pause with memory; live fork* | Yes, nested virtualization / none* | $50/mo Hobby minimum. |
Sandbox APIs for Apps That Spawn Agents
Built for products that create sandboxes on demand. They work as a personal box with some setup, but list prices run several times higher than the devboxes above.
| Service | 4 vCPU / 8 GB per hour | Free tier | Persistence | Max session | Worth knowing |
|---|---|---|---|---|---|
| E2B | $0.331 | $100 one-time credit | Pause keeps memory and files; fork | 1 h Hobby, 24 h Pro | Firecracker. Open source (Apache-2.0). Pro $150/mo + usage. |
| Daytona | $0.331 + disk over 5 GiB | $200 credit, no card | Containers: snapshots. VM class: memory snapshots, fork | Unlimited* | Containers by default. GPUs. Now closed source. |
| Superserve | $0.331 | Short no-card trial | Pause keeps diffs | Unlimited | $20/mo Developer includes $20. |
| Blaxel | $0.331* | Up to $200 credit* | Standby with memory; memory fork* | 168 h* | Part of Baseten. Filesystem lives in RAM. |
| Modal Sandboxes | $0.476 (region pinning 1.15 to 1.75x) | $30/mo credit | Filesystem snapshots | 5 min default, 24 h max | gVisor default; Docker only on VM runtime. GPUs. |
| Vercel Sandbox | $0.682 at 100% CPU; about $0.22 at 10% | 5 active CPU-hours/mo | Snapshots on stop, kept 30 days | 45 min Hobby, 24 h Pro | Firecracker. 19 regions. No SSH. |
| Cloudflare Sandbox | No 4/8; 4 vCPU/12 GiB $0.396 at 100% | Needs $5/mo Workers Paid | Ephemeral disk; rootfs snapshot beta | Not published | Active CPU billing. Driven from a Worker. |
| Northflank | $0.133 + disk | Up to $20/mo (harness 1 vCPU/1 GB) | /home volume persists; no snapshots | Unlimited* | Kata microVMs. BYOC on AWS, GCP, Azure, Oracle. 17 regions. |
| Prime Intellect Sandboxes | $0.18 + disk* | None* | Pause with disk and memory* | Unlimited* | Launch rates end Dec 22, 2026. Built for RL at scale. |
| Docker Sandboxes | $0.28* | $250 one-time credit* | Stop keeps files; snapshots* | 24 h from creation* | Experimental. Private Docker Engine inside. |
| Alibaba Cloud Agent Sandbox | $0.143* | None found* | Memory snapshots* | 24 h* | E2B-compatible API. No Docker. |
Vendor-Hosted Coding Agents: Claude Code, Codex, Cursor
Here you get the agent and the machine together, with no separate VM bill. The trade is that each one runs its own vendor’s agent.
| Service | Cost | Machine | Persistence | Worth knowing |
|---|---|---|---|---|
| Claude Code cloud sessions | No extra charge; counts toward Claude plan limits (Pro $20/mo and up) | About 4 vCPU/16 GB/30 GB, Ubuntu 24.04 | Fresh VM per session; setup script cached; idle VM paused then reclaimed | Docker, Postgres 16, Redis 7. Claude only. GitHub needed. No bypass-permissions mode. |
| OpenAI Codex Cloud | No extra charge; paid ChatGPT plan | Plus 2 vCPU/8 GiB; Pro and up 4 vCPU/16 GiB | State recoverable 7 days | Codex only. Plus has an 8 GiB disk. |
| Cursor Cloud Agents | No VM charge; model tokens at plan or API rates | Isolated cloud VM | Saved environment snapshots | Premium plan and up. Remote desktop and computer use. Self-hosted machines option. |
| Cloudroom | About $0.10 per typical agent hour in credits; idle is free | Not published | Files and history survive sleep | Open source desktop app. Runs Claude Code, Codex, OpenCode on your own subscriptions. 1,000 free credits/mo. |
Dev Environments, Self-Hosting and Raw VPS Baselines
Classic cloud dev environments, open-source runtimes, and two plain VPS prices as a floor for what raw compute costs.
| Option | Price | Isolation | Worth knowing |
|---|---|---|---|
| GitHub Codespaces | No 4/8; 4-core (16 GB) $0.36/h; 120 free core-hours/mo | VM per codespace | 12-hour hard lifetime; 30-minute idle timeout by default. |
| Namespace Devboxes | $0.24 (up to 4 vCPU/8 GB)* | VM* | Sessions capped at 3, 5 or 24 hours by plan*. |
| Coder | Free software; you pay your own infrastructure | Whatever you template | AGPL-3.0, self-host only. Up to 5 Coder Agents on Community. |
| Ona | Enterprise only | Runners in your VPC | Ona Cloud shut down Oct 31, 2026; now part of OpenAI. |
| Cloudroom Core | Free plus your server | Agents run as a separate Linux user | Apache-2.0, one-command install on Ubuntu 24.04. |
| Tencent CubeSandbox | Free plus your infrastructure | RustVMM/KVM microVM | Open source, E2B-API compatible. |
| OpenSandbox | Free plus your infrastructure | Not checked | Apache-2.0, originally from Alibaba. |
| Hetzner Cloud CX33 | $0.016/h, capped at $9.99/mo | KVM VM | Cheapest raw 4/8 found. Germany and Finland only. No agent tooling. |
| DigitalOcean Droplet | $0.0714/h ($48/mo) for 4 vCPU/8 GiB | KVM VM | Per-second billing since Jan 1, 2026. |
Session Limits: Which Ones Survive an Overnight Run
The longest a machine can run continuously, and what happens when the agent goes quiet. This column decides whether an unattended run finishes.
| Service | Max continuous runtime | When idle |
|---|---|---|
| boat.dev | No cap with auto-stop off (paid); trial 2 h | Stop = snapshot, no compute bill |
| Sandboxer | Unlimited* | Pauses after 30 min, keeps memory* |
| Freestyle / Daytona / Northflank / Prime Intellect | Unlimited* | Opt-in pause / auto-stop 15 min / manual / auto-stop 1 h* |
| machine0 | Until stopped | Optional idle suspend |
| Fly.io Sprites | None stated | Goes warm within seconds; not billed |
| Blaxel | 168 h* | Standby seconds after last connection* |
| E2B | 1 h Hobby, 24 h Pro (pause resets the clock) | Configurable auto-pause |
| Modal | 5 min default, 24 h max | Optional idle timeout |
| Vercel Sandbox | 45 min Hobby, 24 h Pro per session | 5 min default timeout |
| Docker Sandboxes / Alibaba | 24 h* | Stops or deletes on expiry* |
| GitHub Codespaces | 12 h hard maximum | 30 min default idle, 240 max; deleted after 30 days |
| Namespace Devboxes | 3 h / 5 h / 24 h by plan* | Not stated |
| Claude Code cloud sessions | Command and hook timeouts | Pauses after a few idle minutes, later reclaimed |
| OpenAI Codex Cloud | Not stated | State recoverable 7 days |
Regions: Where Your Agent Actually Runs
Region matters for latency, data residency and sometimes price. boat.dev runs only in Germany, Finland and France (snapshot copies may be stored outside the EU). Sandboxer offers Ashburn and Helsinki, machine0 nine cities from New York to Singapore, and exe.dev nine regions including Tokyo and Sydney. Vercel lists 19 regions and Northflank 17 plus your own cloud. At the narrow end, Upstash Box is AWS us-east-1 only, Uno is in the Netherlands and BoxCompute is in Cyberjaya, Malaysia. Modal pins regions only at 1.15 to 1.75 times the price. InstaBox, Morph, Freestyle, Fly.io Sprites, Claude Code cloud, Codex Cloud and Cursor do not publish where machines run.
Open Source and Self-Hosting
| Name | Open source? | Self-host or bring your own cloud |
|---|---|---|
| Cloudroom | Yes, Apache-2.0 (app and core) | Yes, Ubuntu 24.04, one command |
| Coder | Yes, AGPL-3.0 | Self-host only |
| E2B | Yes, Apache-2.0 | Yes; Enterprise BYOC on AWS, GCP, Azure |
| Tencent CubeSandbox | Yes | Yes |
| OpenSandbox | Yes, Apache-2.0 | Yes |
| Daytona | Old repo archived June 2026; current code private | Old version only; Enterprise BYOC |
| machine0 / Fly.io Sprites | Images or SDKs only | No |
| Northflank | No | BYOC on AWS, GCP, Azure, Oracle, bare metal |
| Claude Code cloud / Cursor | No | Organization self-hosted environments / self-hosted machines |
Shut Down or Closing: Do Not Start Here
| Service | Status |
|---|---|
| Conductor Cloud | Joined Meta Nov 4, 2026 (TechCrunch); read-only Nov 13; shut down Nov 20 |
| Runloop Devboxes | Discontinued Nov 14, 2026 |
| Ona Cloud (hosted Gitpod successor) | Shut down Oct 31, 2026; enterprise self-VPC only |
| Cube Computer | New machines stopped Nov 6; all machines deleted Dec 20, 2026* |
| Daytona open-source repository | Archived June 2026; hosted Daytona continues closed source |
Also listed on Roost but not covered here: agental, boxd, Zode, Islo, Dedalus Machines, Dory, Zipbox, Orble, Tensorlake, Render Sandboxes, Koyeb, DigitalOcean’s agent runtime, AWS AgentCore, Azure Container Apps sandboxes, CoreWeave, Together Sandbox and others. Replit was not researched.
More on PJFP: Simon Willison on coding agents, AI mania and security.
Related Reading
- Roost provider directory a dated, sourced list of more than 100 agent sandbox providers.
- Firecracker the open-source microVM monitor behind E2B, Vercel Sandbox, InstaBox and many others.
- gVisor the user-space kernel Modal uses for default sandbox isolation.
- Hypervisor (Wikipedia) background on the VM technology that separates a full VM from a container.
- Claude Code cloud environments Anthropic’s docs on what the cloud session VM includes.