← Blog

The best AI agent sandboxes in 2026: 14 options and how to choose

A sourced field guide to AI agent sandboxes as of November 2026: E2B, Modal, Daytona, Vercel, Cloudflare, Fly.io Sprites, Freestyle, Morph Cloud, Northflank, Sandbox0, Beam, PandaStack, Temps and Sandscale. Five questions, best-for lines, one table, FAQ.

An agent sandbox is the machine where an AI agent runs code it wrote, installs packages and touches files, kept apart from everything you care about. In 2026 there are more good options than anyone has time to trial, and most “best of” lists rank them by a feature count. That is not how teams actually choose. They choose by five questions, and the answers rule most options out quickly.

We make Sandscale, and it is in this list. To keep that honest, options appear in alphabetical order, every fact links to the vendor’s own page as of November 2026, and where we did not find something we say “not published” instead of guessing. Check the linked pages before you decide; this market moves monthly.

The five questions

1. What boundary do you need? Three families: shared-kernel containers (fast and light, but a kernel bug is a host problem), user-space kernels like gVisor (a real step up), and hardware-virtualized microVMs such as Firecracker, Cloud Hypervisor or Kata (each sandbox has its own guest kernel). For code an LLM wrote, most teams want a microVM. Background: containers, gVisor and Firecracker for agent code.

2. How long does a box live? A code interpreter call lasts seconds. A coding agent on a repository lasts an hour. A workspace an agent returns to lasts weeks. Session caps (1 hour, 24 hours) and what survives a pause decide fit.

3. What does waiting cost? Agents spend much of their time waiting on a model or a person. Some meters charge reserved resources while a box is up; some charge active CPU; some stop when paused. Read agent sandbox billing models compared.

4. What can you prove afterwards? Approvals for risky commands, policy on tool calls, secrets kept out of prompts, and an audit log you can export. Few platforms build these in.

5. Where must it run? Hosted, your cloud account, or your own hardware.

The options

Beam. Sandboxes run as containers or as microVMs with use_vm=True, with GPU sandboxes, memory snapshots and forking, plus persistent CPU microVMs, per Beam’s comparison page. Billing is per vCPU and GiB at the tier you pick. Best for: Modal-style sandboxes plus GPUs without a 24-hour cap.

Cloudflare Sandboxes. A Durable Object in your Worker starts a container instance; Cloudflare’s docs describe each instance as a microVM with its own kernel. Needs the Workers Paid plan and is reached through your Worker. Best for: apps already built on Workers, R2 and Durable Objects. See Sandscale vs Cloudflare Sandboxes.

Daytona. Containers by default with Linux VM, Windows, macOS and GPU classes, billed per second on reserved resources with a 15-minute auto-stop by default (docs). Its README says the open-source repo is no longer maintained and core development moved private in June 2026. Best for: many machine shapes under one SDK. See Daytona alternatives.

E2B. Firecracker microVM per sandbox, per-second billing that stops when paused, 1-hour sessions on Hobby and 24 hours on Pro ($150 a month plus usage), Apache-2.0 infrastructure and BYOC on Enterprise (pricing). Best for: a mature hosted SDK with wide framework support. See E2B alternatives.

Fly.io Sprites. Persistent, hardware-isolated Linux VMs that checkpoint themselves and stop compute billing while idle, with a remote MCP server and CLI (docs). Best for: a computer per agent that is still there tomorrow. See Sandscale vs Fly Machines and Sprites.

Freestyle. Full Linux VMs for long-running tasks, with memory-preserving pause, live cloning, default-deny network rules and nested virtualization. Free plan with 10 concurrent VMs; Hobby $50 and Pro $500 a month (pricing). Best for: stateful agent workspaces that run for days.

Modal. Sandboxes on gVisor by default or a VM runtime, GPUs on gVisor, 5-minute default and 24-hour maximum lifetime, billed per second at max(request, used), inside a wider serverless platform (docs). Best for: sandboxes next to GPUs and Python functions. See Modal Sandbox alternatives.

Morph Cloud. VM instances with snapshot, branch, pause and TTLs, plus Devboxes, billed in compute units at $0.05 each (docs, pricing). Best for: branching one running state into many, as in RL or search over fixes.

Northflank. Sandboxes on Kata Containers microVMs (CPU) or gVisor (GPU), on Northflank’s cloud or yours, next to services, databases and jobs, billed per second (docs). Best for: a full platform with bring-your-own-cloud. See Sandscale vs Northflank.

PandaStack. Describes itself as open-source (Apache-2.0) Firecracker microVMs, self-hostable on any /dev/kvm host, with snapshots and forks (PandaStack blog). Best for: an open-source sandbox platform you operate.

Sandbox0. gVisor sandboxes that keep the whole writable root filesystem across pauses, with compute released between tasks, $0.015 per GiB-hour of compute and $0.02 per GiB-month of kept storage (sandbox0.ai). Self-hosting is no longer supported. Best for: a persistent per-user environment at low idle cost.

