Cloud Sandboxes for Coding Agents: 39 Services Compared on Price (2026)

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 casePickWhy
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 pauseSandboxerSame price grid, Ashburn region, pause keeps memory, nested KVM
Claude only, zero setupClaude Code cloud sessionsNo extra VM charge on a Claude plan; Docker, Postgres and Redis preinstalled
Cheapest always-on boxUpstash keep-alive ($16/mo) or Uno ($20/mo); raw floor Hetzner CX33 ($9.99/mo)Flat monthly price
Cheapest per hour with agent toolingInstaBox ($0.034), boat.dev or Sandboxer ($0.036)Steady use needs a $20/mo plan
Docker-heavy workboat.dev, Sandboxer, Freestyle, machine0Full VMs with their own kernel and Docker inside
Desktop, GUI or computer useboat.dev, Orgo, box by Simular, E2B Desktop, Daytona, Cursor CloudDesktop is built in
Pay only while the agent is busyFly.io Sprites, Vercel Sandbox, ModalBilled on CPU actually used
Many parallel agents, branch or forkMorph, E2B, Freestyle, BlaxelMemory or live fork
Self-hostCloudroom Core, Coder, E2B or CubeSandboxOpen-source licenses
Inside your own AWS, GCP or Azure accountNorthflankSelf-serve BYOC with a microVM per agent
Building a product that spawns sandboxesE2B, Daytona, Modal, VercelMature 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.

Service4 vCPU / 8 GB per hourFree tierPersistenceDocker / desktopWorth knowing
boat.dev$0.036 (fixed size)7-day, 25-hour trial (card); then $20/mo minimum, returned as VM timeDisk saved every minute, kept 14+ days; no memoryYes / 60fps desktop + ChromeKVM 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.236None; $5 refundable top-upRuns until stopped; snapshots, clonesYes / web terminal onlyStatic 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 usage100 GB disk, auto checkpoints; idle costs nothingYes / noneA 4-hour Claude Code session example: $0.23.
PrizedBox 4 vCPU/16 GB $0.137; sandbox $0.261$30 credit, no cardBoxes live until deleted; sandboxes fork liveNot statedprized 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.
OrgoNo 4/8; 4 vCPU/16 GB $0.11$3 creditPlan computers never suspendNot stated / VNC desktopBuilt for computer-use agents. $29/mo always-on.
box by Simular$0.20About 25 hours onceSleeps idle; deleted after 14 days asleepNot stated / Linux desktop via MCPOne box per account.
UnoFlat $20/mo for 4 vCPU/4 GBNone found40 GB disk; sleeps with memory after 10 minYes, root / not statedNetherlands. Optional residential exit IP.
Upstash BoxKeep-alive Medium $16/mo; pay-as-you-go unclear10 boxes, 5 CPU-hours/moFiles persist, processes do notNot documented / browserContainer isolation. AWS us-east-1 only.
Morph Cloud$0.20Unclear (0 or 300 MCU)Branch with memory and running processesNot statedBranch one machine into hundreds.
Run Cloud$0.059$5, no cardPause, snapshots, persistent sandboxes with SSHNot stated / desktop sandboxesFirecracker. Adapters for E2B, Daytona, Modal, Vercel, Blaxel, Sprites.
BoxComputeNo 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.

Service4 vCPU / 8 GB per hourFree tierPersistenceMax sessionWorth knowing
E2B$0.331$100 one-time creditPause keeps memory and files; fork1 h Hobby, 24 h ProFirecracker. Open source (Apache-2.0). Pro $150/mo + usage.
Daytona$0.331 + disk over 5 GiB$200 credit, no cardContainers: snapshots. VM class: memory snapshots, forkUnlimited*Containers by default. GPUs. Now closed source.
Superserve$0.331Short no-card trialPause keeps diffsUnlimited$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 creditFilesystem snapshots5 min default, 24 h maxgVisor default; Docker only on VM runtime. GPUs.
Vercel Sandbox$0.682 at 100% CPU; about $0.22 at 10%5 active CPU-hours/moSnapshots on stop, kept 30 days45 min Hobby, 24 h ProFirecracker. 19 regions. No SSH.
Cloudflare SandboxNo 4/8; 4 vCPU/12 GiB $0.396 at 100%Needs $5/mo Workers PaidEphemeral disk; rootfs snapshot betaNot publishedActive CPU billing. Driven from a Worker.
Northflank$0.133 + diskUp to $20/mo (harness 1 vCPU/1 GB)/home volume persists; no snapshotsUnlimited*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.

