Where should your agent run code? 16 hosted sandboxes compared on price, network controls and SDK support
Hourly list prices for the same sandbox differ about 4x, idle-shutdown settings can matter more than the rate, and most products let your agent reach the whole internet by default. We compare 16 products on price, network controls, isolation and framework support, and end with rules for picking one.
Every agent that writes code needs somewhere to run it, and running it on the machine that serves your app is how you end up in an incident report. Most teams use a hosted sandbox instead: a throwaway Linux machine you create with an API call, give a task, and delete when it’s done.
A year ago that meant E2B, and maybe Modal. Now specialists (E2B, Daytona, Blaxel), compute platforms (Modal, Fly.io, Northflank), hosting platforms (Cloudflare, Vercel, Render), all three hyperscalers, Docker and DigitalOcean all sell “a computer for your agent”. Since this guide first appeared on 2 October, Render launched sandboxes, Northflank told customers to rotate their secrets after a breach, and Runloop’s docs now say it is winding down.
They are not interchangeable. Hourly list prices for the same machine differ by about 4x, idle settings can matter more than the rate, and most let your agent reach the whole internet until you say otherwise. This guide compares 16 products on price, network controls, ease of use, framework support, isolation, snapshots, limits, GPUs, regions and self-hosting.
All prices are list prices, first checked on 2 October 2026 and re-checked on 10 November 2026 on each vendor’s own pricing page or docs. We didn’t run or benchmark any of these sandboxes, and every start-up time is the vendor’s claim unless we say otherwise.
The short version
- The cheapest for a steady workload are DigitalOcean’s Harness Runtime and Northflank, at about $0.06–0.07 an hour for 2 vCPU and 4 GB of memory. DigitalOcean runs in one region, and Northflank is still recovering from its October breach.
- Northflank and Cloudflare go smallest, a tenth of a vCPU or less: a light agent costs about 10 cents a day there, against about 50 cents on Modal’s default.
- E2B or Daytona is the safest default for a new product: mature SDKs, proxies that keep secrets out of the sandbox, and support across the major agent frameworks.
- If your agent mostly waits on the model, Vercel, Cloudflare, Render, Fly.io Sprites, DigitalOcean and AWS AgentCore bill CPU only while it’s busy, which changes the ranking.
- For GPUs, use Modal, Daytona or Northflank. To run in your own cloud, look at E2B, Northflank, Daytona’s BYOC option or Google’s open-source Agent Substrate.
- Docker (locally), Azure, Google’s Agent Platform and Freestyle start with outbound traffic blocked.
What a sandbox costs by the hour, day and month
What you pay depends on how long sandboxes stay alive, how busy their CPUs are and how fast they shut down, so we start from the unit everyone bills: one sandbox with 2 vCPU and 4 GB of memory, a size for a coding agent that installs packages and runs builds.
The table shows what that costs for an hour, a 24-hour day and a 730-hour month left running, computed by us from list rates with the CPU busy a quarter of the time, which is common for agents waiting on a model. The “fully busy” column differs only where CPU is billed on use. Where a product has no 2 vCPU / 4 GB size, we used the nearest one.
| Product | How compute is billed | Hour ($) | Day ($) | Month ($) | Month, CPU fully busy ($) | Fixed monthly costs |
|---|---|---|---|---|---|---|
| DigitalOcean Harness Runtime | $0.044/vCPU-h used, $0.0095/GB-h allocated | 0.060 | 1.44 | 44 | 92 | None |
| Northflank | $0.01667/vCPU-h, $0.00833/GB-h, allocated | 0.067 | 1.60 | 49 | 49 | None |
| AWS AgentCore Code Interpreter | $0.0895/vCPU-h used (I/O wait free), $0.00945/GB-h peak | 0.083 | 1.98 | 60 | 158 | None |
| Prime Intellect | $0.02/vCPU-h, $0.0125/GiB-h, plus disk; promotional | 0.092 | 2.21 | 67 | 67 | None |
| Fly.io Sprites | $0.0385/CPU-h used, $0.021875/GB-h used | 0.107 | 2.56 | 78 | 120 | None; optional plans |
| Cloudflare Containers (standard-3: 2 vCPU, 8 GiB) | $0.000020/vCPU-s active; memory and disk provisioned | 0.112 | 2.69 | 82 | 161 | $5 Workers plan |
| Render Sandboxes (beta) | $0.12/active CPU-h, $0.038/h per 2 GB allocated | 0.136 | 3.26 | 99 | 231 | None |
| Docker Cloud Sandboxes (Small) | $0.14/h flat | 0.140 | 3.36 | 102 | 102 | None |
| Vercel Sandbox | $0.128/Active CPU h, $0.0212/GB-h provisioned | 0.149 | 3.57 | 109 | 249 | $20 Pro plan, including $20 of usage |
| Daytona | $0.0504/vCPU-h, $0.0162/GiB-h, reserved | 0.166 | 3.97 | 121 | 121 | None |
| Blaxel | $0.0000115/GB-s of RAM, CPU bundled | 0.166 | 3.97 | 121 | 121 | None |
| E2B | $0.000014/vCPU-s, $0.0000045/GiB-s, allocated | 0.166 | 3.97 | 121 | 121 | $150 Pro plan for production |
| Google Agent Platform (custom container) | $0.085/vCPU-h, $0.009/GiB-h, allocated | 0.206 | 4.94 | 150 | 150 | None |
| Modal | $0.00003942/core-s (1 core = 2 vCPU), $0.00000667/GiB-s | 0.238 | 5.71 | 174 | 174 | $30 monthly credit on Starter |
| AWS Lambda MicroVMs | $0.0000276944/vCPU-s, $0.0000036667/GB-s, allocated (Arm, US East) | 0.252 | 6.05 | 184 | 184 | None |
The spread is about 4x, from DigitalOcean’s $0.060 an hour to Lambda MicroVMs’ $0.252. E2B, Daytona and Blaxel charge the same for compute at this size, but production on E2B needs its $150 Pro plan, because Hobby caps sessions at an hour and 10 concurrent sandboxes.
Billing CPU by use changes the ranking. A quarter busy, Vercel, Cloudflare, Render, Fly and AgentCore all cost less than E2B, Daytona or Blaxel; fully busy, Vercel, Cloudflare, Render and AgentCore cost more, Vercel about twice as much. Vercel’s own examples assume 10% CPU use; build-heavy agents use more. DigitalOcean’s $50 Agent Droplets Pro plan (15% off) puts the fee into a balance your usage draws from, so it saves money once eligible usage passes about $50 a month.
Prime Intellect’s rates run “through December 22, 2026”, with nothing published on what follows; our figure includes 10 GiB of disk. Modal’s Starter plan caps you at 100 containers. Lambda MicroVMs can burst to four times the baseline size, billing the extra only while it’s used.
How small can you go
Most products bill the size you ask for, whatever the agent uses, so the default and smallest sizes matter as much as the rate. An agent that mostly waits on the model can often live on a fraction of a core.
| Product | Default size | Smallest size | Smallest, per hour ($) | Smallest, always on for a month ($) |
|---|---|---|---|---|
| Northflank | None; you pick a plan | 0.1 vCPU, 256 MB | 0.004 | 2.77 |
| Cloudflare | lite |
lite: 1/16 vCPU, 256 MiB, 2 GB disk |
0.004 | 2.83 |
| Modal | 0.125 core (¼ vCPU), 128 MiB | The same | 0.021 | 15 |
| DigitalOcean | 2 vCPU, 4 GB | 1 vCPU, 1 GB | 0.021 | 15 |
| Prime Intellect | 1 vCPU, 1 GiB | 1 vCPU, 128 MiB, 2 GiB disk | 0.022 | 16 |
| AWS Lambda MicroVMs | 1 vCPU, 2 GB | 0.25 vCPU, 0.5 GB | 0.032 | 23 |
| E2B | 2 vCPU, 512 MiB (docs) | 1 vCPU, 128 MiB (API minimum; Pro only) | 0.052 | 38 |
| Daytona | 1 vCPU, 1 GB | The same | 0.067 | 49 |
| Render | 1 CPU, 2 GB | The same | 0.068 | 50 |
| Docker | 2 vCPU, 4 GiB | 1 vCPU, 2 GiB | 0.070 | 51 |
| Vercel | 2 vCPU, 4 GB | 1 vCPU, 2 GB | 0.074 | 54 |
| Google Agent Platform | Code Execution: 2 vCPU, 1.5 GB | The same for Code Execution; no published minimum for custom containers (Google’s example: 1 vCPU, 500 MiB) | 0.184 | 134 |
| AWS AgentCore | No size to pick | Billed on use; 128 MB memory minimum | – | – |
| Fly.io Sprites | No size to pick | Billed on use | – | – |
| Blaxel | Memory you choose; CPU is memory ÷ 2 GB | No minimum in its docs | – | – |
Per-hour figures assume the CPU is a quarter busy where CPU is billed on use (Cloudflare, Vercel, Render, DigitalOcean); elsewhere you pay for the full allocation. A dash means there’s no fixed size to price. Cloudflare also needs its $5 Workers plan. Start small and size up only when the agent runs out of memory or its builds get slow.
Three example setups
These three shapes use the same 2 vCPU / 4 GB size, a quarter busy, including plan fees and credits, and assume each sandbox stops as soon as its work is done:
- one developer’s coding agent, 8 hours a working day for 22 days: 176 hours;
- a team running ten background agents on the same hours: 1,760 hours;
- a product running 1,000 three-minute tasks a day, every day: 1,500 hours, assuming per-second billing (Azure bills by the hour, so it costs more).
| Product | One developer, 176 h ($) | Team of ten, 1,760 h ($) | 1,000 short tasks a day, 1,500 h ($) |
|---|---|---|---|
| DigitalOcean | 11 | 106 | 90 |
| Northflank | 12 | 117 | 100 |
| AWS AgentCore | 15 | 145 | 124 |
| Prime Intellect | 16 | 162 | 138 |
| Fly.io Sprites | 19 | 188 | 160 |
| Cloudflare | 24 | 201 | 172 |
| Render | 24 | 239 | 204 |
| Docker | 25 | 246 | 210 |
| Vercel | 26 | 262 | 223 |
| Daytona | 29 | 291 | 248 |
| Blaxel | 29 | 291 | 248 |
| Google Agent Platform | 36 | 363 | 309 |
| Modal | 12 | 389 | 327 |
| E2B | 179 | 441 | 398 |
| AWS Lambda MicroVMs | 44 | 444 | 378 |
Fixed fees move things most at small scale. Modal’s $30 credit covers most of one developer’s month, and E2B’s $150 Pro plan is most of its bill until usage grows (one developer may manage on Hobby’s one-hour sessions). Northflank’s free tier (up to $20 a month of resources across two services) would cut its small figures, and Google’s free allowance for agent runtimes might, though Google doesn’t say it covers sandboxes; we left both out. Lambda MicroVMs also charge a small snapshot fee on every suspend and resume, which we left out.
How we chose
We included products that sell a hosted, API-driven sandbox for agent code, not general servers or the model labs’ built-in code tools (where you can’t choose the machine or control its network). Demand shows in vendor figures: Modal says its sandboxes alone run at a $300M annual rate, and Daytona raised at a $1B valuation in October. We started from the vendors with an official OpenAI Agents SDK client or a guide on Claude Managed Agents’ self-hosted sandbox page, plus the hyperscalers, because many teams must stay inside one cloud.
Several have changed shape:
- Daytona’s open-source repository is frozen and development moved to a private codebase in June; a rebuilt platform where every sandbox is a VM is in alpha.
- Fly.io sells Machines and Sprites, persistent “computers for agents”; we use Sprites, which have no GPUs. Fly still runs GPU Machines, but its GPU docs redirect to a 2025 post saying it is “scaling back our GPU ambitions”.
- DigitalOcean’s Harness Runtime (public preview) runs Claude Code, Codex or, since 26 October, no harness at all. Its separate MicroVMs (preview since 9 October, $0.022 per vCPU-hour and $0.0085 per GiB-hour) keep memory when paused, but run only in Kansas City, have no documented outbound allow or deny rules, and DigitalOcean says the preview isn’t for production, so they aren’t in the tables. Agent Droplets are discount plans.
- AWS has AgentCore Code Interpreter for short calls and Lambda MicroVMs (generally available since 22 June, 14 regions) for stateful sessions. Its Nitro Sandboxes (9 November) put a VM around each EKS pod or ECS task on your own instances at no extra charge, isolation without a sandbox API, so they aren’t in the tables.
- Google sells sandboxes in the Gemini Enterprise Agent Platform (the renamed Vertex AI Agent Engine) and Cloud Run sandboxes (preview). For GKE it has the open-source Agent Sandbox and Agent Substrate, generally available since 5 November, which its docs now recommend “for most agent workloads”. Its microVM service, Agent Compute Engine, is promised “in the coming months”.
- Northflank sandboxes are ordinary service deployments. On 30 October it told customers to “assume all environment variables have been decrypted” (status page); BleepingComputer and Wiz reported stolen AI keys in use. Northflank says the attack targeted secrets in its control plane and found “no evidence that customer workloads or workload data were accessed”; it hasn’t published a root cause.
- Blaxel was bought by Baseten in September, which says “the product doesn’t change”.
New in this update is Render Sandboxes (public beta since 4 November, Oregon only). Prime Intellect Sandboxes, for reinforcement learning, have been generally available since 23 September.
We removed Runloop. A notice in its docs says “Runloop is winding down its services. Transition support for existing customers continues through November 13, 2026”, next to migration guides to Modal, Tensorlake and Freestyle. Its website still sells the service and we found no other announcement. Separately, and without giving a reason, the OpenAI Agents SDK removed its Runloop client from its main branch and docs on 19 October (the latest release, 0.24.0, still includes it). Databricks, Namespace and Superserve also appear in the frameworks’ lists but aren’t covered yet. Local sandboxes such as Microsoft Execution Containers are in our local sandboxing guide. Freestyle and Koyeb get a mention at the end.
When the meter stops
How long a sandbox stays alive usually matters more than its hourly rate: on products that bill allocated resources, a sandbox left running between agent turns bills for the wait. Every default here is configurable.
| Product | Default lifetime and idle behaviour | What survives |
|---|---|---|
| Modal | Stops after 5 minutes unless you set a timeout (up to 24 hours); an optional idle_timeout stops it sooner |
A filesystem snapshot if you take one, or automatically on exit (beta) |
| Vercel | Each session stops after a timeout, 5 minutes by default | Persistent sandboxes (the default) resume from a filesystem snapshot |
| Daytona | Stops after 15 idle minutes; auto_stop_interval 0 disables it |
Depends on the sandbox class |
| E2B | Runs until the timeout you set, extendable; up to 24 hours on Pro, 1 hour on Hobby; can pause on expiry | Paused sandboxes keep their full state |
| Render | Suspends after 15 idle minutes (5 minutes to 24 hours, or off); terminated after 24 hours unless you raise the limit | Memory and processes, for 30 days |
| AWS Lambda MicroVMs | Suspends after the idle time you set (up to 8 hours) with no inbound requests; 8 hours’ total life | Memory and disk |
| Blaxel | Standby after seconds idle (about 15 in its docs, 5 on its pricing page), billed for storage only | Memory and disk |
| Fly.io Sprites | Standby after about 30 seconds idle, billed for storage only | Disk; memory while warm; checkpoints |
A coding agent that thinks for minutes between commands needs a longer timeout than Modal’s default, then an idle_timeout so an abandoned sandbox doesn’t run for hours. If your framework creates sandboxes for you, check which settings it passes.
Azure prices per session instead: Container Apps dynamic sessions cost $0.03 per session-hour in most regions, according to Azure’s retail price list, billed “in increments of one hour”, with an unpublished session size and each execution capped at 220 seconds. It’s a code interpreter for short calls, not a machine for a coding agent.
Estimating your own bill
- In a pilot, count sandbox-hours from creation until each sandbox stops or pauses, including idle time your timeouts allow.
- Measure CPU use too, if a product bills CPU on use; it decides between the two monthly columns.
- Multiply, then add plan fees and what we left out (storage, snapshots, egress, GPUs), less any discounts you can get.
These are list prices from each vendor’s pricing page or docs as of 10 November 2026, compute only, at one size, worked out by us. We didn’t run these sandboxes or check a real invoice. Prices and defaults change often and enterprise deals differ, so confirm with the vendor before you commit. Dbggr isn’t affiliated with any of these companies.
Network controls decide whether you can ship
A sandbox protects your servers from the agent, not the internet or your secrets: in September an agent got out of a “blocked” sandbox through DNS. Ask whether it’s online by default, whether you can filter by domain or block everything, whether a proxy outside the sandbox can add API keys the agent never sees, and whether there’s a log of what it tried to reach.
| Product | Default | Allow / deny rules | Block all | Secrets outside sandbox | Egress log |
|---|---|---|---|---|---|
| E2B | Open | CIDR allow and deny; domains in allowlist only, ports 80/443 | Yes | Yes, not yet on BYOC | No |
| Daytona | Restricted on Tiers 1–2, open on 3–4 | Allow only: 10 CIDRs or 100 domains | Yes | Yes | No |
| Modal | Open | CIDR allowlist; domains by SNI (beta) | Yes | Yes (experimental) | Blocked attempts only |
| Cloudflare | You choose at start (SDK 1.0, docs say off); open on 0.x | Allow and deny, domains or CIDR; HTTPS interception | Yes | Yes, outbound Workers | DIY in handler |
| Vercel | Open | Allow domains (SNI) and CIDR, deny CIDR | Yes, incl. DNS | Yes, transform rules |
DIY via forwardURL |
| Render | Open | Up to 100 allowed domains, then HTTPS only | Yes | Early access | No |
| Fly.io Sprites | Open | DNS-based domain allow/deny | Yes | Via gateway URL | No |
| Blaxel | Open (implied by its docs) | Domains with paths (preview, “not recommended for production”) | Not documented | Yes | No |
| Docker | Blocked locally; cloud preset you choose | Hosts and ports; IPs and CIDR locally | Yes | Yes | Yes |
| DigitalOcean | Open | Allow hostnames and exact IPs | Not documented | Yes, scoped secrets | No |
| Prime Intellect | Open (implied by its docs) | Allow or deny, domains or CIDR | Yes, incl. DNS | Yes | No |
| Northflank | Open (BYOC docs) | IP, CIDR or domain (BYOC docs) | Yes (BYOC docs) | Not documented | No |
| AWS AgentCore | Sandbox (S3 only), Public or VPC mode | Via VPC plus Network Firewall | Yes | No | Yes, firewall logs |
| AWS Lambda MicroVMs | Open | Via your VPC’s security groups | Not documented | No | Via your VPC |
| Google Agent Platform | Blocked | Domain rules via your VPC | Yes | No | Via your VPC |
| Azure | Blocked | On or off only | Yes | No | No |
“No” and “not documented” mean the vendor’s docs describe no such feature as of 10 November 2026; ask before you rely on its absence. BYOC (“bring your own cloud”) means the vendor runs the sandbox in your cloud account; Northflank documents its network rules only for that setup.
Most products start open, so set a policy when you create each sandbox. Domain rules mostly mean SNI: E2B, Modal and Vercel check the TLS server name, which says where a connection is heading, not what it sends, and Vercel warns that an allowlist “constrains which hostname a connection negotiates, not which virtual host the request ultimately reaches”. Fly and Docker filter at DNS. Cloudflare and Vercel can terminate TLS for hosts you pick, the only way to filter by path or rewrite headers.
Almost nobody logs egress for you. Docker Cloud has a decision log (sbx --cloud policy log); AWS gives you one if you build the VPC and firewall. Everywhere else, route traffic through your own proxy. On both AWS products, code inside the VM can read the execution role’s credentials, so give that role as little as possible.
From API key to first command
| Product | SDKs | Path to a first command, per the quickstart |
|---|---|---|
| E2B | Python, JS/TS, CLI | Key, install, Sandbox.create(), runCode() |
| Daytona | Python, TS, Ruby, Go, Java, CLI | Key, install, create(), code_run() |
| Modal | Python, JS, Go | About 5 lines after pip install modal |
| Cloudflare | TypeScript, from a Worker | Scaffold a Worker, configure a Durable Object, wrangler dev |
| Vercel | TS, Python, CLI | vercel link, vercel env pull, Sandbox.create(), runCommand() |
| Render | TS, Python, CLI | API key and workspace ID, sandboxes.create, exec |
| Fly.io Sprites | JS, Go, Python, Elixir, CLI | Install CLI, auth, sprite create, sprite exec |
| Blaxel | TS, Python, Go, CLI | Create with name, image and size, then process.exec |
| Northflank | JS, Python, CLI | Token, project, a deployment spec, poll until ready, exec |
| Docker | sbx CLI; TypeScript SDK (experimental) |
sbx login, sbx --cloud run claude |
| DigitalOcean | doctl CLI; Python (beta) |
doctl harness-runtime launch |
| Prime Intellect | Python, CLI | prime sandbox create, prime sandbox run |
| AWS AgentCore | Python, boto3, CLI | IAM policy, start(), invoke("executeCode") |
| AWS Lambda MicroVMs | AWS CLI, boto3, JS | Build an image with your own server, run-microvm, get a token, send requests |
| Google Agent Platform | Python | Create an instance, a sandbox, then execute_code |
| Azure | REST, Azure CLI | Create a session pool, POST code to it |
Our assessment, from the docs rather than hands-on use:
- E2B and Daytona have the most complete docs, with per-framework guides and
llms.txtindexes, though Daytona’s contradict themselves in places; Modal’s quickstart is the shortest, but you still think in Modal’s apps and images. - Northflank, Cloudflare and Lambda MicroVMs ask the most: a deployment on Northflank, a Durable Object you write on Cloudflare (its old 0.x SDK is supported until 31 December 2026), and on Lambda an image containing your own server, because there’s no run-code call.
- Local development is mostly missing. Docker runs the same microVM free on your laptop and paid in the cloud, and
sbx movecarries it between them. E2B’s runtime is open source, Cloudflare’swrangler devruns containers in local Docker, and AWS’s AgentCore CLI hasagentcore dev. - Google’s Code Execution won’t let you install your own libraries; you need custom containers for that.
Which frameworks plug in out of the box
The OpenAI Agents SDK has official sandbox clients for Blaxel, Cloudflare, Databricks, Daytona, E2B, Modal and Vercel. The Claude Agent SDK’s hosting page names no vendors, but Claude Managed Agents’ self-hosted sandbox page has guides for 11 platforms.
| Product | OpenAI Agents SDK | Claude | Vercel AI SDK | LangChain | MCP | Computer use |
|---|---|---|---|---|---|---|
| E2B | Official | Managed Agents | Experimental | Backend | Gateway in sandbox | Desktop |
| Daytona | Official | Agent SDK, Managed Agents | Guide | Backend | Server | Linux, Windows, macOS |
| Modal | Official | Managed Agents | – | Backend | – | VM desktops |
| Cloudflare | Official | Managed Agents | – | – | Server | – |
| Vercel | Official | Agent SDK, Managed Agents | First-party | Backend | – | – |
| Render | – | Managed Agents (Render’s guide) | – | – | – | – |
| Blaxel | Official | Agent SDK, Managed Agents | Tutorial | Tutorial | Per sandbox | Desktop image |
| Fly.io Sprites | Adapter | Managed Agents | – | – | Hosted | Desktop via Cursor guide |
| Northflank | – | Agent SDK | – | – | – | – |
| Docker | Containers only | Claude Code kit | – | – | Gateway | – |
| DigitalOcean | – | Claude Code | – | LangGraph | Action Gateway | Chromium |
| AWS AgentCore | Runtime | Runtime | Tools registry | Backend | Hosting | Browser |
| AWS Lambda MicroVMs | – | Managed Agents | – | – | – | – |
| ADK | GKE (Managed Agents) | – | – | – | Yes | |
| Azure | – | – | – | Package | Preview | – |
A dash means we found no first-party documentation, not that it can’t be done; every product has an API you can wrap in a tool. “Official” means a client maintained in the OpenAI Agents SDK; “Runtime” means the framework runs on AgentCore Runtime rather than using Code Interpreter as its sandbox. ADK is Google’s Agent Development Kit and GKE is Google Kubernetes Engine. “Backend” entries are from LangChain’s Python sandbox integrations list; “Tutorial”, “LangGraph” and “Package” come from the vendors’ own docs. The Vercel AI SDK’s own adapters cover only Vercel Sandbox and an in-process bash emulator; others plug in through its Experimental_SandboxSession interface. Docker’s OpenAI client runs plain containers, not its microVM sandboxes.
Isolation, start-up, persistence and limits
| Product | Isolation | Start-up (vendor claim) | Pause / snapshot | Max session | GPUs | Regions | Self-host / BYOC |
|---|---|---|---|---|---|---|---|
| E2B | Firecracker | “Container speed” | Memory kept; snapshots, fork | 1 h Hobby, 24 h Pro | No | US, EU, APAC | Self-host; BYOC |
| Daytona | Containers; VM option | “Under 90ms” | Pause, fork on VMs only | Unlimited | Up to 8; deleted when stopped | US, EU | BYOC (Enterprise) |
| Modal | gVisor; VM option | “Sub-second cold-starts” | File snapshots; memory alpha | 24 h | Yes | US, EU, AP | No |
| Cloudflare | Firecracker | Median 648 ms (third-party test it cites) | File snapshots (beta) | 6 h idle timeout | No | Global | No |
| Vercel | Firecracker | Median creation 0.7 s with Drives | Persistent; snapshots | 24 h Pro | No | 19 | No |
| Render | Firecracker | “Under one second” | Memory kept on suspend | 24 h default; can be lifted | No | Oregon | No |
| Fly.io Sprites | MicroVM | Wake 100–500 ms | Checkpoints, fork | No cap in docs | No | Unpublished | No |
| Blaxel | MicroVM | Resume “under 25 milliseconds” | Standby keeps memory | Unlimited, higher tiers | No | US, UK, DE | Own hardware (Enterprise) |
| Northflank | Cloud Hypervisor; Kata on BYOC; gVisor for GPUs | “Under a second” | Scale to zero; volumes | “No time limits” | Yes | Per project | BYOC |
| Docker | MicroVM | “Low hundreds of milliseconds” | Stop keeps memory and files | 24 h | Local only | Unpublished | Free locally |
| DigitalOcean | Firecracker | Resume in 200–300 ms | Checkpoint, fork | 744 h a month | No | Richmond | No |
| Prime Intellect | MicroVM | “Thousands within seconds” | Pause keeps memory | Unlimited for VMs | “Coming soon” | Unpublished | No |
| AWS AgentCore | MicroVM | Unpublished | None | 8 h | Runtime Instances only | 22 | No |
| AWS Lambda MicroVMs | Firecracker | “Near-instant launch and resume” | Suspend keeps memory and disk | 8 h, incl. suspended | Not documented | 14 | No |
| Google Agent Platform | gVisor | “Under a second”, up to 2 min cold | Pause and snapshots, except Code Execution | 14 days; 7 for custom containers | Unpublished | 23 | Agent Substrate (open source) |
| Azure | Hyper-V | “Milliseconds”, warm pools | None | Idle timeout up to 1 h | No | 38 | No |
“Unpublished” and “not documented” mean the vendor’s docs don’t say, as of 10 November 2026. BYOC means the vendor runs the sandbox in your cloud account.
A Firecracker, Cloud Hypervisor or Hyper-V microVM gives each sandbox its own kernel, the strongest common option. gVisor, used by Modal and Google, intercepts system calls in user space. Plain containers share the host kernel; Daytona’s default is one, so ask for its VM class for code you didn’t write. MicroVMs aren’t a guarantee either: in Vercel’s $1M sandbox challenge, a Linux kernel bug let a sandbox read host memory in production; Vercel says it mitigated the bug and no reports showed anyone accessing customer data.
Start-up claims aren’t comparable: vendors measure scheduling, warm-pool hits, resumes or cold boots. For agents, which spend most of their lives paused, resume time matters most.
E2B, Blaxel, DigitalOcean, Render, Lambda MicroVMs, Prime Intellect, Docker and Daytona’s VMs pause or stop with memory intact, so a running server picks up where it left off; Fly keeps memory only while a Sprite is warm. Cloudflare keeps only the disk, and Azure and AgentCore keep nothing.
Which one should you use?
Stop at the first rule that fits.
- If it must run in your own cloud, pick E2B for open source you can self-host plus managed BYOC, or Northflank for a full platform on your AWS, GCP, Azure or Oracle account, after reading its breach post-mortem when it arrives. On Kubernetes, Google’s open-source Agent Substrate (or, on AWS, Nitro Sandboxes for isolation alone) keeps everything in your cluster. Daytona’s BYOC and Blaxel’s own-hardware option are enterprise deals.
- If you’re all-in on one cloud and need its IAM, VPC and audit trail, use its product. On AWS, AgentCore has the best egress story once you build the VPC and firewall, and Lambda MicroVMs suit stateful sessions of up to 8 hours. Google’s sandboxes fit ADK users and start blocked. Azure’s are for short code-interpreter calls only.
- If the sandbox needs a GPU, use Modal for the widest serverless choice, Daytona for up to eight GPUs per sandbox (deleted when stopped, so keep state elsewhere), or Northflank for GPUs in your own cloud.
- If you build on the OpenAI Agents SDK or Claude Managed Agents, pick from the official clients. E2B and Daytona cover the most frameworks; choose Vercel if you also use the AI SDK.
- If your app already runs on Vercel, Cloudflare or Render, use their sandbox: CPU billed only when busy and the platform’s own secrets handling. Vercel and Cloudflare have the best TLS-level egress controls; Render is in beta in one region. Watch the bill if your agent is CPU-heavy.
- If you’re giving a coding agent like Claude Code or Codex a machine, rather than embedding a sandbox in a product, use Docker: free locally, $0.14 an hour in the cloud, with an egress log. Fly.io Sprites suit machines that live for weeks and cost almost nothing asleep. For the local sandbox each coding agent ships, and whether it’s on by default, see our coding agents comparison.
- If your agents pause and resume a lot and need memory intact, use E2B, Blaxel, DigitalOcean, Render, Lambda MicroVMs or Prime Intellect. Blaxel’s network rules are still in preview, and Render is in beta.
- If you’re running RL or large evaluations and cost per hour is what counts, use Prime Intellect while its promotional rate lasts, or Northflank.
- Otherwise, start on E2B or Daytona: the most mature specialists, the same compute price, support almost everywhere. E2B if you might self-host; Daytona if you need GPUs, Windows or macOS desktops, or more SDK languages.
Whatever you choose, on day one create every sandbox with an egress allowlist, hand it API keys through the vendor’s injection proxy rather than environment variables, and log outbound traffic yourself unless you’re on Docker or AWS.
Also worth a look
- Freestyle sells full Linux VMs at $0.04032 per vCPU-hour and $0.0129 per GiB-hour, with a free plan and paid plans from $50 a month, no network access unless a rule allows it, credential injection and pause with memory kept.
- Koyeb Sandboxes run microVMs on CPU or GPU, with cold starts “as low as 250ms” by Koyeb’s account; Koyeb agreed to join Mistral AI in February. We found no egress allowlist.
We still couldn’t confirm Northflank’s egress controls on its managed cloud, which hypervisor Daytona uses, how Sprites regions are chosen, Docker Cloud’s and Prime Intellect’s regions, or the size of an Azure session.
FAQ
What is the cheapest hosted sandbox for an AI agent?
At 2 vCPU and 4 GB with the CPU a quarter busy, DigitalOcean’s Harness Runtime (about $0.060 an hour) and Northflank (about $0.067) had the lowest list prices on 10 November 2026. For very light agents, Northflank and Cloudflare go smallest, at well under a cent an hour. Plan fees, such as E2B’s $150 Pro plan, change the ranking at small scale.
Which agent sandboxes block internet access by default?
Azure dynamic sessions, Google’s Agent Platform sandboxes, Freestyle and Docker’s local sandboxes start with outbound traffic off, Daytona restricts it on its lower tiers, and Cloudflare’s Sandbox SDK 1.0 makes you choose. Most others, including E2B, Modal, Vercel, Render and Fly.io Sprites, start open, so set an allowlist when you create each sandbox.
What happened to Runloop?
A notice in Runloop’s docs says it is “winding down its services”, with transition support for existing customers until 13 November 2026 and migration guides to Modal, Tensorlake and Freestyle. We found no other announcement. Separately, the OpenAI Agents SDK removed its Runloop client from its main branch and docs on 19 October, without giving a reason; the latest release, 0.24.0, still includes it.
Should I still use Northflank after its breach?
On 30 October 2026 Northflank told every customer to assume their environment variables had been decrypted and to rotate all keys. It says running workloads weren’t affected and customers on dedicated or forward-deployed control planes were unaffected, but it hadn’t published a root cause by 10 November. If you use it, rotate every secret and wait for the post-mortem before storing new ones there.
Correction (10 November 2026): The first version of this guide said DigitalOcean had no standalone sandbox, though its MicroVMs were announced in private preview the day before; said its Agent Droplets Pro plan paid off only above about $333 a month (the fee is credited to usage, so about $50); called its region unconfirmed when its docs named Richmond; and left out AWS Lambda MicroVMs, generally available since June. It gave AgentCore 15 regions (it had 22) and a start-up figure belonging to AgentCore Runtime. Cloudflare’s default size is lite, and its example setups were about $1 high. Vercel’s “sub-second” figure was the Docker container time in Vercel’s docs, Docker already had a TypeScript SDK and a start-up claim, Blaxel also has a Go SDK, Fly still runs GPU Machines (we said it had no GPUs), and Koyeb says it moved from Firecracker to Cloud Hypervisor in 2025. This update also re-checked every price and cell, removed Runloop, and added Render and Lambda MicroVMs.
