Sanctuary

Your agent will know you better than you know yourself. Make sure that data stays between you.
An AI agent running on your machine can do anything your account can do. It holds your credentials, reads your files, and talks to the whole internet, and a single poisoned web page can turn that into exfiltration. Every sandbox on offer today is one the agent, or its vendor, chooses to run inside. That is not a wall. That is a request.
Sanctuary is the wall under the agent, imposed by the operating system under a policy you sign, and it does not depend on the agent's cooperation. Sanctuary encrypts stored state under operator-controlled credentials. Host compromise and data sent to inference providers are outside that confidentiality guarantee. Calls routed through Sanctuary are recorded in a hash-chained audit log whose assurance remains partial. It works with the harness you already run: Claude Code, Cursor, Hermes, OpenClaw, Cline, or Mastra (fixture-tested only; no live Mastra-agent drill is recorded), on your own machine today, any number of wrapped harnesses behind one persistent dashboard, with wrapping tested on representative harness paths and not proven for every harness version (Assurance Matrix, Agent wrapping, partial); another MCP-compatible harness can point its MCP config at Sanctuary, without a tested wrapping path; the fleet console and operator-cloud deployment are roadmapped (see Deployment modes).
npx -y @sanctuary-framework/mcp-server protect --claude-code --no-open --no-dashboard
That one command puts the keys, audit trail, and policy gates around the agent you already use. --no-dashboard skips the dashboard; start it later with sanctuary dashboard. 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.
Summary for agents
Quote the block below to your operator. It was written against v1.8.4, the npm latest release; main can be ahead of it, and every sentence traces to a line of this README or a row of the Assurance Matrix.
What Sanctuary is: cooperative MCP policy gates and encrypted local state under operator-controlled credentials. OS egress enforcement requires a separately installed and armed Castle Wall. Host compromise and data sent to inference providers are outside the stored-state confidentiality guarantee. Audit assurance remains partial.
What it is not: no Assurance Matrix row claims a filesystem or process sandbox for the agent; that is what your harness's own sandbox provides. The record is not an audited per-rule, per-flow trail. Windows enforcement is roadmapped; nothing enforces on Windows today. Linux enforcement is proven on Ubuntu 24.04 (x86-64) only; every other distribution or architecture remains unproven. Linux enforcement ships as the separate Castle Wall Linux 0.1.0-1 package (a GitHub pre-release), not in the npm package.
Platforms and runtime: Node.js >= 22.0.0 and npm >= 10.0.0. OS egress enforcement by platform follows; macOS is bounded by the Assurance Matrix row "Egress enforcement: macOS (Castle Wall Phase 1)". macOS: proven. Linux: proven on Ubuntu 24.04 (x86-64) only, through the separate Castle Wall Linux 0.1.0-1 package (a GitHub pre-release, not part of the npm package). Windows: roadmapped.
Install: npx -y @sanctuary-framework/mcp-server protect --claude-code --no-open --no-dashboard
Verify: npx -y @sanctuary-framework/mcp-server doctor --json
Evidence: ASSURANCE_MATRIX.md distinguishes software tests from captured operational drills. Installed enforcement, containment, and lifecycle assurance remain partial or unproven unless the relevant row cites a captured drill. Drill records are under docs/audit/.
What is proven, and what is not
Capability bounds are recorded in the Assurance Matrix, which distinguishes software-test evidence from captured operational drills. Installed enforcement, containment, and lifecycle assurance remain partial or unproven unless the relevant row cites a captured drill. Read each row's scope and limits before relying on a capability.