ServiceCostMachinePersistenceWorth knowing
Claude Code cloud sessionsNo extra charge; counts toward Claude plan limits (Pro $20/mo and up)About 4 vCPU/16 GB/30 GB, Ubuntu 24.04Fresh VM per session; setup script cached; idle VM paused then reclaimedDocker, Postgres 16, Redis 7. Claude only. GitHub needed. No bypass-permissions mode.
OpenAI Codex CloudNo extra charge; paid ChatGPT planPlus 2 vCPU/8 GiB; Pro and up 4 vCPU/16 GiBState recoverable 7 daysCodex only. Plus has an 8 GiB disk.
Cursor Cloud AgentsNo VM charge; model tokens at plan or API ratesIsolated cloud VMSaved environment snapshotsPremium plan and up. Remote desktop and computer use. Self-hosted machines option.
CloudroomAbout $0.10 per typical agent hour in credits; idle is freeNot publishedFiles and history survive sleepOpen 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.

OptionPriceIsolationWorth knowing
GitHub CodespacesNo 4/8; 4-core (16 GB) $0.36/h; 120 free core-hours/moVM per codespace12-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*.
CoderFree software; you pay your own infrastructureWhatever you templateAGPL-3.0, self-host only. Up to 5 Coder Agents on Community.
OnaEnterprise onlyRunners in your VPCOna Cloud shut down Oct 31, 2026; now part of OpenAI.
Cloudroom CoreFree plus your serverAgents run as a separate Linux userApache-2.0, one-command install on Ubuntu 24.04.
Tencent CubeSandboxFree plus your infrastructureRustVMM/KVM microVMOpen source, E2B-API compatible.
OpenSandboxFree plus your infrastructureNot checkedApache-2.0, originally from Alibaba.
Hetzner Cloud CX33$0.016/h, capped at $9.99/moKVM VMCheapest raw 4/8 found. Germany and Finland only. No agent tooling.
DigitalOcean Droplet$0.0714/h ($48/mo) for 4 vCPU/8 GiBKVM VMPer-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.

ServiceMax continuous runtimeWhen idle
boat.devNo cap with auto-stop off (paid); trial 2 hStop = snapshot, no compute bill
SandboxerUnlimited*Pauses after 30 min, keeps memory*
Freestyle / Daytona / Northflank / Prime IntellectUnlimited*Opt-in pause / auto-stop 15 min / manual / auto-stop 1 h*
machine0Until stoppedOptional idle suspend
Fly.io SpritesNone statedGoes warm within seconds; not billed
Blaxel168 h*Standby seconds after last connection*
E2B1 h Hobby, 24 h Pro (pause resets the clock)Configurable auto-pause
Modal5 min default, 24 h maxOptional idle timeout
Vercel Sandbox45 min Hobby, 24 h Pro per session5 min default timeout
Docker Sandboxes / Alibaba24 h*Stops or deletes on expiry*
GitHub Codespaces12 h hard maximum30 min default idle, 240 max; deleted after 30 days
Namespace Devboxes3 h / 5 h / 24 h by plan*Not stated
Claude Code cloud sessionsCommand and hook timeoutsPauses after a few idle minutes, later reclaimed
OpenAI Codex CloudNot statedState 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

NameOpen source?Self-host or bring your own cloud
CloudroomYes, Apache-2.0 (app and core)Yes, Ubuntu 24.04, one command
CoderYes, AGPL-3.0Self-host only
E2BYes, Apache-2.0Yes; Enterprise BYOC on AWS, GCP, Azure
Tencent CubeSandboxYesYes
OpenSandboxYes, Apache-2.0Yes
DaytonaOld repo archived June 2026; current code privateOld version only; Enterprise BYOC
machine0 / Fly.io SpritesImages or SDKs onlyNo
NorthflankNoBYOC on AWS, GCP, Azure, Oracle, bare metal
Claude Code cloud / CursorNoOrganization self-hosted environments / self-hosted machines

Shut Down or Closing: Do Not Start Here

ServiceStatus
Conductor CloudJoined Meta Nov 4, 2026 (TechCrunch); read-only Nov 13; shut down Nov 20
Runloop DevboxesDiscontinued Nov 14, 2026
Ona Cloud (hosted Gitpod successor)Shut down Oct 31, 2026; enterprise self-VPC only
Cube ComputerNew machines stopped Nov 6; all machines deleted Dec 20, 2026*
Daytona open-source repositoryArchived 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