Integrates with Codeium's Windsurf editor to synchronize project state, session memory, and decision history with other AI-powered development environments.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Nucleus MCPWhat decisions have we made about the architecture?"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
š§ 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.
š Website ⢠š¦ Live KYC Demo ⢠š 170+ Tool Catalog ⢠š¬ Discord
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 self-setupAdaptive Path Discovery
Nucleus automatically locates your .brain by following this hierarchy:
NUCLEUS_BRAIN_PATHenvironment variable.Climbing parent directories from CWD to find an existing
.brain.Defaulting to
$HOME/.nucleus/brain.
Try It
# One-command security hardening + posture report
nucleus secure
# Interactive AI chat (Gemini, Anthropic, Groq ā hot-switchable)
nucleus chat
# 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
# System Health & Lock Recovery
nucleus status --health
nucleus status --cleanup-lockš Session Recovery (Universal)
If your IDE session freezes due to bloated conversation files:
# One-shot automatic recovery
nucleus recover auto <conversation-id>
# Or step-by-step:
nucleus recover detect # Find bloated conversations
nucleus recover extract <conversation-id> # Extract context
nucleus recover bootstrap <conversation-id> # Create fresh session
nucleus recover rewrite <old-id> <new-id> # Update test pathsWorks across any IDE (Windsurf, Cursor, Antigravity) and CLI. Zero configuration required.
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"
}
}
}
}šļø Agent CLI ā v1.6.2
Nucleus speaks MCP + CLI + SDK. Every command auto-detects TTY (table) vs pipe (JSON).
# Memory
nucleus engram search "compliance" # Table in terminal, JSONL when piped
nucleus engram write my_key "important insight" --context Strategy --intensity 8
nucleus engram query --context Decision --limit 10
# Tasks
nucleus task list --status READY --format json # Force JSON output
nucleus task add "Ship v1.4.0 CLI" --priority 1
nucleus task update task-abc123 --status DONE
# Sessions
nucleus session save "Working on CLI implementation"
nucleus session resume # Most recent session
# Growth
nucleus growth pulse # GitHub stars + PyPI + compound
nucleus growth status # Metrics without side effects
# Outbound I/O
nucleus outbound check reddit r/ClaudeAI # Idempotency gate
nucleus outbound record reddit r/ClaudeAI --permalink https://reddit.com/abc
nucleus outbound plan # What's ready vs posted
# Pipe-friendly (Unix composable)
nucleus engram search "test" | jq '.key'
nucleus task list --format tsv | cut -f1,3Global flags: --format json|table|tsv ⢠--brain-path /path/to/.brain ⢠--version
ļæ½š„ The Layered Open-Core Model
Nucleus is designed for progressive adoption. You can start local and scale up to full institutional compliance seamlessly.
Layer 1: Sovereign Core (OSS): 100% local, persistent engrams, session state, and essential file governance.
Layer 2: CLI-First Tooling:
morning-brief,end-of-day, and thedogfoodtracker for compounding intelligence.Layer 3: Deployment Kit: 1-command jurisdiction deployments (
nucleus deploy --jurisdiction eu-dora).Layer 4: Institutional Compliance: DSoR Trace Viewer, Audit Report HTML exports (DORA/MAS TRM), and strict HITL gates.
šļø 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 statusJurisdiction | Region | Retention | HITL Ops | Kill Switch |
| EU | 7 years | 5 types | ā Required |
| Singapore | 5 years | 5 types | ā Required |
| US/Global | 1 year | 3 types | āŖ Optional |
| 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 sequenceEach 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 officersSovereignty Status
See your full sovereignty posture:
nucleus sovereignShows: sovereignty score (0-100), memory health, governance posture, DSoR integrity, data residency guarantee.
š Full Feature Set
Core ā Persistent Agent Memory
Feature | Command | Description |
Engrams |
| Persistent knowledge that survives sessions |
Sessions |
| Save and resume work context |
Morning Brief |
| Daily compounding intelligence brief |
End of Day |
| Capture learnings as engrams |
Governance ā Agent Controls
Feature | Command | Description |
Compliance |
| Jurisdiction-aware configuration |
Audit Reports |
| Audit-ready compliance reports |
KYC Demo |
| Pre-built compliance demo workflow |
DSoR Traces |
| Browse decision trails |
Sovereignty |
| Full sovereignty posture report |
Secure |
| One-command hardening + security certificate |
HITL | Built-in | Human-in-the-loop approval gates |
Kill Switch | Built-in | Emergency halt for agent operations |
Hypervisor |
| File locking, security, mode control |
Interactive ā AI Chat
Feature | Command | Description |
Chat |
| Multi-provider terminal AI (Gemini/Anthropic/Groq) |
Multi-Turn | Built-in | Native conversation history with session resume |
Tool Calling | Built-in | Native function calling + |
Dual-Agent |
| Primary generates, reviewer critiques |
Orchestration ā Multi-Agent Coordination
Feature | Command | Description |
Tasks |
| Track work across agents |
Sync |
| Multi-agent brain synchronization |
Slots |
| Agent orchestration with sprint mode |
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-doraLocal
pip install nucleus-mcp
nucleus init
nucleus comply --jurisdiction eu-dora
nucleus sovereign # Verifyš Anonymous Telemetry
Nucleus collects anonymous, aggregate usage statistics to improve the product. No personal data, no engram content, no org docs ā ever.
ā ļø Note: Anonymous telemetry powers the autonomous incident brain engine (
telemetry.nucleusos.dev). Disabling it may degrade or disable autonomy features like policy adaptation, crash-loop detection, and rollout health scoring. Only opt out if you have a fully local telemetry stack.
Opt out in 1 command:
nucleus config --no-telemetry
# or via env: NUCLEUS_ANON_TELEMETRY=false
# or in config: telemetry.anonymous.enabled: falseWhat's collected: command name, duration, error type, Nucleus/Python version, OS platform.
What's NEVER collected: engram content, file paths, prompts, API keys, any PII.
See TELEMETRY.md for full details.
š¦ v1.6.2 ā Interactive Intelligence
Multi-Provider Chat ā
nucleus chatwith Gemini, Anthropic, Groq (hot-switchable via/provider)Native Tool Calling ā Anthropic
tool_useAPI + Groq OpenAI function callingModel-Aware Gating ā 70b+ models use native tools; 8b models use
<execute>tagsGroq Auto-Rotation ā Cascades across models on rate limit (70b ā scout ā qwen ā 8b)
Session Resume ā Chat history auto-loads from disk on startup
nucleus secureā One-command security hardening + posture report with certificate263 tests passing ā Routing fuzzer, session resume, tool pattern detection
š¦ v1.6.0 ā The Autonomous Incident Brain
Automated Incident Response, Adaptive Policy Engine, Reliability Policy Surface
Full-Stack Health Monitoring with crash-loop defense
Safe Rollouts & Auto-Rollback with health-gated releases
š¦ v1.5.0 ā The Sovereign Kernel
Adaptive Path Discovery ā Zero-conf brain location (Env > CWD > Home)
Universal Shell Integration ā Integrated bash/zsh completions via
self-setupFederation Level 1 ā Automated local peer discovery via IPC
DSoR Self-Healing ā Automated reconciliation of orphaned decisions in audit logs
CLI Sovereignty ā Unified routing, Python-native bootstrap, and health monitoring
80+ tests ā All passing (including stale lock recovery and recursion guards)
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. ā