Installation

The Mac Mini has been out of the box maybe four minutes. Tommy is already sitting on top of it like he personally financed the hardware. (He has audited every Mini that ever ran Sanctum and rejected zero — generous grading curve, though the cat has never missed.) Your terminal is open, the cursor is blinking, and you’re about to hand a sandwich-sized puck the keys to the entire haus: lights, family photos, and the AI that used to courier your private thoughts to northern Virginia. Quick spoiler before we start: a backup you’ve never restored is just fan fiction, and most smart hauses run exclusively on fan fiction. Not yours. Not tonight.
Want the four-step speedrun? Jump to Quick Start — same installer, zero director’s commentary. Stay here for the full autopsy: edge cases, troubleshooting, and a source-tree appendix for the sickos planning to edit the renderer themselves.
The canonical install path
Section titled “The canonical install path”Sanctum ships through the Homebrew tap at Ogilthorp3/homebrew-sanctum, installing the sanctum-cli Python package that orchestrates AI keys, network pairing, cloud backup, and a restore canary.
-
Install Homebrew if missing.
Terminal window /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Homebrew installs under
/opt/homebrew/and asks once for your administrator password (Apple creating/opt/directories, not Homebrew getting nosy). Confirm withbrew --version(Homebrew 5.x.x). -
Install
sanctum-clifrom the tap.Terminal window brew install ogilthorp3/sanctum/sanctum-cliThis installs Python 3.12 and
resticif missing, builds a private venv under Homebrew’slibexec, installssanctum-cliand its 66 SHA-256-verified dependencies offline (PIP_NO_INDEX=1), and symlinks/opt/homebrew/bin/sanctum. (Alternatively,curl -fsSL https://sanctum.run/install.sh | bashautomates Steps 1–2 plus the signed Node.js Foundation.pkg.)Confirm:
Terminal window sanctum --helpYour first eight verbs are
status,doctor,onboard,backup,cloud,chat,agent, andconfig; the rest stay out of your way until needed. -
Run one-shot onboarding.
Terminal window sanctum onboard --recipe familyOnboarding walks five chapters — Welcome → Your AI → Your Network → Your Data → You’re Alive — lighting green checks only on verified steps:
- Your AI stores Claude and Gemini credentials in macOS Keychain. Skip both if you only want the local Dragon.
- Your Network probes for a Bell hub, Firewalla, and Orbi; skip it on a friend’s Mac.
- Your Data builds the
familyrecipe (~5 GB), checks R2’s free tier, backs up, and restores~/.zshrcas a canary. Proof, not rumour.
At the finish, a green panel prints “Your Sanctum is alive, <your name>.” Install the local Dragon from Quick Start.
sanctum chattargets the operator council and bows out on a fresh Mac; the studio bundle seats your own council on the Dragon. -
Verify the install.
Terminal window sanctum status # one-line health snapshotsanctum doctor # full diagnosticstatusprints a single green line.doctoraudits thehaus.sanctum.*LaunchAgents, AI providers, and runs a realrestic checkon every backup repo (--fullfor every row). All green is the exit ticket.
What you just got
Section titled “What you just got”| What | Where | How long it lasts |
|---|---|---|
| Daily backups (verified) | haus.sanctum.backup LaunchAgent, 04:00 |
Forever, automatic |
| Restore canary (proves round-trip works) | haus.sanctum.backup-canary LaunchAgent, weekly (Sun 06:00) |
Forever, automatic |
| Health snapshot command | sanctum status |
On-demand |
| Deep diagnostic | sanctum doctor |
On-demand |
| Local Dragon chat | the Dragon folder, or ./yoda.sh in the studio bundle |
On-demand |
| Audit log of every action | ~/.sanctum/logs/ with bounded rotation |
Rolls at 10 MB per file |
| Credentials in macOS Keychain | security find-generic-password -a sanctum-backup -s sanctum-backup-key |
Until you rotate them |
No phone-home. Nothing leaves your Mac unless you configured a cloud backup target — encrypted with a key only you control.
When something goes sideways
Section titled “When something goes sideways”Most install runs work first time. The ones that don’t usually hit one of these.
“Your Command Line Tools are too outdated”
Section titled ““Your Command Line Tools are too outdated””brew install checks for Xcode’s Command Line Tools and refuses to build dependencies if they’re missing or stale.
# Check what's installedxcode-select -ppkgutil --pkg-info=com.apple.pkg.CLTools_Executables
# Install or updatesudo xcode-select --installIf the install dialog doesn’t appear, check System Settings → Software Update; Apple sometimes routes CLT updates through there.
“Cloudflare R2 setup failed”
Section titled ““Cloudflare R2 setup failed””The R2 wizard opens browser tabs for the steps that need your input — account, API token, bucket. If a tab didn’t open or you cancelled partway, re-run it:
sanctum cloud setup --backend r2Plain sanctum cloud setup already defaults to R2. The wizard is idempotent — it picks up where you left off. If R2 is slow to provision, wait a few minutes and try sanctum doctor again.
“Permission denied (publickey)”
Section titled ““Permission denied (publickey)””This shows up if you ran sanctum onboard from a different Mac account, or with sudo (don’t). Sanctum stores credentials in your user-level Keychain — run it as your normal user.
“The brew tap failed to clone”
Section titled ““The brew tap failed to clone””If brew install ogilthorp3/sanctum/sanctum-cli fails to clone (Git LFS or a cloning error), your global Git hooks may be blocking it. Check:
git config --global core.hookspathA custom path there means those hooks need to soft-fail when their tools aren’t found — see sanctum-runtime post-checkout hook for the canonical pattern.
“Permissions prompts every time I run sanctum”
Section titled ““Permissions prompts every time I run sanctum””If you keep seeing macOS permission dialogs (“node would like to access X”), install the signed Node.js Foundation .pkg at /usr/local/bin/node (which sanctum.run/install.sh verifies and installs for you — unlike Homebrew’s versioned Cellar path, /usr/local/bin/node never moves across upgrades). On a full Sanctum 1.0 hub, protected Apple stores route through the notarized SanctumBridge (“One Door”), so your shell and regular Node processes stay FDA-clean — see TCC Identity Anchors.
What’s next
Section titled “What’s next”If everything looks green:
- First Run — the verification checklist (same sanity-check the daily LaunchAgent runs, on demand)
- What Is Sanctum? — context on the why
- The architecture pages, for how it works underneath
- Family Pass installation for sharing the haus (the operator path works today)
If something is failing: run sanctum doctor and read it carefully, check the audit log at ~/.sanctum/logs/ for the failing service, see Troubleshooting, or open an issue on the relevant GitHub repo.
Appendix — Operator-grade install (running from source)
Section titled “Appendix — Operator-grade install (running from source)”Running Sanctum from the source tree rather than the published binary uses a separate flow that installs the full audit-wall toolchain and the checked-in renderers.
The legacy sanctumctl operator CLI drives the daily audit-wall and the release gate (tools/sanctum-release.sh), not new users. If you’re maintaining a fork or building from a tag:
# From inside the checked-in workspacepython3 tools/sanctumctl.py bootstrap --write # writes the ~/.sanctum scaffoldpython3 tools/sanctumctl.py doctor # runs the audited verification wallThat writes the ~/.sanctum scaffold (annotated instance.yaml.example plus a node identity file) and runs the audited verification wall; bootstrap without --write previews first. The renderer just stopped trusting you to type it all by hand.