I want to lock down AI coding agents on my own Mac.
Agent Safehouse
A macOS-only sandbox that wraps local AI coding agents in a kernel-enforced deny-first policy. Single shell script, zero dependencies, uses Apple's built-in sandbox-exec.
What it does well
- Kernel-level enforcement on macOS via sandbox-exec, not a wrapper or proxy
- Zero dependencies, single self-contained shell script
- Tested against major coding agents including Claude Code, Codex, Cursor, Gemini CLI, Cline, and Aider
- Open source under Apache 2.0
What it does not cover
- macOS only - does not work on Linux or Windows
- Designed for individual developer machines, not teams or shared environments
- No consent UX, organisation-wide policies, or audit trail you can share with a security team
- No spending controls for agent API usage
- The author describes it as a hardening layer, not a security boundary against a determined attacker