Skip to content

Node Topology

Sanctum is designed to run across multiple physical locations. A primary hub at your main haus coordinates with satellite nodes at secondary properties, mobile nodes on laptops, and sensor nodes for lightweight IoT devices (the RuView door cameras are the first). The hub’s instance.yaml holds the roster; a satellite keeps a minimal one of its own. Everything talks over Tailscale.

The multi-site contract — isomorphic local design maps, name-only hive plane, no L3 merge — lives in Hive Topology. Read that when adding a site or fine-tuning models that must share one mental map.

The DNS maze — navigating a multi-node network topology

What you’re looking at is a multi-site distributed system. The kind of thing a mid-sized company might run across three data centers. Except the data centers are hauses, the ops team is one person, and the primary node is next to a coffee maker.

Hub

The full-stack primary node. Runs the Mac Mini host with the Ubuntu VM, all AI agents, the Home Assistant gateway, inference servers, and the complete service catalog. There is exactly one primary hub per Sanctum instance; additional peer hubs (tier: peer) may join the hive later without merging LANs — see Hive Topology.

Satellite

Lighter, at a secondary haus: a gateway, Home Assistant, a small model and, at the chalet, the hub’s screen-time build (runtime).

Mobile

A MacBook Pro or similar portable device. Connects to the hub remotely via Tailscale for agent access, SSH, and API calls. Runs a small set of persistent guardrail daemons (see “Persistent Services Across Hosts” below) but no user-facing primary services.

Sensor

Dedicated IoT or monitoring hardware that reports to the hub without running the full Sanctum stack. The first ones in service are the RuView door cameras (ruview_front, ruview_garage, and friends) — low-power eyes, not brains.

Each node knows who it is through a single-line file at ~/.sanctum/.node_id:

Terminal window
# On the hub:
cat ~/.sanctum/.node_id
# manoir
# On the satellite:
cat ~/.sanctum/.node_id
# chalet

One file. One word. The machine’s entire sense of self lives in a text file smaller than a tweet. And yet if you delete it, everything stops knowing where it is. Identity is fragile – even for computers.

The identity string must match a key in the nodes section of the hub’s instance.yaml, the roster. On the hub, scripts and services use it to pick the block that applies to a machine. A satellite’s own file has no roster; its row lives on the hub.

Terminal window
source ~/.sanctum/lib/config.sh
NODE=$(sanctum_whoami) # "manoir"
TYPE=$(sanctum_node_get "$NODE" type) # "hub"
NAME=$(sanctum_node_get "$NODE" tailscale_name) # "manoir"

The node key (manoir) is the machine’s name; its type (hub) is its role. Two different words for the same box — a distinction that earns its keep the day you have two hubs.

On the hub, every node is declared under the nodes key; chalet’s row below is exactly what sanctum node adopt writes:

nodes:
manoir:
type: hub
tier: primary
host: 10.0.0.10
tailscale_name: manoir
ssh_user: neo
vm:
host: 10.10.10.10 # agent VM over the host bridge
ssh_user: ubuntu
chalet: # written by sanctum node adopt
type: satellite
tier: edge
ssh_user: neo
host: chalet # the MagicDNS name adopt was given
adopted: '2026-07-18'
tailscale_name: chalet
mbp:
type: mobile
tier: edge
host: 10.0.0.111 # DHCP on the haus LAN; varies elsewhere
tailscale_name: mbp
tailscale_ip: 100.0.0.40 # optional cache; resolve live instead
ssh_user: neo
services:
autoresearch: { enabled: true }
Field Required Description
type Yes One of hub, satellite, mobile, sensor
tier No primary for the hub that holds the roster, peer for a future second hub, edge for satellites and mobiles. Adopt writes edge.
ssh_user Yes Username for SSH connections to this node (readers also accept the legacy user)
host No LAN address or MagicDNS name; adopt writes the name or IP it was given. Empty for a name-only node.
tailscale_name No MagicDNS stem, the name sanctum node resolve prefers. Adopt writes it when host is a bare name.
tailscale_ip No Optional cached Tailscale IP. It can go stale; sanctum node resolve asks the tailnet instead.
adopted No ISO date sanctum node adopt registered the satellite
vm No Hub only: the agent VM’s host and ssh_user
services No Map of services this node runs (name: { enabled, port, ... }). Adopt does not write it. The hub omits it — by definition it runs the full catalog.

The hub is the authoritative node. It runs every service, hosts the VM with the agent cluster, and reaches into every satellite. In organizational terms, this is the head office, the server room, and the IT department – all running on a machine the size of a hardcover book.

  • Runs the reasoning agent cluster (5 Jedi on the VM: Yoda, Cilghal, Mundi, Qui-Gon, Windu; Jocasta runs Mac-side and Mon Mothma on manoir, making seven council seats in all)
  • Hosts the command center dashboard
  • Manages the Cloudflare tunnel for external access
  • Runs inference servers (sanctum-mlx on :1337, haus.sanctum.mlx-coder on :3301, Sanctum TTS) and the sanctum-server router that fronts them
  • Feeds the VM its skill updates
  • Keeps the roster in its instance.yaml

