Best AI agent sandboxes in 2026: 12 providers compared
Updated November 2026. Written by Yura Dubinin at Lizard, which makes one of the 12 products listed here.
An agent sandbox is an isolated machine where an AI agent runs the code it writes, and the best one in 2026 depends on the job. E2B fits a code interpreter for an LLM. Fly.io Sprites and Daytona fit coding agents that work for hours. Modal fits evals and RL runs that need thousands of containers or GPUs. Kubernetes Agent Sandbox fits teams that must self-host. Of the 11 hosted providers, Lizard Sandboxes have the lowest list price for a 2 vCPU / 4 GB machine, $0.0162 an hour. All prices and limits below come from each provider's own pages, checked on 15 November 2026.
If you want a cloud sandbox with Claude Code already installed, Lizard (lizard.build) starts one with Lizard CLI: lizard sandbox create -t claude -s small --timeout 600000. That is a Firecracker microVM with 2 vCPU, 4 GB of RAM and a 20 GB disk, and it deletes itself after 10 minutes.
What is an AI agent sandbox?
An AI agent sandbox is an isolated environment, usually a microVM or a hardened container, where an agent runs commands, installs packages and edits files without access to your laptop, your production servers or other users' data. The agent gets a real Linux machine, and the damage stays inside it.
Hosted sandboxes add an API to create a machine, run a command, read a file, pause and delete. The sandbox does not limit what code does inside it, so any secret you put there is exposed to the agent. Our AI sandbox explainer covers isolation models in more detail.
How did we compare the providers?
We compared 12 providers on seven facts: isolation technology, list price for the same 2 vCPU / 4 GB size, billing unit, longest session, what a pause keeps, how many sandboxes run at once, and whether you can host it yourself.
Every number comes from the provider's own pricing page or docs, read on 15 November 2026. Where a provider does not publish a fact, the table says so. Prices are list rates before plan fees, included usage and storage. For providers that bill only active CPU, the table shows the rate at 100% CPU.
Lizard wrote this list and sells Lizard Sandboxes, the last entry. We did not benchmark the other 11 products for this article, so it has no speed ranking. Our own start-time runs for three of them are in E2B vs Daytona vs Modal.
How do the 12 AI agent sandboxes compare?
At 2 vCPU and 4 GB, list prices on 15 November 2026 run from $0.0162 an hour (Lizard) to $0.3408 an hour (Vercel at 100% CPU). Session limits run from 45 minutes to no cap. E2B, Blaxel, a warm Sprite and Daytona's VM sandboxes keep memory across a pause.
| Provider | Isolation | 2 vCPU / 4 GB per hour | Billing | Longest session | A pause keeps | Running at once | Self-host |
|---|---|---|---|---|---|---|---|
| E2B | Firecracker microVM | $0.1656 | Per second, allocated | 1 h on Hobby, 24 h on Pro | Memory and files | 10 on Hobby, 100 on Pro ($150/month), more for an extra fee | Open-source runtime; BYOC on Enterprise |
| Daytona | Linux container by default; VM sandboxes offered | $0.1656 | Per second, allocated | No cap | Files on a container stop; memory and files on a VM pause | Tier 1: 10 vCPU in total | BYOC on Enterprise |
| Modal Sandboxes | gVisor or microVMs | $0.238 | Per second, higher of requested and used | 24 h | Filesystem snapshot (30 days by default), memory snapshot (7 days, alpha) | 100 containers on Starter, 5,000 on Team ($250/month) | None listed |
| Vercel Sandbox | Firecracker microVM | $0.3408 at 100% CPU | Active CPU plus provisioned memory | 45 min on Hobby, 24 h on Pro | Files, through snapshots or a persistent sandbox | 10 on Hobby, 10,000 on Pro | None listed |
| Cloudflare Sandboxes | microVM with its own kernel | $0.22 at 100% CPU, for 2 vCPU / 8 GiB | Per 10 ms, active CPU plus memory and disk | No cap published; sleeps when idle | Nothing by default; snapshots (beta) keep files | 15,000 vCPU per account by default | None listed |
| Fly.io Sprites | Hardware-isolated VM | $0.1645 at full use, before storage | CPU and memory actually used | No cap; pauses after about 30 s idle | Memory while warm, files once cold | Not published | None listed |
| Northflank | microVM on Cloud Hypervisor; gVisor for GPUs | $0.0667 | Per second, allocated | No cap published | Volumes only | Not published | BYOC |
| Blaxel | microVM | $0.1656 while active | Per second of allocated memory, active time only | No cap published; standby within seconds | Memory and files | 10 on tier 0, 50 on tier 1 ($20/month) | Your own compute on Custom; Blaxel keeps the control plane |
| Runloop | microVM | $0.3168 | Per second, allocated | Not published | Disk only (Pro plan) | 3 on the trial; paid not published | VPC on Enterprise |
| CodeSandbox SDK | VM | $0.1486 | Per minute, rounded up | Not published | Memory and disk at first, disk only later | 10 on Build, 250 on Scale | No |
| Kubernetes Agent Sandbox | gVisor or Kata Containers, your choice | Your cluster's cost | Yours | Yours | Persistent storage | Your cluster's capacity | Yes, self-hosted only |
| Lizard Sandboxes | Firecracker microVM | $0.0162 | Per second, all running time | 1 h on the trial, 596 h paid | Files only | 1 Small on the trial, 20 Small on Pro ($19/month) | No |
The full per-hour grid for three sizes, with a calculator for hours and CPU load, is on AI sandbox pricing per hour.
Which agent sandbox should you pick?
Pick by the job the agent does. No provider wins every row of the table.
- A code interpreter for an LLM: E2B, which ships a Code Interpreter SDK. Hobby allows 10 sandboxes at once, 1-hour sessions and a one-time $100 of usage. On Workers, Cloudflare Sandboxes keep everything on one platform.
- A coding agent that runs for hours: Fly.io Sprites or Daytona. Neither caps session length. A Sprite keeps memory while warm, and Daytona keeps it only on VM and Windows sandboxes, which can pause. Lizard Sandboxes run up to 596 hours on a paid plan, and 1 hour at most on the trial.
- Evals, RL rollouts and other fan-out: Modal (5,000 containers on Team, with GPUs) or Vercel Sandbox (10,000 at once on Pro). On Lizard,
lizard sandbox fork <id> -n 10starts 10 live copies of a running sandbox; parallel forks need a paid plan. - Desktop or browser agents: Daytona sells Windows sandboxes at $0.0858 per vCPU-hour, Kubernetes Agent Sandbox lists computer use as a use case, and Lizard CLI 4.0.128 has a
desktoptemplate. - Self-hosted: Kubernetes Agent Sandbox if you run Kubernetes, the E2B runtime if you want E2B's API on your own machines, Northflank BYOC if you want a vendor to manage it in your cloud account.
- Lowest price: Lizard at $0.0162 an hour, then Northflank at $0.0667. For an agent that waits on a model most of the time, providers that bill active CPU can narrow the gap. Monthly totals for three workloads are on AI sandbox pricing per hour.
What does each agent sandbox provider offer?
E2B
E2B runs each sandbox as a Firecracker microVM and publishes the runtime under Apache-2.0. Its pricing page lists 2 vCPU at $0.000028 a second and 4 GiB at $0.000018 a second, which is $0.1656 an hour. Hobby sessions last up to 1 hour; Pro costs $150 a month plus usage and allows 24 hours and 100 sandboxes at once; 600 cost $500 a month more and 1,100 cost $1,000 more. A paused sandbox keeps memory and files with no expiry. The Pro fee buys higher limits and includes no usage.
Daytona
Daytona charges $0.0504 per vCPU-hour and $0.0162 per GiB-hour, so 2 vCPU / 4 GiB costs $0.1656 an hour, with $200 of compute included (pricing). Its docs say sandboxes run as Linux containers by default, with Linux VM, Windows, GPU and macOS sandboxes also offered. Only VM and Windows sandboxes can pause, which keeps memory and files. Stopping a default container sandbox clears memory and keeps the filesystem. Tier 1 accounts share 10 vCPU, which is five sandboxes of this size; tier 2 (a linked card and a $25 payment) raises that to 100 vCPU and 200 GiB. Daytona's public GitHub repository says core development moved to a private codebase in June 2026.
Modal Sandboxes
Modal bills Sandboxes at $0.00003942 per physical core-second (one core equals 2 vCPU) and $0.00000667 per GiB-second, so this size costs $0.238 an hour (pricing). You pay the higher of what you request and what you use. A sandbox lives 5 minutes by default and 24 hours at most (docs). Starter has no monthly fee, includes $30 of compute a month and runs 100 containers; Team costs $250 a month, includes $100 of compute and runs 5,000. Filesystem snapshots are kept 30 days by default, and memory snapshots, still in alpha, 7 days. Modal also rents GPUs, which most providers here do not.
Vercel Sandbox
Vercel Sandbox runs each sandbox in a Firecracker microVM and bills Active CPU at $0.128 an hour plus provisioned memory at $0.0212 per GB-hour in the iad1 region (pricing). At 2 vCPU / 4 GB that is $0.3408 an hour at 100% CPU and $0.1104 at 10% CPU. Hobby includes 5 CPU-hours a month, 45-minute sessions and 10 sandboxes at once. Pro allows 24-hour sessions, 10,000 sandboxes at once and up to 8 vCPU / 16 GB each.
Cloudflare Sandboxes
Cloudflare runs sandboxes on Containers, where "each instance is a microVM with its own kernel and network" (docs). You need Workers Paid at $5 a month. The closest named size to ours is standard-3, 2 vCPU / 8 GiB / 16 GB disk. At $0.000020 per active vCPU-second, $0.0000025 per GiB-second and $0.00000007 per GB-second of disk, it costs $0.22 an hour at 100% CPU and about $0.09 at 10% CPU (pricing). Disk is ephemeral: after an instance sleeps, the next start gets a fresh disk unless you restore a snapshot, a feature still in beta.
Fly.io Sprites
A Sprite is a persistent Linux machine with 8 vCPU and 100 GB of storage that pauses about 30 seconds after activity stops (lifecycle docs). Fly.io bills what the Sprite uses: $0.0385 per CPU-hour and $0.021875 per GB-hour of memory, plus $0.000683 per GB-hour of hot storage (pricing). Using 2 CPUs and 4 GB flat out costs $0.1645 an hour before storage. Fly.io calls the machine a hardware-isolated VM. A warm Sprite resumes with its processes intact; once it goes cold, only the disk survives. The machine size is fixed.
Northflank
Northflank runs sandboxes as microVMs on Cloud Hypervisor, with gVisor for GPU workloads (product page). Compute costs $0.01667 per vCPU-hour and $0.00833 per GB-hour, billed by the second, so 2 vCPU / 4 GB is $0.0667 an hour (pricing). Ephemeral storage is not persisted; a persistent disk costs $0.11657 per GiB-month. Northflank also runs the same sandboxes in your own cloud account at $0.02083 per node vCPU-hour.
Blaxel
Blaxel bills sandboxes by allocated memory while they are active: $0.0000115 per GB-second, or $0.1656 an hour for 4 GB, with CPU included (pricing). A sandbox with no open connection drops to standby within seconds (about 15 in the docs, about 5 in the pricing FAQ) and keeps its memory and files (docs); Blaxel says it resumes in about 25 ms. Standby snapshots cost $0.20 per GB-month. Tier 0 runs 10 sandboxes at once; tier 1, from a $20 top-up, runs 50. The Custom plan runs sandboxes on your own compute, connected to Blaxel's control plane.
Runloop
Runloop calls its sandboxes devboxes and describes them as microVMs. Compute costs $0.108 per CPU-hour and $0.0252 per GB-hour, so 2 CPUs and 4 GB cost $0.3168 an hour (pricing). Suspend and resume need Pro at $250 a month, and a suspended devbox keeps disk state only (lifecycle docs). The trial gives $50 of usage and 3 running devboxes. Enterprise can deploy into your VPC.
CodeSandbox SDK
CodeSandbox SDK sells VM credits at $0.01486 each. Its 2-core, 4 GB VM uses 10 credits an hour, or $0.1486, and runtime is rounded up to the minute (SDK pricing docs). The Build plan runs 10 VMs at once and Scale runs 250. A hibernated VM keeps memory and disk at first and may fall back to disk only as days pass. The SDK FAQ says self-hosting is not offered. These pricing docs were last changed in July 2025.
Kubernetes Agent Sandbox
Agent Sandbox is an open-source Kubernetes project (Apache-2.0, version 1.0.11 released on 12 November 2026) that adds a Sandbox resource: one stateful pod with a stable identity and persistent storage. Isolation comes from the runtime you configure, gVisor or Kata Containers. The project has no hosted service: you pay for the cluster and run it yourself.
Lizard Sandboxes
Lizard Sandboxes are Firecracker microVMs, each with its own kernel. Small (2 vCPU, 4 GB RAM, 20 GB disk) costs $0.0162 an hour, billed per second for all running time, idle included (pricing). A create without a size is Medium at $0.0324 an hour, so pass -s small to get the Small price.
lizard sandbox create -t claude -s small --timeout 600000
lizard sandbox exec <id> -- python3 /workspace/hello.py
lizard sandbox prompt <id> --agent claude "create hello.py and run it"
lizard sandbox fork <id> -n 2
lizard sandbox rm <id>We ran this sequence on 15 November 2026 with Lizard CLI 4.0.128. The create returned a running Small sandbox, the agent wrote and ran the file, and both forks held the file. The agent step was tested through the same API that lizard sandbox prompt calls, and the CLI flags were checked with --help. Connect your Claude token in the project the sandbox runs in.
The limits: a pause keeps files only, and the sandbox boots fresh on resume. A paused sandbox costs $0.14 per GB-month of used disk. Lizard has no GPUs and no self-hosted option. Lizard Pro costs $19 a month with $19 of usage included and runs 40 vCPU at once, which is 20 Small sandboxes. New accounts start a 7-day trial that needs a card and includes $5 of usage. The trial runs 1 Small and 2 Mini sandboxes at a time in US regions and deletes each sandbox after 1 hour at most, so long runs and parallel forks need a paid plan (limits).
What about local sandboxes?
A local sandbox is enough when one developer runs one agent on their own machine.
Docker Sandboxes run each agent in a microVM with its own Linux kernel and a private Docker Engine, managed with the sbx CLI. Our Docker Sandboxes guide covers setup and limits.
Claude Code has a built-in sandbox for its Bash tool, turned on with /sandbox. It uses Seatbelt on macOS and bubblewrap on Linux and WSL2 to restrict files and network hosts. It runs on your machine and shares your kernel.
Move to a cloud sandbox when you need many agents at once or runs that continue after the laptop closes.
FAQ
Which agent sandboxes bill per second? E2B, Daytona, Modal, Northflank, Blaxel, Runloop and Lizard bill per second, and Cloudflare bills per 10 ms. Vercel, Cloudflare and Fly.io Sprites charge for CPU only while it works, and Blaxel stops billing in standby. CodeSandbox SDK rounds up to the minute. Checked on 15 November 2026.
Is a Firecracker microVM safer than a container for agent code? A microVM gives each sandbox its own kernel, so a kernel exploit inside the sandbox does not reach the host kernel directly. A standard container shares the host kernel. E2B, Vercel Sandbox and Lizard Sandboxes use Firecracker; Modal uses gVisor or VMs; Daytona runs Linux containers by default.
What is the cheapest agent sandbox? By list price for 2 vCPU / 4 GB on 15 November 2026, Lizard Sandboxes cost $0.0162 an hour and Northflank $0.0667. E2B, Daytona and Blaxel cost $0.1656. Plan fees change the total: E2B Pro is $150 a month, Lizard Pro is $19 a month with $19 of usage included.
How many agent sandboxes can run in parallel? It depends on the plan. Vercel Pro allows 10,000 at once, Modal Team 5,000 containers, CodeSandbox Scale 250, E2B Pro 100 (up to 1,100 for an extra fee) and Lizard Pro 20 Small sandboxes (40 vCPU). Entry plans are smaller: 10 on E2B Hobby, Vercel Hobby and Blaxel tier 0, and 1 Small on the Lizard trial.
Build with AI. Ship with Lizard.
You don't need a platform team to go live. Your whole cloud, one CLI command away.
- Services
- —
- Add-ons
- —
- Deployments
- —
- Sandbox starts
- —