Sandboxes for AI agents to run code (2026)
Sandboxes and isolated runtimes where agents can run code and tools away from your machine and data. Here are the top 25 of 61 from the AgentScout directory.
Updated
How we picked and ranked: tools are matched by category, the pricing each maker states and what each tool says it does. They are ranked by GitHub stars as recorded on each listing (link checks 2026-10-21); tools without a tracked repo follow, by listing maturity. No paid placements.

1. Deer Flow
ByteDance's open-source long-horizon agent harness that researches, codes and creates using sandboxes, memory and sub-agents.
Pricing (as stated): Open source · Mature

2. Context Mode
Context window optimizer for coding agents that sandboxes tool output and persists session memory.
Pricing (as stated): Source-available + cloud · Mature

3. Cua
Open-source infrastructure for computer-use agents: sandboxes, drivers across operating systems and benchmarks.
Pricing (as stated): Open source + cloud · Mature

4. ego lite
Free macOS browser where Claude Code or Codex run automation tasks in their own isolated Spaces next to your tabs, reusing your logged-in sessions through an agent skill.
Pricing (as stated): Freemium · Mature

5. NVIDIA OpenShell
Sandboxed runtime for autonomous agents with declarative YAML policies on file, network and credential access.
Pricing (as stated): Open source (Apache 2.0) · Active; part of newly announced Open Agent Safety Platform

6. OpenSandbox
Secure, fast sandbox runtime for AI agents to run code.
Pricing (as stated): Open source · Mature

7. CubeSandbox
Lightweight, concurrent sandbox for running AI agent code securely.
Pricing (as stated): Open source · Mature

8. Open SWE
LangChain's asynchronous coding agent that takes work from GitHub issues, Slack or Linear, implements it in an isolated sandbox and opens a pull request.
Pricing (as stated): Open source · Mature

9. microsandbox
Local-first microVM runtime for running untrusted agent code safely.
Pricing (as stated): Open source · Mature

10. Steel
Open-source browser API and sandbox for AI agents to control web browsers at scale.
Pricing (as stated): Open source + cloud · Mature

11. smolvm
Portable, branchable virtual machine for running agents safely on your computer.
Pricing (as stated): Open source · Mature

12. Agent Governance Toolkit
Microsoft toolkit for policy enforcement, identity and sandboxing for AI agents.
Pricing (as stated): Open source · Mature

13. Fragments
E2B's open-source Next.js template for AI-generated apps, like Claude Artifacts or v0, with generated code run in secure E2B sandboxes.
Pricing (as stated): Free and open source (Apache-2.0); needs an E2B API key and a model provider key · Mature

14. AIO Sandbox
All-in-one Docker sandbox for AI agents that combines a browser, shell, files, MCP, VS Code Server and Jupyter in one container.
Pricing (as stated): Free and open source (Apache-2.0) · Mature

15. agentOS
A lightweight operating system for agents from Rivet that runs coding agents and their tools inside fast WebAssembly sandboxes with a file system, processes and networking, so you can spin up thousands cheaply.
Pricing (as stated): Free and open source; managed hosting through Rivet Cloud. · Active

16. Rakazo
Self-hosted personal AI agent and persistent teammate for web, desktop, iPhone and Android, with your own choice of model and computer sandbox.
Pricing (as stated): Open source · Active

17. nono
Zero-trust sandboxing for agent runtimes.
Pricing (as stated): Open source · Active

18. Judge0
Sandboxed code execution system for running untrusted code from people and AI.
Pricing (as stated): Open source + cloud · Active

19. Agent Sandbox (Kubernetes)
A Kubernetes project that adds a Sandbox resource for running isolated, stateful agent workloads such as code execution and browsers, with warm pools and fast startup on your own cluster.
Pricing (as stated): Open source · Active

20. ArcBox
Runs AI agents on isolated machines with their own kernel, filesystem and network.
Pricing (as stated): Open source · Active

21. HolmesGPT
CNCF sandbox SRE agent that investigates alerts and incidents.
Pricing (as stated): Open source · Active

22. OneCLI
Sandboxed agent harness for teams with secure credential handling.
Pricing (as stated): Open source · Active

23. Omnara
Open-source managed agent platform, a self-hostable alternative to Claude Managed Agents and the OpenAI Agents API, with tools, secrets and sandboxes.
Pricing (as stated): Open source + cloud · Active

24. forkd
MicroVM sandbox runtime for AI agent fan-out that forks KVM-isolated child VMs from a warm snapshot in milliseconds.
Pricing (as stated): Open source · Active

25. Moltis
Secure personal agent server in Rust with sandboxed execution.
Pricing (as stated): Open source · Active
FAQ
What are the best AI code sandboxes?
Ranked by tracked GitHub stars, the top AI code sandboxes in our directory are Deer Flow, Context Mode, Cua, ego lite, NVIDIA OpenShell. Stars measure popularity, not fit, so compare a few against your own task.
How many AI code sandboxes does AgentScout list?
61 tools match. This page shows the top 25. Pricing mix on this page: Open source (18), Open source + cloud (5), Source-available + cloud (1), Freemium (1).
How much do these tools cost?
Pricing is what each maker states on their site. Open-source tools are free to self-host but may need a paid model API key or offer paid cloud plans; freemium tools have a free plan with limits. Check each official site.
Where can I see every tool for running code safely?
Our task page lists all 61 tools we match to running code safely.
Related: All tools for running code safely · sandboxes & code execution (22) · coding (9) · browser/computer use (5) · MCP servers (5)
By role: For developers · For DevOps and SRE engineers · For security engineers · For startup CTOs
All popular searches · AI agents by role · Free tools
Best-of lists: Cursor alternatives · All best lists
Related categories: Sandboxes & code execution · Coding · Browser/computer use
Facts come from our directory listings; pricing is as each maker states it and can change. Check official sites before you choose.