Best of · Agent runtime
Best code execution sandboxes for AI agents
The 10 highest-scoring of 27 code execution sandboxes on the Anchor benchmark, with a pick for each need and where each one falls short. Scores come from public evidence, re-checked as vendors change.
- 27 ranked
- 9 agent-ready
- 14 hosted endpoints
- Updated 23 November 2026
Top three
Picks by need
Worked out from the scores, prices and facts, so they change when the research does.
Highest score overall
Microsoft Execution Containers BB
BB, 77.1/100 on the benchmark.
Also Vercel Sandbox, BB, 76.6/100.
Security & auth
Amazon Bedrock AgentCore Code Interpreter BB
87/100 on security & auth, against 69 for the overall leader.
Maintenance & community
E2B BB
93/100 on maintenance & community, against 92 for the overall leader.
Transparency & trust
86/100 on transparency & trust, against 84 for the overall leader.
Lowest paid price per vCPU hour
$0.0011 per vCPU hour, the lowest of the 18 listings here with a paid price in this unit (free allowances aside).
Also Maritime, $0.0055 per vCPU hour.
Self-hosting under an open licence
E2B BB
self-hosted, Apache-2 licence.
Also Celesto (formerly SmolVM), self-hosted, Apache-2 licence.
The shortlist
| # | Tool | Grade | Best for | Price | Where |
|---|---|---|---|---|---|
| 1 | Microsoft Execution Containers Microsoft |
BB 77.1 | A developer building an agent or tool host that must run model-written code on the user's own machine, above all on Windows, where it reaches Microsoft's process and session isolation. | Free · OSS | Local |
| 2 | Vercel Sandbox Vercel |
BB 76.6 | Agents that spend most of their time waiting on a model, agents that need a workspace kept across runs (Drives), and teams already on Vercel. | $0.128 / vCPU-hr | Hosted |
| 3 | E2B E2B |
BB 73.2 | Code interpreters and agent workspaces that pause and resume with memory, and teams that may want to self-host later. | $0.0504 / vCPU-hr | Hosted |
| 4 | Amazon Bedrock AgentCore Code Interpreter Amazon Web Services |
BB 72.4 | A team already on AWS that wants agent code to run under IAM, inside a VPC and beside S3 data, for sessions up to eight hours. | $0.0895 / vCPU-hr | Hosted |
| 5 | DigitalOcean Managed Agents DigitalOcean, LLC |
BB 72.1 | Teams that want hosted coding agents or code execution with pause, fork and approval controls, and already use DigitalOcean. | $0.044 / vCPU-hr | Hosted |
| 6 | Celesto (formerly SmolVM) Celesto AI, Inc. |
BB 71.8 | Local microVM sandboxes for agent code, browsers and desktops on Linux and macOS, with a path to a hosted cloud. | $0.015 / session-hr | Local |
| 7 | boat Dedale AI, Corp. |
BB 71.8 | Long-lived, full Ubuntu VMs with Docker, a desktop and Chrome for coding agents, evals and products that give each user a sandbox, hosted in the EU. | $0.036 / unit | Local |
| 8 | Cloudflare Sandbox SDK Cloudflare |
BB 71.6 | Agents already built on Workers and Durable Objects that want sandboxes in the same account with credential injection at the edge. | $0.072 / vCPU-hr | Local |
| 9 | Daytona Daytona |
BB 70.8 | Agents that need a choice of machine, including Windows desktops and GPUs, and operators who want least-privilege keys. | $0.0504 / vCPU-hr | Hosted and local |
| 10 | Maritime Maritime AI, Inc. |
B 68.9 | Builders who want one persistent agent per user, such as a personal assistant per customer, without running VMs themselves. | $20 / mo | Hosted |
17 more are ranked in the full table.
How to choose
- Start time and concurrencyCheck the start time and how many sandboxes you can run at once, because an agent that waits on cold starts or hits a concurrency cap stalls mid-task.
- Isolation and what it coversCheck what isolation the vendor documents and whether it covers the network, filesystem and host, because an agent running untrusted code needs a boundary it can rely on.
- Billing per second and idle timeWork out the cost of a sandbox that sits paused or idle, since a plan may charge for memory or storage while nothing runs.
- Pause, resume and checkpointsCheck whether state can be paused, resumed or checkpointed and what survives a restore, because a restore that drops installed packages forces the agent to start again.
How the benchmark tests this category. The same task in every sandbox: start, install a package, run a script that writes files, pause and resume where supported, then tear down. We time each step, check isolation claims against the docs and add up the cost.
Each one in detail
Microsoft Execution Containers
BB 77.1/100Microsoft Execution Containers (MXC) is an open-source SDK for running untrusted code in a local sandbox on Windows, Linux and macOS. An application embeds it through Node.js, .NET or Rust and sets filesystem, network and UI policy for each run.
Verdict MXC puts nine operating-system sandbox backends behind one typed request, with network access denied by default and a JSON Schema for the stable 1.0.0 contract. Enforcement varies by backend, isolation_session cannot restrict networking, and enforcement fixes made since 1.0.1, one of them a documented security fix, had not reached a release by 1 November 2026.
Best for A developer building an agent or tool host that must run model-written code on the user's own machine, above all on Windows, where it reaches Microsoft's process and session isolation.
Strengths
- MIT licence, with SDKs for Node.js, .NET and Rust all at 1.0.1 and the native runtime bundled in the npm and NuGet packages
- Egress, ingress and host loopback default to
deny, and filesystem access is limited to listed read-only and read-write paths - A draft-07 JSON Schema for the stable 1.0.0 request, with descriptions on 135 of 150 properties
Weaknesses
- 1.0.1, the newest release on 1 November 2026, still grants read access to the whole system drive from the Windows tool-discovery helper when PowerShell is on PATH, fixed on main only
- Enforcement differs by backend.
isolation_sessioncannot restrict networking, and proxy routing is cooperative on Seatbelt and WSLC - The Node and .NET changelogs still list the V1 changes under Unreleased, with no 1.0.0 or 1.0.1 heading
Price Free · OSSAuth Nonex402 NoLocal
Vercel Sandbox
BB 76.6/100Firecracker microVM sandboxes on Vercel, driven from the @vercel/sandbox JavaScript SDK, the Python vercel package, a CLI or the REST API.
Verdict Active CPU billing means waiting on model responses costs only memory, and the REST API is in Vercel's public OpenAPI document. Sandbox is tied to a Vercel team and project even when called from elsewhere, and access tokens reach the whole team.
Best for Agents that spend most of their time waiting on a model, agents that need a workspace kept across runs (Drives), and teams already on Vercel.
Strengths
- Active CPU billing, so waiting on model responses costs only memory
- Credential brokering proxy outside the sandbox that overwrites headers set by sandbox code
- Firecracker microVM with root access, and a firewall with deny-all, domain and CIDR rules
Weaknesses
- Tied to a Vercel team and project even when called from elsewhere, and access tokens reach the whole team
- Hobby caps sessions at 45 minutes and pauses creation once the monthly allowance is spent
- Snapshots keep the filesystem, not memory or running processes
Price $0.128 / vCPU-hrAuth OAuth or keyx402 NoHosted
Full assessment · Against #1, Microsoft Execution Containers
E2B
BB 73.2/100Firecracker microVM sandboxes for agent code, driven from Python and JavaScript SDKs, a CLI or a REST API.
Verdict Each sandbox is a Firecracker microVM with its own kernel, priced per second with a $100 credit and no card. Incidents in the 90 days to November 2026 were all partial. Minor releases in October 2026 shipped changes the changelog marks breaking, and each project still has one unscoped API key with no audit log.
Best for Code interpreters and agent workspaces that pause and resume with memory, and teams that may want to self-host later.
Strengths
- Firecracker microVM with its own kernel per sandbox
- Egress allow and deny lists by domain, IP or CIDR, and secrets filled in outside the sandbox
- Apache-2.0 infrastructure in e2b-dev/runtime, self-hostable
Weaknesses
- Minor SDK releases 2.53.0, 2.56.0 and 2.62.0 (October 2026) shipped changes marked breaking, with no earlier notice
- One unscoped API key per project, with no audit log found
- Hobby sandboxes stop after 1 hour of continuous running
Price $0.0504 / vCPU-hrAuth API keyx402 NoHosted
Full assessment · Against #1, Microsoft Execution Containers
Amazon Bedrock AgentCore Code Interpreter
BB 72.4/100Amazon Bedrock AgentCore Code Interpreter is AWS's managed sandbox for running agent-written Python, JavaScript and TypeScript. Each session is a dedicated microVM, reached through the AWS API, the AgentCore SDKs or an MCP server.
Verdict Each session runs in its own microVM with 2 vCPU, 8 GB and a 10 GB disk for up to eight hours, and IAM can scope access to one interpreter. Sessions cannot be paused or resumed, and an AWS account with IAM set-up is needed before a first call.
Best for A team already on AWS that wants agent code to run under IAM, inside a VPC and beside S3 data, for sessions up to eight hours.
Strengths
- Each session runs in a dedicated microVM, which AWS says is terminated and has its memory sanitised when the session ends
- Billing is per second on CPU used and peak memory, at $0.0895 a vCPU-hour and $0.00945 a GB-hour, with I/O wait and idle time free
- IAM actions cover each of the nine operations, with separate ARNs for the system interpreter and custom ones
Weaknesses
- No pause, resume or snapshot. Session files are removed when the session ends, and persistence needs a customer-owned S3 Files or EFS mount inside a VPC
- Every session is capped at 2 vCPU, 8 GB of memory and 10 GB of disk, and the cap is not adjustable
InvokeCodeInterpretertakes one flatargumentsobject for nine operations, so the reference does not say which fields each operation requires
Price $0.0895 / vCPU-hrAuth API keyx402 NoHosted
Full assessment · Against #1, Microsoft Execution Containers
DigitalOcean Managed Agents
BB 72.1/100DigitalOcean Managed Agents runs agent harnesses and arbitrary code in Firecracker microVM sandboxes with pause, resume, checkpoint and fork, through Harness Runtime, and brokers tool access through Action Gateway's managed MCP endpoint. Both are in public preview.
Verdict Harness Runtime has a public OpenAPI contract, per-second CPU billing, pause, fork and rollback, and permission policies that can block or hold an agent's actions for approval. The whole product is a public preview whose terms rule out SLAs and data durability and allow breaking changes without warning.
Best for Teams that want hosted coding agents or code execution with pause, fork and approval controls, and already use DigitalOcean.
Strengths
- 67 Harness Runtime operations in the API reference, generated from DigitalOcean's public OpenAPI description, with llms.txt and a Markdown copy of every docs page
- Permission policies with allow, ask and deny, a read-only filesystem option, egress allowlists and audit logs of each agent action
- Scoped secrets bind a credential to one HTTPS destination so it never enters the sandbox
Weaknesses
- Public preview only. The preview terms exclude SLAs, support obligations and data durability guarantees
- The preview terms allow breaking changes to endpoints, SDKs and the spec schema without prior warning
- Sandbox egress is open to any host unless the environment spec sets an allowlist
Price $0.044 / vCPU-hrAuth OAuth or keyx402 NoHosted
Full assessment · Against #1, Microsoft Execution Containers
Celesto (formerly SmolVM)
BB 71.8/100Celesto, formerly SmolVM, is an open-source Python SDK and CLI from Celesto AI that runs disposable Firecracker or QEMU microVMs on the owner's machine for agent code, browsers and desktops, with an optional paid Celesto Cloud.
Verdict Celesto runs each agent task in a local Firecracker or QEMU microVM with its own kernel, driven by a CLI with a stable JSON envelope and a Python SDK, free under Apache-2.0. It is pre-1.0, renamed from SmolVM on 19 September 2026, sends usage telemetry after a first-use notice, and leaves outbound networking open unless a mode is set.
Best for Local microVM sandboxes for agent code, browsers and desktops on Linux and macOS, with a path to a hosted cloud.
Strengths
- Apache-2.0, installs from PyPI with
celesto setupandcelesto doctor, and runs local microVMs with no account or key - Every
--jsonresponse has the sameok,command,exit_code,dataanderrorfields, with recovery commands in errors - Network modes
off,public(proxy that rejects private and metadata addresses) andrestrictedwith CIDR or domain allowlists
Weaknesses
- Version 0.1.13 and declared pre-1.0 in SECURITY.md, with the TypeScript SDK an alpha installed from a GitHub tarball
- Outbound network access is open by default, and Linux TAP mode does not block every private network or metadata service
- Usage telemetry to PostHog is on after a first-use notice, until switched off
Price $0.015 / session-hrAuth Nonex402 NoLocal
Full assessment · Against #1, Microsoft Execution Containers
boat
BB 71.8/100boat runs persistent Ubuntu virtual machines for AI agents, with SSH, Docker, a desktop, snapshots and forking, in data centres in Germany, Finland and France. It is driven through a REST API, Python and TypeScript SDKs and a CLI.
Verdict boat publishes an OpenAPI 3.1 contract with 123 operations, per-hour prices, scoped expiring keys and idempotent creates for full Ubuntu VMs in the EU. It has no security.txt, SLA or readable incident history, SOC 2 is in progress, and the trial needs a card.
Best for Long-lived, full Ubuntu VMs with Docker, a desktop and Chrome for coding agents, evals and products that give each user a sandbox, hosted in the EU.
Strengths
- Public OpenAPI 3.1 file with 123 operations, llms.txt and a Markdown copy of every docs page
- Per-hour prices from $0.018 to $0.20 by size and start limits per plan, published without login
- Scoped API keys with presets, expiry and per-sandbox limits
Weaknesses
- No security.txt or bug bounty, and SOC 2 is in progress
- No SLA, and the status page history could not be read
- The free trial needs a card, and agent sign-up still needs a person to claim the account
Price $0.036 / unitAuth API keyx402 NoLocal
Full assessment · Against #1, Microsoft Execution Containers
Cloudflare Sandbox SDK
BB 71.6/100TypeScript library for running sandboxed Linux containers from a Cloudflare Worker.
Verdict Each sandbox runs in its own VM with a separate filesystem, process space and network stack, and credentials can stay in the Worker. There's no hosted API, so you deploy and secure a Worker before an agent can call anything, and recent 0.12 releases fixed credential exposures without a published advisory.
Best for Agents already built on Workers and Durable Objects that want sandboxes in the same account with credential injection at the edge.
Strengths
- Each sandbox runs in its own VM with a separate filesystem, process space and network stack
- Outbound handlers hold credentials in the Worker and inject them, so the container never sees them
- Egress can be turned off or limited to a deny-by-default
allowedHostslist
Weaknesses
- No hosted API. You deploy and secure a Worker before an agent can call anything, and the starter has no auth
- 0.12.12 fixed bucket credentials readable inside the container, and earlier 0.12 releases fixed
credentialProxyboundary gaps, with no advisory published - Needs Workers Paid at $5 a month, with no card-free route
Price $0.072 / vCPU-hrAuth Nonex402 NoLocal
Full assessment · Against #1, Microsoft Execution Containers
Daytona
BB 70.8/100Sandboxes for agent code in container, Linux VM, Windows and GPU classes, driven by SDKs for Python, TypeScript, Ruby, Go and Java or a REST API.
Verdict API keys with per-action scopes let an agent create sandboxes without deleting them, and an SLA commits to 99.95% uptime. The container class shares the host kernel, only VM classes get their own, and Daytona fixed two High cross-tenant flaws in June 2026.
Best for Agents that need a choice of machine, including Windows desktops and GPUs, and operators who want least-privilege keys.
Strengths
- API keys with per-action scopes, so an agent can create sandboxes without being able to delete them
- Container, Linux VM, Windows and GPU sandbox classes behind one API
- Three public OpenAPI files, llms.txt and SDKs in five languages
Weaknesses
- The container class shares the host kernel. Only the VM classes get their own
- Full internet access and per-sandbox allow lists need Tier 3
- Platform code went private in June 2026, and the old repository's issues won't be answered
Price $0.0504 / vCPU-hrAuth API keyx402 NoHosted and local
Full assessment · Against #1, Microsoft Execution Containers
Maritime
B 68.9/100Maritime hosts long-lived AI agents, each in its own micro-VM with a persistent disk that sleeps when idle and wakes in about a second. Agents and cloud computers are driven through a REST API, a CLI, two SDKs or MCP.
Verdict Maritime hosts persistent agents and per-second sandboxes in micro-VMs, with a public OpenAPI file, scoped keys, retry hints and Markdown docs written for coding agents. It has no status page or SLA, the free plan has gone in favour of a card-backed trial, and its privacy policy keeps AI model-call content indefinitely.
Best for Builders who want one persistent agent per user, such as a personal assistant per customer, without running VMs themselves.
Strengths
- Public OpenAPI file, llms.txt and every docs page in Markdown.
- Per-second machine rates published without a login, from US$0.022 an hour for a 2 vCPU sandbox.
- Scoped, revocable API keys, short-lived end-user tokens and server-enforced egress rules per agent.
Weaknesses
- No status page or SLA.
- AI model-call content is kept indefinitely, including after account deletion, which the security page's deletion terms contradict.
- The free plan is gone for new accounts, and the 7-day trial needs a card.
Price $20 / moAuth API keyx402 NoHosted
Full assessment · Against #1, Microsoft Execution Containers
Head to head
- Microsoft Execution Containers vs Vercel Sandbox BB 77.1 vs BB 76.6
- E2B vs Microsoft Execution Containers BB 73.2 vs BB 77.1
- Amazon Bedrock AgentCore Code Interpreter vs Microsoft Execution Containers BB 72.4 vs BB 77.1
- DigitalOcean Managed Agents vs Microsoft Execution Containers BB 72.1 vs BB 77.1
- E2B vs Vercel Sandbox BB 73.2 vs BB 76.6
- Amazon Bedrock AgentCore Code Interpreter vs Vercel Sandbox BB 72.4 vs BB 76.6
- DigitalOcean Managed Agents vs Vercel Sandbox BB 72.1 vs BB 76.6
- Amazon Bedrock AgentCore Code Interpreter vs E2B BB 72.4 vs BB 73.2
- DigitalOcean Managed Agents vs E2B BB 72.1 vs BB 73.2
- Amazon Bedrock AgentCore Code Interpreter vs DigitalOcean Managed Agents BB 72.4 vs BB 72.1
Questions
What are the highest-rated code execution sandboxes for AI agents?
Microsoft Execution Containers has the highest benchmark score of the 27 ranked code execution sandboxes, 77.1 (BB). Vercel Sandbox is second with 76.6 (BB).
How many code execution sandboxes are agent-ready?
9 of the 27 ranked here grade BB or better, the bar for agent-ready on the Anchor benchmark.
Which code execution sandboxes accept x402 payments?
None of the ranked listings here accepts x402 for its main call yet.
Which of these code execution sandboxes is cheapest?
By published paid prices, Agent 37 Cloud, at $0.0011 per vCPU hour, the lowest of the 18 listings here with a paid price in this unit (free allowances aside). Plans, volume tiers and free allowances change the sum, so check the listing's price table.
How is this list ranked?
By the Anchor benchmark score out of 100, a weighted mean of the scored categories minus deductions for negative events, from public evidence re-checked as vendors change. Listings cannot pay for a place. The latest assessment behind this page is from 23 November 2026.
How this list is made
The order is the Anchor benchmark score, the same number as on each listing and in the top list. Each listing is graded from public evidence against the benchmark checklist, and the picks above are worked out from those grades, prices and facts. No listing pays for its place, and paid audits or listing help never change a score.
Full ranked table · 351 head-to-head comparisons · Best tools in every category