AI agent sandboxes and infrastructure
Agents that write and run code need somewhere isolated to do it, so a mistake or a bad package can't touch your own machine or data. Sandbox services give each agent run its own short-lived computer. Platforms like AgentRun sit on top of an existing agent harness and handle long runs, recovery and tracking.
Sandboxes and agent infrastructure in the directory
- E2B: Secure cloud sandboxes for AI-generated code. Official site
- Daytona: Fast, secure infrastructure for running AI code. Official site
- Modal: Serverless compute and sandboxes for AI workloads. Official site
- AgentRun: Open-source (Apache-2.0) alpha platform that adds durable execution, self-improvement, a control plane and on-demand computers on top of harnesses like Pi, Claude Code, Codex and OpenCode. Official site
- Coral: Open-source (Apache-2.0), self-hosted gateway between agents like Claude Code and the systems they touch. Agents call tools by writing short TypeScript programs and can save working ones as custom tools; every call is checked against your Allow/Ask/Block policy before credentials are added. Official site
- Eclipse Enclave: Open-source (MIT), vendor-neutral runtime from the Eclipse Foundation that runs coding agents like Claude Code, Codex and OpenCode in isolated containers, each with its own git worktree and a network gateway limited to an allowlist. Sessions can be paused and resumed. 1.0 released Nov 19, 2026. Official site
- Stroq: Open-source (Apache-2.0) local security tool for coding agents. Scans past Claude Code, Codex and Cursor sessions for known secrets, then adds hooks that check each tool call before it runs, deny curl | sh and outbound calls carrying a known secret, and trace risky commands back to the text that prompted them. No account, no telemetry. Run with npx @stroq/cli. Official site
- Brickie: Open-source (MIT) durable sandboxes for agents that run in your own cloud or Kubernetes cluster, from the Hatchet team. Each session is a container with a shell and workspace (Kata, gVisor or AWS Nitro runtimes); every workspace change is snapshotted to object storage so you can fork or resume, and each call is a retryable Hatchet task. In beta. Official site
- devvm: Open-source (MIT) tool that gives each project its own local VM sandbox (via Lima) with the right toolchain, ready for you or a coding agent like Claude Code, Codex or opencode. One command to start; allowlist network by default, agent secrets kept on your machine, .git protection on macOS. Runs on macOS and Linux. Official site
- pansy: Local gateway and desktop app (Linux, macOS, Windows, written in Rust) that lets Claude Code, Codex, Gemini CLI, OpenCode and ~50 other coding agents use any provider's models, translating between Anthropic, OpenAI and Gemini APIs, with key and subscription failover when quotas run out. MIT; runs entirely on your machine. Official site
Things to check before you pick one
- Isolation. Check how each run is separated from others and from your own systems, and what network access it gets.
- Start-up time and limits. Look at how fast a sandbox starts, how long it can run and what it costs once you pass the free tier.
- Which agents it works with. Some tools are SDKs you call from your own code; others wrap ready-made agents like Claude Code or Pi.
- Self-hosting. Open-source options can run on your own servers if your code can't leave them.
Related guides
- AI coding agent security tools
- AI agent frameworks for building your own agents
- Cloud AI coding agents that open pull requests
- AI coding agents that run in your terminal
- All agent infrastructure tools
Missing a tool? Submit it for free.