Skip to main content

Sovereign Agent OS โ€” Persistent Memory, Governance & Compliance for AI Agents

Project description

๐Ÿง  Nucleus โ€” Sovereign Agent OS

โš ๏ธ official repository โ†’ nucleus-mcp

PyPI version License: MIT MCP Compatible Tests

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

๐Ÿ“œ 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nucleus_mcp-1.3.0.tar.gz (8.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nucleus_mcp-1.3.0-py3-none-any.whl (529.6 kB view details)

Uploaded Python 3

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

Hashes for nucleus_mcp-1.3.0.tar.gz
Algorithm Hash digest
SHA256 6467c17e2c9f107c7eb5c1a2c0038cced76c8404daa0f0a687f89055ce8b3271
MD5 a3e01c014fd65348918404e56ff06878
BLAKE2b-256 434fe1a2c69bb53530c1e37c791e47a5f73ece12617c5d6b456c96653ef56786

See more details on using hashes here.

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

Hashes for nucleus_mcp-1.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b24b5dc261275f35a2f19ff23f5f55c3cfc3d0bb3715a6b6d8ff78bd3df9ac88
MD5 ff9b1090ca4054e967b53f8a803f1412
BLAKE2b-256 7d2c88aa0de0fa288398bf289506f9b787aaf351426a69ff473fd2ece13e8b95

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page