Run Claude Code in a sandbox: best open-source tools (2026)
Our pick
Start with nono if you want to sandbox Claude Code on your own computer with kernel-enforced limits. It is a single binary that needs no root privileges, installs with brew install nono or a one-line script, and runs on macOS, Linux and Windows through WSL2. It is Apache-2.0 licensed. The table shows its last commit and latest release, and how the other tools compare.
Best for
- A file-access sandbox on a Mac
eugene1g/agent-safehouseUses the macOS sandbox-exec tool with a deny-first policy, so an agent can only reach the files you allow. It installs with Homebrew.
- Agents running in Docker or Podman containers
dtormoen/tsk-tskRuns Claude Code or Codex in isolated containers, sends their traffic through a proxy with a domain allowlist, and fetches the finished branch back to your repo.
- A disposable virtual machine on a Mac
arcboxlabs/arcboxIts abctl claude command builds a sandbox microVM and attaches your terminal to Claude Code inside it. Installs with Homebrew.
- A sandbox you define in a file
gominimal/minimalEach box is built from a minimal.toml that lists the tools, files and credentials the agent may use. Claude Code, Codex, OpenCode and Pi are packaged for it.
- A virtual machine you can embed or script
smol-machines/smolvmReal VMs with their own kernel that boot from any OCI image. It installs with Homebrew or a script on macOS and Linux.
The repos compared
Checked on Nov 24, 2026: the oldest day any repo in the table was last read from GitHub.
| Repo | Stars | Last commit | Latest release | Licence | Needs |
|---|---|---|---|---|---|
| nolabs-ai / nono A single-binary sandbox and runtime security tool for coding agents on macOS, Linux and WSL2. | 5,176 GitHub (opens in new tab) | Active Dec 1, 2026 | v0.82.0, Nov 14, 2026 | Apache-2.0 | |
| eugene1g / agent-safehouse Sandboxes coding agents on macOS with deny-first policy profiles built on sandbox-exec. | 2,163 GitHub (opens in new tab) | Active Nov 28, 2026 | v0.13.1, Nov 12, 2026 | Apache-2.0 | |
| dtormoen / tsk-tsk Runs Claude Code or Codex in Docker or Podman containers and returns their work as git branches. | 171 GitHub (opens in new tab) | Active Jul 29, 2026 | v0.10.9, Jul 29, 2026 | MIT | Rust - Rust toolchain and Cargo; Docker or Podman - Container runtime; Git - Version… |
| arcboxlabs / arcbox A Mac container and microVM runtime with a sandbox command for running Claude Code. | 4,242 GitHub (opens in new tab) | Active Nov 5, 2026 | v0.11.3, Nov 3, 2026 | Apache-2.0 | macOS on Apple Silicon. Intel support is in progress.; Sandboxes (and therefore abctl… |
| gominimal / minimal Runs coding agents in an isolated box built from a minimal.toml file, on macOS and Linux. | 244 GitHub (opens in new tab) | Active Dec 1, 2026 | release-9eae1f97, Nov 26, 2026 | Apache-2.0 | |
| smol-machines / smolvm Small virtual machines with their own kernel that boot from OCI images and can be saved and copied. | 7,270 GitHub (opens in new tab) | Active Dec 1, 2026 | v1.37.7, Nov 26, 2026 | Apache-2.0 | |
| instavm / coderunner A local sandbox for AI agents on Apple Silicon Macs, with an MCP server. | 902 GitHub (opens in new tab) | Active Dec 1, 2026 | - | Apache-2.0 | |
| anthropics / sandbox-runtime Limits a process's file and network access at the OS level, without a container. | 7,362 GitHub (opens in new tab) | Active Nov 12, 2026 | v0.0.83, Nov 13, 2026 | Apache-2.0 |
Install commands
Copied from each repo. Read its setup steps before you run anything.
nolabs-ai/nono
brew install nonoeugene1g/agent-safehouse
brew install eugene1g/safehouse/agent-safehouse Questions
Can I run Claude Code in a sandbox?
Yes. nono works with Claude Code, Codex and other agents, tsk-tsk runs Claude Code in containers, and ArcBox starts it inside a microVM with abctl claude.
What is the difference between a sandbox and Docker?
They are different ways to isolate an agent. tsk-tsk uses Docker or Podman containers. ArcBox and smolvm use microVMs, which are small virtual machines with their own kernel. Agent Safehouse and nono instead restrict what files and resources the agent process can reach.
Does a sandbox make an AI agent completely safe?
No. Agent Safehouse is a hardening layer, not a perfect security boundary against a determined attacker. CodeRunner's isolation reduces risk but does not prevent all data loss or exfiltration.
Which of these work on Windows?
nono supports Windows through WSL2. smolvm ships a Windows build that needs the Windows Hypervisor Platform. Agent Safehouse and ArcBox are for macOS, and CodeRunner needs a Mac with Apple Silicon.
