Who it is forA developer who wants Claude Code to edit a project, but does not want it to reach the rest of their disk or keychain.
The problemA coding agent running directly on your laptop can read anything your user account can read, including credentials and other repositories.
The outcomeClaude Code runs in its own sandbox against one project folder, and you can stop it or delete the sandbox when you finish.
What you need first
- A Mac with Apple silicon on macOS 14 or newer, or a Linux host on x86-64 or arm64 (Intel Macs are not supported)
- Homebrew on macOS, or the Linux install path from brig.sh/docs/install
- A terminal and a project folder you want the agent to work in
- An Anthropic account if you want to run Claude Code inside the sandbox
Steps
brew tap brig-sh/brigbrew trust brig-sh/brigbrew install --cask brigbrig doctorbrig run claude ~/code/demo
Prompt for your agent
Using the brig-sh/brig repository, install Brig on this Mac and run `brig doctor` to check the host. Then start a sandbox with `brig run claude <project path>` and report the output of brig doctor and whether the sandbox started. Verify that the project path is the only folder the README says is mounted at /work.
Caveat. The project you name is mounted read-write, so the agent can change or delete any file under it, and Claude Code asks you to log in inside the sandbox.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for brig-sh/brig and "Run Claude Code on one project inside a sandbox"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer