Claude Code’s sandbox alternatives: 3 tools compared
3 alternatives to Claude Code’s sandbox, listed A to Z with price, what each does and who it is best for. Sources checked November 25, 2026.
Short answer
If you use Claude Code on a Mac, turn on its built-in sandbox first with /sandbox. If you want each agent in a stronger boundary of its own, use Docker Sandboxes. If you need to wrap other agents or processes in an operating-system sandbox from the command line or code, use sandbox-runtime, and remember it is a beta research preview. Excellent is not on this list as a replacement: it works on top of the sandbox settings of Claude Code and Codex.
What Claude Code’s sandbox is
Claude Code’s sandbox limits where the agent’s commands can write and which hosts they can reach. On a Mac it uses Apple’s Seatbelt framework, and it is off until you turn it on with /sandbox. People look for alternatives when they run other agents, want a stronger boundary, or need to wrap processes that are not Claude Code.
The tools compared
These tools are listed A to Z. We did not rank them: the table shows the facts, and the “Best for” line says who each one suits.
| Tool | Best for | Isolation | Price | Network default | Status |
|---|---|---|---|---|---|
| Claude Code’s built-in sandbox (the tool this page starts from) | Claude Code users who want the vendor’s own sandbox with nothing extra to install | Operating-system sandbox (Seatbelt on a Mac) | Part of Claude Code; the page lists no separate cost | No direct route out; a proxy checks each host against an allowed list that starts empty | Off by default 1 |
| Docker Sandboxes | A stronger boundary: each agent in its own microVM | microVM with its own Docker daemon, filesystem and network | The sbx CLI and local compute are free; cloud compute is pay-as-you-go | Network policy decides which destinations the sandbox can reach | Needs sbx and a Docker sign-in; the install page lists macOS 14 or later and Apple silicon 3 4 5 6 |
| sandbox-runtime (srt) | Wrapping any process, agent or MCP server in an operating-system sandbox from the command line or code | Operating-system sandbox, no container (sandbox-exec with Seatbelt profiles on a Mac) | Free, Apache-2.0 | All access denied unless a domain is in allowedDomains | Beta research preview; settings formats may change 2 |
Claude Code’s built-in sandbox
Best for: Claude Code users who want the vendor’s own sandbox with nothing extra to install
Built on the open source sandbox-runtime package. Writes are limited to the working directory, a temp directory and folders you add, while reads cover the whole computer except denied directories.
Pros
- Nothing extra to install on a Mac.
- Supported with the agent.
- Choice of auto-allow or regular permissions.
Cons
- Claude Code only.
- Reads are open by default, including ~/.ssh and ~/.aws/credentials unless denied.
- docker commands fail inside the sandbox unless you exclude them, and tools such as gh and terraform may fail TLS checks.
Docker Sandboxes
Best for: A stronger boundary: each agent in its own microVM
Docker Sandboxes run AI agents in isolated microVMs, managed with the sbx command-line tool. Each sandbox has its own Docker daemon, filesystem and network, and sees only the workspace you share, which is mounted read-write by default.
Pros
- Strong boundary: the agent sees only the workspace.
- Clone mode gives the agent a private git clone.
- Local compute is free.
Cons
- Needs a Docker sign-in.
- The workspace is mounted read-write unless you use clone mode.
- On a Mac, the install page lists Apple silicon.
sandbox-runtime (srt)
Best for: Wrapping any process, agent or MCP server in an operating-system sandbox from the command line or code
An Apache-2.0 tool from Anthropic that restricts the filesystem and network access of processes at the operating-system level, without a container. Claude Code’s sandbox is built on it.
Pros
- Works with any process, not only one agent.
- Open source, usable as a command or a library.
- Writes are denied by default.
Cons
- A beta research preview.
- Reads are allowed by default unless you deny them.
- You write and maintain the settings file.
Where Excellent fits
Excellent is not a sandbox. With Pro, its sandbox step writes your file and folder rules into the sandbox settings of Claude Code and Codex, so that agent’s own sandbox enforces them. Use one of the tools above for the boundary itself, and use Excellent to see what ran, to carry the same rules across agents, and to read what happened in sessions before you turned a sandbox on.
About Excellent
Excellent for Mac is an app for the Mac. It reads the logs your AI agents already keep and shows what they did: your email and keys in places they shouldn’t be, pushes to main, and broken rules. It runs on Macs with Apple silicon and macOS 14 or later. The site’s one line on where it runs: Excellent for Mac today; a version for Linux servers comes next, then Windows.
Scanning is free and needs no account. The app reads the logs of Claude Code, Codex, Grok Build, Cursor, GitHub Copilot CLI, Gemini CLI, Qwen Code, Factory Droid and Devin. The free scan, a script that needs nothing installed, reads Claude Code, Codex, Grok Build, GitHub Copilot CLI, Gemini CLI and Qwen Code. Pro costs $6 a month or $60 a year, and is sold in the US for now. With Pro, a live check reads each action before it runs and blocks it or asks you first, in the agents listed on the agents page.
Its records stay on your Mac. There are no analytics unless you turn on usage stats, which send counts, never your logs. Crash and hang reports are sent only if you turn them on, and they never include your logs.
Read more: pricing, the agents it works with, privacy and security, or download it.
Sources
Every fact about another tool comes from a page we fetched on November 25, 2026. Prices and features change, so check the vendor before you buy.
- Claude Code docs: Sandboxing
- sandbox-runtime on GitHub
- Docker Sandboxes docs
- Docker Sandboxes: install
- Docker Sandboxes: architecture
- Docker Sandboxes: security