The project's README from github.com/brig-sh/brig. As one markdown file: README.md.
Brig runs a coding agent, such as Claude Code, inside a microVM on your own machine.
The agent gets a kernel and a home directory of its own, and works on the one project you name. It does not see the rest of your disk, your keychain or your SSH agent. So you can let it work without approving each command, and the only host files it can change are that project and its own home.
| Host | Supported |
|---|---|
| Mac, Apple silicon, macOS 15 or newer | Yes |
| Mac, Apple silicon, macOS 14 | Yes, with BRIG_HYPERVISOR=vz BRIG_NETWORK=shared set for each run |
| Intel Mac | No |
| Linux, x86-64 or arm64, with KVM | Yes |
On macOS, install with Homebrew:
brew tap brig-sh/brig
brew trust brig-sh/brig
brew install --cask brig
On Linux, install Brig and its runtime for the whole machine. This needs root:
curl -fsSL https://raw.githubusercontent.com/brig-sh/brig/main/install.sh | sudo sh
After this install, run every brig command as root, for example
sudo brig doctor. Install covers a Mac without Homebrew,
a Linux install for one user without root, and a build from source.
Use a new, empty directory as the project, because the agent can change any file in it.
brig doctor # check the host
mkdir -p ~/code/demo
brig run claude ~/code/demo # start a sandbox and run Claude Code in it
The first run downloads the guest image and the boot assets. Claude Code
then asks you to log in inside the sandbox, so you need an Anthropic
account. With no account, run
brig run ubuntu ~/code/demo instead. It opens a root shell in the sandbox
and needs no login.
The agent starts in /work/demo, which is ~/code/demo on the host. Ask it
to create a file there, then exit the agent. The file is in ~/code/demo on
the host.
The sandbox keeps running after the agent exits, so the next
brig run claude starts at once. When you are done:
brig stop claude # stop the sandbox, keep its guest home
brig rm claude # remove the sandbox and its guest home
brig stop and brig rm do not touch ~/code/demo. Delete it yourself when
you no longer need it. Quickstart shows the same steps
with the output of each.
.git
included, and git on the host runs the hooks named there. Check them before
your next git command. See
What the host runs from the project.brig info claude
lists what a run forwards, by name.hvi backend, a new
sandbox gets a network of its own, away from other sandboxes. To limit
what it reaches, bind an egress policy. Brig enforces
a policy on those two run paths and refuses a policy-bound run elsewhere.ubuntu, with a warning, and it stops when one of its own
images fails the check. BRIG_VERIFY=require refuses every image it
cannot verify.Security states each limit in full.
The documentation index lists every page. The site brig.sh/docs has the same documentation, edited for the web.
Brig has not reached 1.0, and a minor release can make breaking changes. Stability lists what you can script against, and Non-goals lists what Brig will not do.
brig telemetry off turns it off. See Telemetry.