Our take
Activeregular commits and releases- Activity
- 62
- Community
- 20
- Issues
- 74
- Pull requests
- 70
+4 stars in the last 30 days
- Closes issues faster than 81% of the projects we track
Agent Sandbox is an actively maintained, feature-rich approach to local agent isolation, but its early-stage warning and reliance on a highly concentrated contributor base call for a cautious rollout.
Good fit if
- You want local container isolation with both proxy-enforced network rules and a firewall against direct outbound access.
- Your workflow benefits from host-side secret injection and repository-scoped GitHub access.
- You can use a Docker-compatible runtime and are comfortable reviewing and maintaining sandbox policy files.
Look elsewhere if
- You need a mature project with development spread across a broader contributor base; most contributions currently come from one person.
- Your environment cannot run a Docker-compatible container runtime or you need a tighter boundary than the project’s explicitly best-effort local sandbox.
- You require supported JetBrains integrations for Gemini, OpenCode, Pi, or Hermes, which the project lists as unsupported.
All health signals
| Last commit | 2026-10-21 (7 days ago) |
|---|---|
| Commits, last 90 days | 68 |
| Releases, last 12 months | 7 (latest v0.17.1, 2026-09-07) |
| Contributors | 4 (top contributor: 94% of commits) |
| Issues closed, last 90 days | 3 (typically closed in 0 days) |
| Pull requests merged, last 90 days | 27 (typically merged in 0 days) |
| Project age | 9 months |
Checked on 2026-10-28 with the GitHub API.
Project history
Daily GitHub snapshots since Oct 7, 2026. History covers stars and forks; health signals are not tracked historically.
Stars
214Forks
19Change since Nov 14, 2026: 0 stars·0 forks
Overview
Agent Sandbox is a local development sandbox for AI coding agents, built around Docker-compatible containers and a mitmproxy sidecar. It limits filesystem access to the repository, routes network traffic through an enforceable policy, and injects secrets in the proxy so they are not exposed inside the agent container. The documented target is Colima and Docker Engine on Apple Silicon, though the project says other Docker-compatible runtimes should work.
It is aimed at developers and teams who want agents to work on real repositories with tighter limits on filesystem and network access. You can run agents through the agentbox CLI or use a devcontainer in VS Code or JetBrains, and switch between supported agents while preserving their state.
Key Features
- Restricts the agent container's filesystem mounts to the repository and project-scoped agent state.
- Enforces network egress through a mitmproxy sidecar, with a default-deny policy and request rules for hosts, schemes, methods, paths, and queries.
- Uses an iptables firewall to block direct outbound traffic that would bypass the proxy.
- Injects configured secrets at the proxy, keeping raw secret files out of the agent container.
- Preserves agent authentication and configuration in persistent state volumes, including when switching agents.
- Supports CLI and devcontainer workflows, with documented integrations for Claude Code, Codex, Gemini, OpenCode, Pi, Factory, Copilot, and Hermes.
Use Cases
- A developer wants to try an AI coding agent on a repository while limiting the agent's access to other local files and unrestricted internet access.
- A team needs agents to reach selected services, such as a repository-scoped GitHub API, without placing the corresponding token in the container.
- Developers who prefer a terminal can run an agent in the sandbox with
agentbox exec, while IDE users can work through a supported devcontainer. - Someone evaluating multiple coding agents wants to switch between them without reinitializing the project or losing per-agent state.
What you need
Detected in the repository
- Go 1.26.0 or newer (from go.mod)
- Automated checks on GitHub Actions
License in plain words
MITpermissive
- Commercial use: yes
- Modify and redistribute: yes
- You must keep: the copyright and license notice
- Share your changes: no
A summary, not legal advice: the LICENSE file is what applies.
Getting Started
On macOS with Colima and the Docker CLI installed, install agentbox, initialize a project, and start a shell in the sandbox:
curl -fsSL https://github.com/mattolson/agent-sandbox/releases/latest/download/install.sh | sh
agentbox init
agentbox exec
See the README for prerequisites, devcontainer setup, agent-specific instructions, and policy configuration.
Alternatives
- OpenShell: OpenShell applies policies to agent file, process, and network access, while agent-sandbox focuses on local containers with a mitmproxy sidecar for network and secret control.
- gh-aw-firewall: gh-aw-firewall targets agentic workflow commands in Docker with domain allowlists and sidecar-held credentials, while agent-sandbox supports local CLI and IDE workflows.
| Project | Language | License | Stars | Status |
|---|---|---|---|---|
| agent-sandbox | Python | MIT | 211 | Active |
| OpenShell | Rust | Apache-2.0 | 15.5k | Active |
| gh-aw-firewall | TypeScript | MIT | 150 | Active |
Considerations
The README warns that the project is in early-stage development and may introduce breaking changes. Activity is recent, with regular commits and releases, but the measured contributor base is small and highly concentrated; issue closures have been limited in the measured period. The security model is explicitly best-effort, not a guarantee against escapes. In devcontainer mode, IDE features and extensions create a separate control channel that is not fully removed by the proxy and firewall, so the project recommends CLI mode for the tightest boundary. The README also cautions that storing broad Git credentials inside the container can expose access to repositories beyond the current project; proxy-side injection and narrowly scoped tokens reduce that exposure.
Found this useful?
Share it with someone who would like agent-sandbox.