Agent Stack Directory

Guide, updated Nov 23, 2026

Best code sandboxes for AI agents

Isolated machines where agents can safely run code. We list 16 code sandboxes, 3 open source. Summaries come from each vendor's own site and every link was checked on or before Nov 23, 2026.

Shortlist

All 16 at a glance

Alphabetical. Nothing in this guide is a paid placement.

Best code sandboxes for AI agents
ToolWhat it doesOpen sourceMore
Agent 37Cloud sandboxes for running AI agents, positioned as lower-cost agent infrastructure.NoAlternatives
AIO SandboxAll-in-one agent sandbox with browser, shell, file access, VSCode Server, and MCP in one container.YesAlternatives
boxdHardware-isolated Linux VMs for agents and developers that keep running processes, files and shell state between sessions, with fork, snapshot, pause and hibernate, in boxd's cloud or self-hosted.NoAlternatives
CelestoHardware-isolated cloud computers for AI agents, with browser, desktop, shell and file access, pause, resume and forking, via CLI and SDK; Apache-2.0 microVM core you can self-host.YesAlternatives
Cloudflare Sandbox SDKRun untrusted or generated code in Linux VMs or isolated Workers on Cloudflare.NoAlternatives
CosmonicWebAssembly sandboxes for agent code, MCP servers and tools, with no access until you grant it: the free Cosmonic Desktop app (public beta) and Cosmonic Control for Kubernetes. Open source core: CNCF wasmCloud.NoAlternatives
DaytonaSecure sandboxes for running AI-generated code. Its public GitHub repo is archived: core development moved to a private codebase in June 2026.NoAlternatives
E2BIsolated cloud machines for agents to run code, browse, and use tools.YesAlternatives
MacswarmCloud macOS virtual machines for Claude Code and Codex agents, each a Pod on Apple silicon with the latest Xcode and iOS Simulators, billed per Pod-hour. Three Pod-hours free to start, no card required.NoAlternatives
ModalServerless cloud for running, training, and serving AI workloads, including sandboxes.NoAlternatives
RunloopCode sandboxes (Devboxes) for AI coding agents, plus evaluations.NoAlternatives
RuntimeLinux sandboxes for agent code, each a Firecracker microVM, billed on active CPU, with pause, forks, snapshots, custom images, an MCP server and SDKs.NoAlternatives
Sandbox0Cloud computers for AI agents that keep the whole writable root filesystem, pause compute between tasks and resume on demand, via API, SDKs and CLI.NoAlternatives
SandscaleFirecracker microVM sandboxes, workspaces and build machines for AI agents, started in one call.NoAlternatives
Vercel SandboxIsolated Linux microVMs on Vercel for untrusted or agent-generated code.NoAlternatives
VoidRunIsolated microVM sandboxes where AI agents and developers run untrusted code, via REST API, TypeScript and Python SDKs, and an MCP server (beta).NoAlternatives

How to choose

What to check before you pick

  1. Isolation: microVMs, containers or isolated workers. Untrusted, model-written code needs strong isolation.
  2. Start time and session length: how fast a sandbox boots and how long it can stay alive.
  3. What is inside: a shell, file system, browser, or language runtimes your agent needs.
  4. Hosting: managed cloud, self-hostable open source, or tied to a platform you already use.
  5. Pricing unit: usually per second or minute of compute. Check each vendor's pricing page.

This checklist is general advice. Check each vendor's docs and pricing page for current details.

Listed here? Feature your tool in this comparison

The tools

Each option in one paragraph

Category page

Agent 37

agent37.com

Cloud sandboxes for running AI agents, positioned as lower-cost agent infrastructure.

In their words: “Cloud Sandbox for Agents | Agent 37”

DetailsAlternativesOfficial site

AIO Sandbox

sandbox.agent-infra.com

All-in-one agent sandbox with browser, shell, file access, VSCode Server, and MCP in one container.

In their words: “AIO Sandbox”

Open source

DetailsAlternativesOfficial site

boxd

boxd.sh

Hardware-isolated Linux VMs for agents and developers that keep running processes, files and shell state between sessions, with fork, snapshot, pause and hibernate, in boxd's cloud or self-hosted.

In their words: “Composable computers for devs and agents”

DetailsAlternativesOfficial site

Celesto

