Sanctuary Framework — Security skill for Claude Code
Open-source security for AI agents: kernel-enforced egress control on macOS and Linux, keys only the operator holds, tamper-evident audit.
How to install Sanctuary Framework
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open eriknewton/sanctuary-framework and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Sanctuary Framework does
Open-source security for AI agents: kernel-enforced egress control on macOS and Linux, keys only the operator holds, tamper-evident audit. One command protects Claude Code, Cursor, or any MCP harness. No vendor in the path.
Alternatives in Security
- Install — Install the Damage Control security hooks system 456 ★
- Claudit Sec — Security audit tool for Claude Desktop and Claude Code on macOS — single-command visibility into MCP servers 115 ★
- Kali Pentest — Kali Linux penetration testing skill for AI agents (Claude Code, OpenClaw, Hermes Agent) 100 ★
README
Sanctuary
[](https://github.com/eriknewton/sanctuary-framework/actions/workflows/ci.yml) [](https://www.npmjs.com/package/@sanctuary-framework/mcp-server) [](LICENSE)
**Your agent will know you better than you know yourself. Make sure that stays between you.**
Sanctuary is the open source standard for secure, private AI: operating-system enforcement is live on macOS today; Linux and Windows are not live enforcement yet. Your data stays under your own keys, with current portability bounds called out in the Assurance Matrix. Any agent, local or cloud, solo or fleet. One command to get started. One dashboard to secure them all.
Sanctuary wraps any AI agent, on your machine or in your cloud, so actions flow through policy gates, platform-proven walls, operator-held keys, and an audit trail you can actually read. One dashboard manages the security and privacy of every agent you run, whether that is one agent on your laptop or a whole fleet across your machines. Your data, and the reputation your agents build, stay on hardware you control, with exit-bundle gaps still open for dashboard export, skipped import counters, and rotated-key import.
Already running Claude Code, Cursor, Hermes, OpenClaw, Cline, or Mastra?
npx @sanctuary-framework/mcp-server protect --claude-code
That one command puts the keys, audit trail, policy gates, and dashboard around the agent you already use. The operating-system wall is a separate privileged arming step on macOS through the signed app and extension path. See the [Castle Wall macOS install and arm guide](docs/castle-wall-macos-install.md) for the customer path from download to verified armed state. You keep your harness; Sanctuary adds the protection underneath.
Related Skills
Openmoat
Security for AI coding agents. One policy controls what Claude Code, Codex and Cursor can run, read, write and
Trustgate
Deterministic policy enforcement and a tamper-evident audit log for AI agents. Decides what your agent may act
Loxodonta
A tamper-evident security record for AI agents. Every tool call leaves a hash-chained receipt, and one command
ContAIned
A governed coding agent CLI built on Claude Code. Runs inside an isolated Docker container with operator-contr
Orca Agent Cleanup
Safely audit and quarantine Orca-installed agent skills, hooks, and CLI residue on Windows, macOS, and Linux.
AI Agent Audit
Read-only audit of a local developer machine for AI-agent-related security risks (Linux + macOS). Ten modules
Related Agents
Reality Checker Tram
Tier-2 Harness Auditor for Team RAM. Cross-session, cross-project health audits. Verify invariants are enforce
Data Recovery
Use PROACTIVELY and automatically — do not wait to be asked — as the operator's cross-platform DATA RECOVERY g
Byok Token Security Expert
BYOK (Bring-Your-Own-Key) and OAuth token security expert. Deep on cross-platform OS keychain integration (mac