These services only run on the hub and are not deployed to satellites:

Service Reason
Council MLX (sanctum-mlx) Qwen3.8-27B-4bit, about 21 GB resident in typical use, needs a Metal-class GPU
Coder MLX (haus.sanctum.mlx-coder) Ornith-1.5-9B-MLX-4bit + Qui-Gon LoRA on :3301 (mTLS) as of 2026-11-10, after Muse-Glimmer-30B-4bit and Devstral-Small-2-24B. (Superseded the Qwen2.5-Coder-14B coder seat on :1338, retired 2026-06-07 along with the LM Studio :1234 bridge.)
Cloudflare Tunnel Single ingress point for the instance
Orbi Bridge Direct LAN access to the access point
Sonos Bridge Native SoCo control of LAN Sonos speakers
Voice Agent Tied to local Sonos Bridge and Sanctum TTS

The Mac Mini hub runs one virtual machine — the Ubuntu agent VM on Lima vmType=vz. Outline and Matrix live inside that guest; Home Assistant lives on the dedicated Green box at 10.0.0.3. The bridge from the Mac host to the VM is bridge100 on a private /24: the Mac is 10.10.10.1, the VM is 10.10.10.10. OrbStack was uninstalled 2026-08-19 and no longer contests anything.

The agent VM was migrated from QEMU/HVF to Lima vmType=vz on 2026-05-10 to end the 370% idle-spin the QEMU/HVF bind was burning (field note). Colima died 2026-04-27; OrbStack died 2026-08-19 (The Engine That Wasn’t There). Guest docker is Lima’s; the host has no container engine.

The Mac Mini starts every service — including the agent VM — without a GUI login. No auto-login, no Touch ID removal, no compromises. The boot graph runs through a small set of system LaunchDaemons in /Library/LaunchDaemons/ and the usual user LaunchAgents:

  1. Phase 1: Guest containers — Lima VM docker brings Outline/Matrix up inside sanctum-vm; host socat forwards :3100 / :6167.
  2. Phase 2: Inference + routing — sanctum-mlx (:1337, mTLS, Qwen3.8-27B-4bit) and haus.sanctum.mlx-coder (:3301, mTLS, Ornith-1.5-9B-MLX-4bit as of 2026-11-10, in the coder seat that succeeded Muse-Glimmer-30B and Devstral after the :1338 Qwen coder + :1234 LM Studio bridge were retired 2026-06-07) load. proxyd on :4040 and sanctum-server on :8055 (BOSS) come up to front them. Both MLX seats load as user LaunchAgents (haus.sanctum.mlx, haus.sanctum.mlx-coder; com.sanctum.* before the 2026-08-19 rename), not system daemons.
  3. Phase 3: Agent VM — Lima starts the Ubuntu VM; the vmnet bridge is set up via socket_vmnet; the host IP is pinned to 10.10.10.1; the boot path waits for VM SSH before declaring success.
  4. Phase 4: SSH + bridges — apple-post-boot.sh loads SSH keys from Keychain via ssh-add --apple-load-keychain; socat proxies stitch VM-side requests to Mac-side services (Firewalla, MLX coder, SanctumBridge).

Five P0 services (force-flow, proxyd, watchdog-rust, ha-gateway, firewalla) were promoted from user LaunchAgents to system LaunchDaemons in 2026-05-07/08 (field note). They survive any reboot pattern, including a missing /etc/kcpassword. The MLX seats stayed user-domain on purpose: a model that can’t reach the user’s Keychain boots into a brick, so they wait for login state rather than racing it.

Terminal window
# The whole boot graph is one script, run by the bootstrap LaunchDaemon at boot.
# Run it by hand to (re)start every service without a reboot:
bash ~/.sanctum/boot/sanctum-bootstrap.sh

macOS Sequoia+ does not auto-load SSH keys into the agent at boot. The apple-post-boot.sh script runs ssh-add --apple-load-keychain to load all Keychain-stored SSH passphrases into the agent. Without this, non-interactive LaunchAgents (SSH tunnels, skill sync, VM health checks) cannot authenticate to the VM.

Automation-lane hosts use IdentityAgent none with a dedicated key; local VM hosts use IdentityAgent SSH_AUTH_SOCK. Everything else falls through to the 1Password agent in Host *, which must be the last block, because ssh keeps the first value it reads for each option (the first line wins). Verify with ssh -G <host>.

A satellite is a smaller deployment at a secondary location. It runs a gateway with a lightweight local model and its own Home Assistant instance for location-specific devices.

