Prerequisites
Agent Safehouse requires macOS with
sandbox-exec (available on all modern macOS versions).- macOS (tested on macOS 11+)
- Bash or Zsh shell
- curl for downloading the script
Install the CLI
1
Create local bin directory
Create a directory for local executables if it doesn’t exist:
2
Download safehouse
Download the self-contained script from GitHub:
The
dist/safehouse.sh file is a single executable containing assembled policies and runtime logic.3
Make executable
Set execute permissions:
4
Add to PATH
Ensure Reload your shell:
~/.local/bin is in your PATH. Add to ~/.zshrc or ~/.bashrc:5
Verify installation
Confirm safehouse is accessible:
Verify Sandbox Works
Test that the sandbox denies access to sensitive paths:Shell Functions (Recommended)
Shell functions provide convenient shortcuts and machine-specific defaults. Add to~/.zshrc or ~/.bashrc:
With shell functions, you can type
claude instead of safehouse claude --dangerously-skip-permissions.Bypass Shell Functions
To run the unsandboxed version when needed:Optional: Local Overrides
For machine-specific policy exceptions (e.g., shared folders, team mounts), create a local override file:1
Create config directory
2
Create local overrides file
Create
~/.config/agent-safehouse/local-overrides.sb:Use Sandbox Profile Language (
.sb) syntax for custom rules. See Policy Architecture for details.3
Reference in shell function
Your shell function (from above) should include:
Optional: Claude Desktop Launcher
For sandboxing the Claude Desktop app (not CLI), use the pre-built launcher:1
Download launcher
2
Launch from Finder
Double-click the
.command file in Finder to launch Claude.app sandboxed.The launcher runs:Update Safehouse
To update to the latest version, re-download the script:Next Steps
Quick Start
Get your first sandboxed agent running in 5 minutes
Usage Guide
Learn common patterns and CLI options