celesto.ai

Hardware-isolated cloud computers for AI agents, with browser, desktop, shell and file access, pause, resume and forking, via CLI and SDK; Apache-2.0 microVM core you can self-host.

In their words: “Celesto: Build agents. Give them real computers.”

Open source

DetailsAlternativesOfficial site

Cloudflare Sandbox SDK

developers.cloudflare.com

Run untrusted or generated code in Linux VMs or isolated Workers on Cloudflare.

In their words: “Overview · Cloudflare Sandboxes docs”

DetailsAlternativesOfficial site

Cosmonic

cosmonic.com

WebAssembly sandboxes for agent code, MCP servers and tools, with no access until you grant it: the free Cosmonic Desktop app (public beta) and Cosmonic Control for Kubernetes. Open source core: CNCF wasmCloud.

In their words: “Cosmonic: Sandbox AI agents and tools”

DetailsAlternativesOfficial site

Daytona

daytona.io

Secure sandboxes for running AI-generated code. Its public GitHub repo is archived: core development moved to a private codebase in June 2026.

In their words: “Daytona - Secure Infrastructure for Running AI-Generated Code”

DetailsAlternativesOfficial site

E2B

e2b.dev

Isolated cloud machines for agents to run code, browse, and use tools.

In their words: “E2B | The Enterprise AI Agent Cloud”

Open source

DetailsAlternativesOfficial site

Macswarm

macswarm.com

Cloud macOS virtual machines for Claude Code and Codex agents, each a Pod on Apple silicon with the latest Xcode and iOS Simulators, billed per Pod-hour. Three Pod-hours free to start, no card required.

In their words: “A cloud Mac for Claude Code and Codex agents.”

DetailsAlternativesOfficial site

Runloop

runloop.ai

Code sandboxes (Devboxes) for AI coding agents, plus evaluations.

In their words: “Runloop - Your AI Agent Accelerator”

DetailsAlternativesOfficial site

Runtime

withruntime.com

Linux sandboxes for agent code, each a Firecracker microVM, billed on active CPU, with pause, forks, snapshots, custom images, an MCP server and SDKs.

In their words: “Agent sandboxes, up to 6× cheaper”

DetailsAlternativesOfficial site

Sandbox0

sandbox0.ai

Cloud computers for AI agents that keep the whole writable root filesystem, pause compute between tasks and resume on demand, via API, SDKs and CLI.

In their words: “AI Agent Sandboxes. Compute on Demand. | Sandbox0”

DetailsAlternativesOfficial site

Sandscale

sandscale.dev

Firecracker microVM sandboxes, workspaces and build machines for AI agents, started in one call.

In their words: “Sandboxes for AI agents”

DetailsAlternativesOfficial site

Vercel Sandbox

vercel.com

Isolated Linux microVMs on Vercel for untrusted or agent-generated code.

In their words: “Vercel Sandbox”

DetailsAlternativesOfficial site

VoidRun

void-run.com

Isolated microVM sandboxes where AI agents and developers run untrusted code, via REST API, TypeScript and Python SDKs, and an MCP server (beta).

In their words: “VoidRun | Secure Sandboxes for Developers and AI Agents”

DetailsAlternativesOfficial site

Head to head

Compare them side by side

FAQ

Questions

Which code sandboxes does Agent Stack Directory list?

16: Agent 37, AIO Sandbox, boxd, Celesto, Cloudflare Sandbox SDK, Cosmonic, Daytona, E2B, Macswarm, Modal, Runloop, Runtime, Sandbox0, Sandscale, Vercel Sandbox, VoidRun.

Which of them are open source?

AIO Sandbox, Celesto, E2B are marked open source in our data.

How is this list ordered?

Alphabetically. No placement in this guide is paid. Sponsored and featured tools are labeled elsewhere on the site and never reordered here.

More guides:Best cloud browsers for AI agentsBest memory layers for AI agentsBest search and web data APIs for AI agentsBest email APIs for AI agentsBest tool integration platforms for AI agentsBest payment tools for AI agentsBest voice agent platformsBest observability and eval tools for AI agentsBest AI agent frameworksBest open-source infrastructure for AI agents

The weekly drop

New agent tools, every Friday. One short email with what was added and what changed. No spam.

One email a week. Your address is only used for this newsletter.