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 all 22 from the AgentScout directory.
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-18); 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): Open source · 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. Agent Governance Toolkit
Microsoft toolkit for policy enforcement, identity and sandboxing for AI agents.
Pricing (as stated): Open source · Mature

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

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

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

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

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

17. Moltis
Secure personal agent server in Rust with sandboxed execution.
Pricing (as stated): Open source · Active

18. Lyzr
Enterprise agent studio and framework for building secure AI agents.
Pricing (as stated): Freemium · Active

19. E2B
MCP & infraOpen source + cloudSecure cloud sandboxes for running agent-generated code.
Pricing (as stated): Open source + paid cloud · Mature

20. Modal
MCP & infraFreemiumServerless compute and sandboxes for AI workloads.
Pricing (as stated): Usage-based, free credits · Mature

21. Scalebrowser
Gives each agent its own isolated browser with a persistent identity for staying signed in.
Pricing (as stated): Paid · Active

22. CoreWeave Forge
evals & observabilityFreemiumOne product to run, observe, evaluate and post-train agents (W&B, OpenPipe, sandboxes).
Pricing (as stated): Free $0/mo; Pro from $60/mo; Enterprise custom · Newly launched
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?
22 tools match. This page shows the top 22. Pricing mix on this page: Open source (13), Open source + cloud (4), Freemium (4), Paid (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 22 tools we match to running code safely.
Related: All tools for running code safely · MCP & infra (10) · browser/computer use (4) · coding (3) · evals & observability (2)
By role: For developers · For DevOps and SRE engineers · For security engineers
All popular searches · AI agents by role · Free tools · Popular searches · AI agents by role · Newsletter archive
Best-of lists: Best MCP servers for Cursor · All best lists
Facts come from our directory listings; pricing is as each maker states it and can change. Check official sites before you choose.