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.
| Tool | What it does | Open source | More |
|---|---|---|---|
| Agent 37 | Cloud sandboxes for running AI agents, positioned as lower-cost agent infrastructure. | No | Alternatives |
| AIO Sandbox | All-in-one agent sandbox with browser, shell, file access, VSCode Server, and MCP in one container. | Yes | Alternatives |
| boxd | 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. | No | Alternatives |
| Celesto | 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. | Yes | Alternatives |
| Cloudflare Sandbox SDK | Run untrusted or generated code in Linux VMs or isolated Workers on Cloudflare. | No | Alternatives |
| Cosmonic | 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. | No | Alternatives |
| Daytona | Secure sandboxes for running AI-generated code. Its public GitHub repo is archived: core development moved to a private codebase in June 2026. | No | Alternatives |
| E2B | Isolated cloud machines for agents to run code, browse, and use tools. | Yes | Alternatives |
| Macswarm | 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. | No | Alternatives |
| Modal | Serverless cloud for running, training, and serving AI workloads, including sandboxes. | No | Alternatives |
| Runloop | Code sandboxes (Devboxes) for AI coding agents, plus evaluations. | No | Alternatives |
| Runtime | Linux sandboxes for agent code, each a Firecracker microVM, billed on active CPU, with pause, forks, snapshots, custom images, an MCP server and SDKs. | No | Alternatives |
| Sandbox0 | 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. | No | Alternatives |
| Sandscale | Firecracker microVM sandboxes, workspaces and build machines for AI agents, started in one call. | No | Alternatives |
| Vercel Sandbox | Isolated Linux microVMs on Vercel for untrusted or agent-generated code. | No | Alternatives |
| VoidRun | Isolated microVM sandboxes where AI agents and developers run untrusted code, via REST API, TypeScript and Python SDKs, and an MCP server (beta). | No | Alternatives |
How to choose
What to check before you pick
- Isolation: microVMs, containers or isolated workers. Untrusted, model-written code needs strong isolation.
- Start time and session length: how fast a sandbox boots and how long it can stay alive.
- What is inside: a shell, file system, browser, or language runtimes your agent needs.
- Hosting: managed cloud, self-hostable open source, or tied to a platform you already use.
- 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
Agent 37
agent37.comCloud sandboxes for running AI agents, positioned as lower-cost agent infrastructure.
In their words: “Cloud Sandbox for Agents | Agent 37”
AIO Sandbox
sandbox.agent-infra.comAll-in-one agent sandbox with browser, shell, file access, VSCode Server, and MCP in one container.
In their words: “AIO Sandbox”
boxd
boxd.shHardware-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”
Celesto
celesto.aiHardware-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.”
Cloudflare Sandbox SDK
developers.cloudflare.comRun untrusted or generated code in Linux VMs or isolated Workers on Cloudflare.
In their words: “Overview · Cloudflare Sandboxes docs”
Cosmonic
cosmonic.comWebAssembly 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”
Daytona
daytona.ioSecure 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”
E2B
e2b.devIsolated cloud machines for agents to run code, browse, and use tools.
In their words: “E2B | The Enterprise AI Agent Cloud”
Macswarm
macswarm.comCloud 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.”
Modal
modal.comServerless cloud for running, training, and serving AI workloads, including sandboxes.
In their words: “Modal: The platform for production AI”
Runloop
runloop.aiCode sandboxes (Devboxes) for AI coding agents, plus evaluations.
In their words: “Runloop - Your AI Agent Accelerator”
Runtime
withruntime.comLinux 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”
Sandbox0
sandbox0.aiCloud 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”
Sandscale
sandscale.devFirecracker microVM sandboxes, workspaces and build machines for AI agents, started in one call.
In their words: “Sandboxes for AI agents”
Vercel Sandbox
vercel.comIsolated Linux microVMs on Vercel for untrusted or agent-generated code.
In their words: “Vercel Sandbox”
VoidRun
void-run.comIsolated 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”
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