
Agent Safehouse
macOS-native sandboxing for local agents
About Agent Safehouse
Agent Safehouse is an open-source sandbox for macOS that lets you run a coding agent with permissions skipped without betting your home directory on it. You wrap the agent in a single command and the kernel, not the agent, decides what it can touch: read and write inside the working directory, read access to your installed toolchains, and everything else denied. It is a self-contained shell script with no build step and no dependencies beyond Bash and macOS, and it has been tested against most of the common agents.
Install it with Homebrew or download the single script, then prefix your agent command: safehouse claude --dangerously-skip-permissions. Safehouse grants read and write on the chosen working directory, the git root by default, plus read access to your installed toolchains, and the operating system denies the rest. An attempt to read your SSH private key returns Operation not permitted before the process sees any data, and other repositories are invisible. Add the provided shell function and every agent runs inside it without you having to remember.
- •Kernel-Enforced Limits - The operating system blocks the syscall before a file is touched, so the restriction does not depend on the agent respecting it.
- •Deny-First Access - Nothing is reachable unless granted: the working directory is read-write, toolchains are read-only, and SSH keys, cloud credentials and other repos are denied.
- •One Command, No Build - A single self-contained Bash script installed with Homebrew or curl, with no dependencies beyond Bash and macOS.
- •Works With Your Agent - Tested against Claude Code, Codex, OpenCode, Amp, Copilot CLI, Gemini CLI, Aider, Goose, Cursor Agent, Cline and others.
- •Safe by Default - Add the provided shell functions and every agent runs inside Safehouse automatically, with command claude as the deliberate bypass.
Developers who run coding agents with permissions skipped and want a real boundary rather than trust, and anyone whose machine holds SSH keys, cloud credentials or client repositories alongside the project an agent is working in. It is macOS only, so Linux and Windows users get nothing from it today, and it constrains where an agent can write, not what it does inside the directory you granted.
Pricing
- Free$0/mo























































