Open-core, local-first multi-bot AI runtime with Matrix as the control plane.
Sovereign AI Node is a self-hosted platform for running specialized bots on your own infrastructure. Matrix is the operator-facing control plane. It is not a single bot, not a SaaS wrapper, and not a cloud dashboard.
The current documented path requires:
- a dedicated Ubuntu or Debian host — VM, bare metal, or VPS (Ubuntu 22.04+ recommended)
- an OpenRouter API key for the provider-backed bot runtime path
- an Element or other Matrix client for operator interaction
The installer provisions the Matrix stack (Synapse) and bot runtime (OpenClaw) automatically. Bot-specific prerequisites (e.g. IMAP mailbox credentials for Mail Sentinel) are documented in sovereign-ai-bots.
Run the guided installer on a fresh Ubuntu or Debian host (VM, bare metal, or VPS):
curl -fsSL https://github.com/ndee/sovereign-ai-node/releases/latest/download/install.sh | sudo bashThis pulls the bundled installer attached to the most recent tagged release. To pin a specific version, replace latest with the tag name (e.g. v1.2.3).
If you are working from a local checkout instead:
sudo bash scripts/install.sh --source-dir "$(pwd)"The local-checkout flow uses the multi-file installer under scripts/install/. The scripts/install.sh you see in this repo is the orchestrator; it sources scripts/install/lib-*.sh at runtime. The single-file install.sh shipped via the release URL is built from the same sources by scripts/install/build.sh during the release workflow.
Once installed, update to the latest release with:
sudo sovereign-node updateThis downloads the bundled install.sh from the latest release and re-runs it in update mode. Pin a specific version with --ref vX.Y.Z.
sovereign-node update on v2.0.0 fetched the orchestrator script from raw.githubusercontent.com and silently exited 1 because the orchestrator requires a sibling install/ library tree that was never downloaded. v2.1.0+ hosts use the bundled release asset and update normally.
To recover a v2.0.0 host, run the curl installer once manually — this matches what sudo sovereign-node update does on a fixed host:
curl -fsSL https://github.com/ndee/sovereign-ai-node/releases/latest/download/install.sh | sudo bash -s -- --update --non-interactiveAfter this completes, future updates can use sudo sovereign-node update.
Sovereign AI Node is the runtime and control plane layer. Bot packages are defined and versioned separately in sovereign-ai-bots.
| Layer | Repository | Role |
|---|---|---|
| Runtime | sovereign-ai-node |
Installer, Matrix stack, agent/tool contracts, policy boundaries |
| Bots | sovereign-ai-bots |
Installable bot packages, workspace files, Matrix avatar assets, manifests |
Matrix is the primary control plane. Bots register as Matrix users, operate inside rooms, and receive operator interaction through standard Matrix clients. When bundled avatar assets are present in sovereign-ai-bots, the installer also applies them to the service bot, managed bot accounts, and the bundled alert room.
Additional installable bot packages live in the companion sovereign-ai-bots repository without changing the runtime code in this repo.
Example optional package:
project-sentinel@2.0.0— digest-first project intelligence bot that watches curated upstream and community sources, scores items against project-specific lanes, and routes red alerts or amber digests into Matrix
Useful commands:
sovereign-node bots list --jsonsovereign-node bots instantiate project-sentinel --json
Matrix acts as the control plane for Sovereign AI Node and its bots.
Sovereign AI Node is:
- local-first
- multi-bot by design
- Matrix-controlled
- open core
- cloud-optional
- privacy-first
Current focus: Mail Sentinel on a single self-hosted Linux node.
Today, the project is centered on:
- Sovereign AI Node runtime
- OpenClaw as the default runtime backend
- a bundled Matrix stack
- external Element clients
- Mail Sentinel as the first concrete module
The broader multi-bot system is the platform direction. Mail Sentinel is the first real wedge. See the Mail Sentinel package in sovereign-ai-bots for bot-level details and screenshots.
Matrix is the control plane because it gives the system:
- rooms as natural operator surfaces
- bot-native interaction
- local or self-hosted deployment options
- a clean path to multi-bot coordination
Sovereign AI Node separates templates from runtime instances:
- Sovereign Agent Template — defines workspace files, runtime expectations, and required tools
- Sovereign Tool Template — defines capability contracts and configuration requirements
- Sovereign Tool Instance — a concrete local binding with real config and credentials
- Sovereign Agent — a managed runtime bot with its own workspace and Matrix identity
mail-sentinel@2.0.0node-operator@2.0.0
mail-sentinel-tool@1.0.0imap-readonly@1.0.0node-cli-ops@1.0.0
Sovereign AI Node is OpenClaw-first, adapter-safe.
OpenClaw is the default execution framework today, but it sits behind a stable runtime boundary so the platform does not become permanently coupled to one runtime.
The long-term direction is a modular bot system spanning mail, documents, calendars, operations, security, and finance. These are platform directions, not currently shipped modules.
docs/ARCHITECTURE.mddocs/MAIL_SENTINEL_DESIGN.mddeploy/
