Sovereign Agent OS โ Persistent Memory, Governance & Compliance for AI Agents
Project description
๐ง Nucleus โ Sovereign Agent OS
โ ๏ธ official repository โ nucleus-mcp
The sovereign, local-first Agent Operating System โ persistent memory, governance, compliance, and audit trails for any AI agent.
[!CAUTION] After the OpenClaw security crisis (1.5M API keys leaked, sleeper agents in skills), agent security is no longer optional. Nucleus is built security-first: hypervisor controls, resource locking, compliance governance, and full audit trails โ all 100% local.
๐ฏ The Problem
AI agents are powerful, but ungoverned:
- No memory โ every session starts from zero
- No audit trail โ no one knows why the agent did what it did
- No compliance โ regulators can't approve what they can't trace
- No sovereignty โ your data flows through someone else's cloud
For regulated industries (BFSI, healthcare, legal), this is a dealbreaker.
โจ The Solution: Sovereign Agent OS
Nucleus gives every AI agent a persistent brain with built-in governance:
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ ๐ง Nucleus โ Sovereign Agent OS โ
โ โ
โ โโ Memory โโโ โโ Governance โ โโ DSoR โโโโโ โ
โ โ Engrams โ โ HITL โ โ Decision โ โ
โ โ Sessions โ โ Kill Switch โ โ Trail โ โ
โ โ Context โ โ Compliance โ โ Audit โ โ
โ โโโโโโโโโโโโโ โโโโโโโโโโโโโโโ โโโโโโโโโโโโโ โ
โ โ
โ 100% Local โข Zero Cloud โข Full Audit Trail โ
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
๐ Quick Start (2 Minutes)
Install
pip install nucleus-mcp
nucleus-init
Try It
# See your sovereignty posture
nucleus sovereign
# Run a KYC compliance demo (15-minute BFSI demo)
nucleus kyc demo
# Apply EU DORA compliance
nucleus comply --jurisdiction eu-dora
# Generate audit-ready report
nucleus audit-report --format html -o report.html
# Browse decision trails
nucleus trace list
Configure (Claude Desktop / Cursor / Windsurf)
Add to your MCP config:
{
"mcpServers": {
"nucleus": {
"command": "python3",
"args": ["-m", "nucleus_mcp"],
"env": {
"NUCLEAR_BRAIN_PATH": "/path/to/your/.brain"
}
}
}
}
๐๏ธ Why Nucleus for Regulated Industries
Jurisdiction-Aware Compliance
One command to configure for any regulatory framework:
nucleus comply --jurisdiction eu-dora # EU DORA (7yr retention, kill switch)
nucleus comply --jurisdiction sg-mas-trm # Singapore MAS TRM (5yr, strictest HITL)
nucleus comply --jurisdiction us-soc2 # US SOC2 (1yr retention)
nucleus comply --report # Check compliance status
| Jurisdiction | Region | Retention | HITL Ops | Kill Switch |
|---|---|---|---|---|
eu-dora |
EU | 7 years | 5 types | โ Required |
sg-mas-trm |
Singapore | 5 years | 5 types | โ Required |
us-soc2 |
US/Global | 1 year | 3 types | โช Optional |
global-default |
Global | 90 days | 2 types | โช Optional |
KYC Compliance Demo
Built-in demo workflow showing how Nucleus governs a KYC document review:
nucleus kyc review APP-001 # Low risk โ โ
APPROVE
nucleus kyc review APP-002 # Medium risk โ โ ๏ธ ESCALATE (PEP match)
nucleus kyc review APP-003 # High risk โ โ REJECT (sanctions)
nucleus kyc demo # Run all 3 in sequence
Each review generates:
- 5 automated checks (sanctions, PEP, document validity, risk factors, source of funds)
- Full decision trail stored as DSoR (Decision System of Record) trace
- HITL approval request for risky applications
- Sovereignty guarantee: all processing is local
Audit Reports
Generate audit-ready reports for regulators:
nucleus audit-report # Terminal text
nucleus audit-report --format json # JSON for APIs
nucleus audit-report --format html -o report.html # HTML for compliance officers
Sovereignty Status
See your full sovereignty posture:
nucleus sovereign
Shows: sovereignty score (0-100), memory health, governance posture, DSoR integrity, data residency guarantee.
๐ Full Feature Set
Core โ Persistent Agent Memory
| Feature | Command | Description |
|---|---|---|
| Engrams | nucleus_engrams |
Persistent knowledge that survives sessions |
| Sessions | nucleus_sessions |
Save and resume work context |
| Morning Brief | nucleus morning-brief |
Daily compounding intelligence brief |
| End of Day | nucleus end-of-day |
Capture learnings as engrams |
Governance โ Agent Controls
| Feature | Command | Description |
|---|---|---|
| Compliance | nucleus comply |
Jurisdiction-aware configuration |
| Audit Reports | nucleus audit-report |
Audit-ready compliance reports |
| KYC Demo | nucleus kyc |
Pre-built compliance demo workflow |
| DSoR Traces | nucleus trace |
Browse decision trails |
| Sovereignty | nucleus sovereign |
Full sovereignty posture report |
| HITL | Built-in | Human-in-the-loop approval gates |
| Kill Switch | Built-in | Emergency halt for agent operations |
| Hypervisor | nucleus_governance |
File locking, security, mode control |
Orchestration โ Multi-Agent Coordination
| Feature | Command | Description |
|---|---|---|
| Tasks | nucleus_tasks |
Track work across agents |
| Sync | nucleus_sync |
Multi-agent brain synchronization |
| Slots | nucleus_slots |
Agent orchestration with sprint mode |
| Federation | nucleus_federation |
Multi-brain coordination |
โก Comparison
| OpenClaw | Claude Code | Nucleus | |
|---|---|---|---|
| Security | โ Key leaks, sleeper agents | โ ๏ธ Cloud-managed | โ Hypervisor + audit trail |
| Compliance | โ None | โ None | โ DORA, MAS TRM, SOC2 |
| Audit Trail | โ | โ ๏ธ Basic logs | โ Full DSoR + HTML reports |
| HITL | โ | โ ๏ธ Limited | โ Jurisdiction-configurable |
| Cross-Platform | โ | โ | โ Any MCP client |
| Local-First | โ ๏ธ Some cloud | โ ๏ธ Some cloud | โ 100% local |
| Open Source | โ MIT | โ Closed | โ MIT |
๐ณ Deployment
Docker (per jurisdiction)
# EU DORA deployment
docker compose -f deploy/docker-compose.eu-dora.yml up -d
# Or use the one-command deployment script
./deploy/deploy.sh eu-dora
Local
pip install nucleus-mcp
nucleus init
nucleus comply --jurisdiction eu-dora
nucleus sovereign # Verify
๐ฆ v1.3.0 โ What's New
- Compliance Configuration โ 4 regulatory jurisdictions with governance policies
- Audit Reports โ Text, JSON, and HTML output for compliance officers
- KYC Demo Workflow โ 3 demo applications with 5 automated checks
- Sovereignty Status โ Posture report with A/B/C/D grading
- DSoR Trace Viewer โ Browse and inspect decision trails
- Deployment Kit โ Dockerfile, docker-compose per jurisdiction, deploy script
- 54 new tests โ All passing
See CHANGELOG.md for full details.
๐ค Community & Contributing
- ๐ Found a bug? Open an Issue
- ๐ก Feature idea? Start a Discussion
- ๐ง Want to contribute? See CONTRIBUTING.md
- ๐ฌ Join Discord โ Join the Nucleus Development Server
๐ License
MIT ยฉ 2026 Nucleus Team | hello@nucleusos.dev
Built for the AI-native enterprise. Star us if Nucleus gives your agents a brain โ and a conscience. โญ
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nucleus_mcp-1.3.0.tar.gz.
File metadata
- Download URL: nucleus_mcp-1.3.0.tar.gz
- Upload date:
- Size: 8.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6467c17e2c9f107c7eb5c1a2c0038cced76c8404daa0f0a687f89055ce8b3271
|
|
| MD5 |
a3e01c014fd65348918404e56ff06878
|
|
| BLAKE2b-256 |
434fe1a2c69bb53530c1e37c791e47a5f73ece12617c5d6b456c96653ef56786
|
File details
Details for the file nucleus_mcp-1.3.0-py3-none-any.whl.
File metadata
- Download URL: nucleus_mcp-1.3.0-py3-none-any.whl
- Upload date:
- Size: 529.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.18 {"installer":{"name":"uv","version":"0.9.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b24b5dc261275f35a2f19ff23f5f55c3cfc3d0bb3715a6b6d8ff78bd3df9ac88
|
|
| MD5 |
ff9b1090ca4054e967b53f8a803f1412
|
|
| BLAKE2b-256 |
7d2c88aa0de0fa288398bf289506f9b787aaf351426a69ff473fd2ece13e8b95
|