agent-sandbox vs sandbase-harness
Local AI agent sandboxes compared
agent-sandbox confines coding agents to a repository and controls their network access through a proxy. sandbase-harness provides a broader self-hosted runtime for agent sessions, tools, memory, and auditing across several sandbox environments.

agent-sandbox: Secure AI Coding Agents with Docker
Agent Sandbox runs AI coding agents in locked-down local containers, using Docker-compatible runtimes and a mitmproxy sidecar to control network access and keep injected secrets out of the agent container. It supports CLI and IDE devcontainer workflows, with Colima and Docker Engine on Apple Silicon as its target setup.

sandbase-harness: Run Self-Hosted AI Agents with Sandboxed Sessions
SandBase Harness is a local-first, self-hosted AI agent runtime and MCP bridge built with TypeScript for Node.js. It adds sandboxed sessions, memory, credential controls, audit and replay, and a local Console across local, Docker, Kubernetes, and self-hosted worker environments.
| agent-sandbox | sandbase-harness | |
|---|---|---|
| Language | Python | TypeScript |
| License | MIT | Apache-2.0 |
| Stars | 211 | 640 |
| Forks | 19 | 76 |
| Last analyzed | Oct 28, 2026 | Nov 6, 2026 |
Key differences
- agent-sandbox focuses on running coding agents in repository-scoped containers, while sandbase-harness provides runtime services such as persistent sessions, tool governance, and replay.
- agent-sandbox uses a mitmproxy sidecar and firewall to enforce network policy; sandbase-harness networking controls vary by backend, with limited-network enforcement supported for Docker, advisory for local processes, and unsupported for Kubernetes and self-hosted providers.
- agent-sandbox is written in Python and licensed under MIT; sandbase-harness is written in TypeScript and licensed under Apache-2.0.
- agent-sandbox documents Colima and Docker Engine on Apple Silicon as its target setup, while sandbase-harness supports local-process, Docker, Kubernetes, and self-hosted worker sandboxes.
- Both projects are early-stage; agent-sandbox describes its security model as best-effort, while sandbase-harness notes its short production track record and rapid change.
Choose agent-sandbox if you…
- want to limit a coding agent's filesystem access to a repository and control its network egress.
- prefer a CLI or IDE devcontainer workflow for supported coding agents.
- need proxy-side secret injection and are comfortable with a best-effort security boundary.
Choose sandbase-harness if you…
- need persistent agent sessions, audit trails, and replay alongside governed tool access.
- want to run agents on local, Docker, Kubernetes, or self-hosted worker infrastructure.
- need a local Console, MCP integration, or a TypeScript SDK for building agent runtimes.
Compare the numbers side by side, or add more projects
This comparison is generated with AI from the OSRepos analyses of both projects. Always check each project's repository and documentation before choosing.