Sandscale. A Firecracker microVM per agent run, networking off by default with an organization egress allowlist, and approvals, agent policy, DLP, Vault and a hash-chained audit log on every plan. MCP server (remote at https://mcp.sandscale.dev/mcp, or local via the CLI), REST API and TypeScript SDK. Billed per awake vCPU-hour with 4 GiB per vCPU included; Free includes 100 hours a month, Pro is $20 a month billed annually or $25 monthly. Gaps: no published GPUs, US region only today, no SOC 2 certification claimed. Best for: coding agents that need governance around the box.

Temps. One self-hosted binary that, among other things, runs sandboxes on your server as hardened Docker containers or Firecracker microVMs on KVM hosts, free to self-host (temps.sh). Best for: small teams that want sandboxes on a server they already run.

Vercel Sandbox. Firecracker microVMs billed on Active CPU plus provisioned memory, 45-minute sessions on Hobby and 24 hours on Pro, persistent sandboxes and snapshots (docs). Best for: projects already on Vercel. See Sandscale vs Vercel Sandbox.

A note on Runloop. It appears on many lists, but as of November 2026 its docs say it is winding down. See Runloop alternatives.

Cloud-native options. If you are committed to one cloud, AWS has the Bedrock AgentCore Code Interpreter and Azure has Container Apps dynamic sessions. Both are covered in our comparisons.

The table

As of November 2026, from each vendor’s pages. “Not published” means not found on the pages we read.

Option Boundary Lifetime and state Meter Governance built in Where it runs MCP
Beam Container or microVM No session cap; memory snapshots Per vCPU and GiB by tier Not published Hosted Not checked
Cloudflare Container instance in a microVM Tied to your Worker; snapshots in beta vCPU, memory, disk Through your Worker Hosted Not checked
Daytona Container; VM classes Persist until stopped Reserved resources per second SSO and audit on Enterprise Hosted, Enterprise options Yes
E2B Firecracker 1 h Hobby, 24 h Pro; pause keeps memory CPU and RAM per second Not published Hosted, BYOC, Embed Yes
Fly.io Sprites Hardware-isolated microVM Persistent, checkpoints Per second, none when idle Not published Hosted Yes
Freestyle Hardware-virtualized VM Persistent VMs on paid plans vCPU-hour, GiB-hour SSO and audit logs on Enterprise Hosted Not checked
Modal gVisor or VM runtime 5 min default, 24 h max max(request, used) per second Not published Hosted Not in sandbox guide
Morph Cloud VM instances Snapshots, branch, TTL MCU Not published Hosted Not checked
Northflank Kata microVM or gVisor Not checked Per second Not checked Hosted or your cloud Not checked
PandaStack Firecracker Snapshots, forks Not published Not published Self-hosted Not checked
Sandbox0 gVisor Whole root filesystem kept GiB-hour, GiB-month Not published Hosted No plugin; CLI
Sandscale Firecracker 4 h Free, 24 h Pro; pause keeps memory; workspaces Awake vCPU-hours Approvals, policy, DLP, Vault, audit on every plan Hosted; your AWS on Enterprise Yes, remote and local
Temps Docker or Firecracker Suspend and wake Your server Not published Self-hosted Not checked
Vercel Sandbox Firecracker 45 min Hobby, 24 h Pro; persistent Active CPU plus memory Not checked Hosted Not checked

How to choose in practice

  • Untrusted code from an LLM, short runs: start from the microVM rows: E2B, Sandscale, Vercel, Cloudflare, Sprites, Freestyle.
  • You need to answer “who approved that”: Sandscale builds approvals, policy and audit in; elsewhere you build them.
  • GPUs: Modal, Beam, Northflank or Daytona.
  • Agents that come back tomorrow: Sprites, Freestyle, Sandbox0, or Sandscale workspaces.
  • Your own hardware: PandaStack, Temps or E2B Embed.
  • Already deployed on a platform: Vercel or Cloudflare.

Then run your real agent, not a hello world, on two free tiers and compare the bill and the logs. Our questions to ask an agent sandbox provider is a checklist for that trial.

FAQ

What is the best sandbox for AI agents in 2026?

It depends on the job. E2B is the common hosted default, Modal fits GPU work, Fly.io Sprites and Freestyle fit persistent agent computers, and Sandscale fits coding agents that need approvals, policy, DLP, Vault and an audit log around a Firecracker microVM per run.

Which AI agent sandboxes use Firecracker?

As of November 2026: E2B, Vercel Sandbox, Sandscale and PandaStack, and Temps on KVM hosts. Cloudflare describes its sandbox instances as microVMs, Northflank uses Kata Containers on Cloud Hypervisor for CPU sandboxes, and Modal uses gVisor or a VM runtime.

Is gVisor safe enough for running AI-generated code?

gVisor is a serious boundary and a clear step up from a plain container. A microVM gives each sandbox its own guest kernel behind hardware virtualization, which is a smaller exposed surface. Many teams use gVisor where they need GPUs and microVMs for everything else.

Which agent sandboxes have an MCP server?

Sandscale, E2B, Daytona and Fly.io Sprites publish MCP servers as of November 2026. Sandscale’s remote server is https://mcp.sandscale.dev/mcp.

Can I self-host an AI agent sandbox?

Yes. PandaStack and E2B publish Apache-2.0 Firecracker platforms, and Temps runs sandboxes on your own server. Northflank and E2B run in your cloud account on their enterprise or BYOC options, and Sandscale runs in your AWS account on Enterprise.

How are agent sandboxes priced?

Mostly per second or per hour of CPU and memory, with differences in what counts: reserved resources while up (Daytona), max of request and use (Modal), active CPU (Vercel), or awake vCPU-hours with paused time not counted (Sandscale). Waiting time is where bills diverge.

Sources

Read in November 2026:

Sandscale: pricing, security, CLI.

Run your agents in a box of their own

Each sandbox is a Firecracker microVM. Free includes 100 awake vCPU-hours a month.

Start free

Keep reading