Think of it as a field office. It can operate independently, make local decisions, and keep the lights on – but the real horsepower stays at headquarters. The satellite doesn’t need five AI agents. It needs to control the heat and not die when the internet goes out.

The Satellite Setup guide walks the whole procedure with chalet as the example: an installer from sanctum node bootstrap-script, one visit to join the tailnet and open it, sanctum node adopt chalet --name chalet on the hub, then sanctum init --name chalet --role satellite, a local brain, Home Assistant and sanctum self-test on the satellite.

A satellite never opens a connection to the hub; the tailnet policy denies it every port. The hub reaches in: sanctum node adopt, its automation SSH lane, the screen and fleet lanes, the witness tunnel and, from 1.0.1, the Memory Vault relay.

manoir ─── adopt, SSH lane, tunnel ──▶ chalet
manoir ─── screen, fleet lanes ──────▶ chalet
manoir ◀─────────── never ──────────── chalet

Mobile nodes are laptops that connect to the Sanctum instance remotely. They run a small set of persistent guardrail daemons (see below) but no user-facing primary services. Otherwise they SSH into the hub, query agents, and access dashboards over Tailscale.

Action Command / URL
SSH to hub ssh [email protected]
SSH to VM ssh -J [email protected] [email protected]
Dashboard http://100.0.0.20:1111
Home Assistant HA Green box (tailnet node, LAN 10.0.0.3) via Tailscale
Agent query Via gateway API at 100.0.0.20:1977

Two Sanctum daemons span both the hub and the mobile node (castellan’s laptop activation is still pending). They are deliberately symmetric: each host enforces its own RAM ceiling and exposes its own Claude Max subscription. There is no central authority — that was the point of the 2026-04-24 capacity doctrine. Each host is responsible for its own air supply.

Daemon Hub (Mac Mini) Mobile (MacBook Pro) Role
com.sanctum.castellan (Gollum) :2189 pending activation RAM-pool admission + capacity governor (Rust root LaunchDaemon). Superseded sanctum-admit 2026-05-29 and absorbed the old pressure-valve’s shed-and-freeze duty. Per-host doctrine.
com.sanctum.claude-max-proxy :3456 :3456 OpenAI-compatible HTTP wrapper around the local claude CLI. Each host has its own Claude Max OAuth session; a persistent SSH tunnel (MBP :3457 to Mini :3456) covers cross-machine fallback.

com.sanctum.pressure-valve used to be the third entry here — a standalone daemon that shed and froze memory offenders before the kernel could. It was retired 2026-05-29 and its job folded into castellan; one governor that admits and sheds is harder to leave half-running than two that have to agree.

The Claude proxy was unified on 2026-04-27 — before that the hub ran a per-request CLI-spawn proxy on :2001 (com.sanctum.claude-cli-proxy), while the mobile ran the persistent claude-max-api-proxy npm package. Both hosts now run the same npm package via a tiny wrapper at ~/.sanctum/bin/claude-max-api-tailscale.js. Smart-router cloud-backend fallback is symmetric: either host can serve the other’s escalations if the primary is down.

Per-host symmetry by design: each machine answers for its own air supply (capacity doctrine, 2026-04-24). User-facing and stateful daemons (watchdog, chitti, livekit-server, sanctum-mlx, ha-gateway, outline) remain hub-only — the mobile is a dev and validation surface and doesn’t carry production state.

Both the shell and TypeScript libraries provide functions for working with the node topology:

Terminal window
source ~/.sanctum/lib/config.sh
# Who am I?
sanctum_whoami # "manoir"
# Get a field from any node
sanctum_node_get chalet tailscale_name # "chalet"
sanctum_node_get mbp ssh_user # "neo"
# A live address comes from the tailnet, not the roster
sanctum node resolve chalet # chalet → 100.0.0.30 (tailscale:tailscale_name, online)
import { whoami, nodeGet, getNodesByType } from './lib/config';
const me = whoami(); // "manoir"
const satellites = getNodesByType('satellite'); // ["chalet"]
const chaletName = nodeGet('chalet', 'tailscale_name'); // "chalet"
Tailscale Mesh (your-tailnet.ts.net)
_______________________________________________
/ | \
Hub: manoir Satellite: chalet Mobile: mbp
100.0.0.20 100.0.0.30 100.0.0.40
| | |
[Mac Mini M4 Pro] [Mac Mini M1] [MacBook Pro M4 Max]
+-- Lima vz VM (Ubuntu) +-- Gateway (guardrail daemons)
+-- 5 AI Agents +-- Home Assistant +-- castellan (pending)
+-- Full service catalog +-- Local brain (:6502) +-- claude-max-proxy
+-- HA gateway +-- Force Flow (:4077)
+-- sanctum-mlx (:1337 + :3301)
+-- sanctum-server router

Three machines. Two hauses. One tailnet. Zero regrets. Well. Few regrets.