AI coding agents run with your permissions: your ~/.ssh, cloud credentials and every project on your disk. And every package they install runs scripts from strangers.
agent-shadow is an open-source CLI for macOS 26+ that runs each agent session in its own lightweight Linux VM, using Apple's container runtime.
The VM sees one project folder: not your home folder, keys, Keychain or other projects
Runs any CLI agent or tool: Claude Code, Codex, Antigravity, opencode, or a shell
Toolchains are installed once with mise and shared read-only, so an agent can't tamper with them for other projects
Each project keeps its own agent logins and history
--isolated projects get no direct internet; macOS asks you before each new host
After each session it lists changed files that can run code on your Mac (git hooks, .envrc, package.json scripts)
Install with Homebrew:
brew tap hdandekar/agent-shadow https://github.com/hdandekar/agent-shadow
brew trust --formula hdandekar/agent-shadow/agent-shadow
brew install agent-shadow
Built with