Next-Generation Agent Governance — A governance-oriented architecture for autonomous AI agents, combining persistent memory, safety rules, and centralized management.
PostgreSQL‑backed long‑term memory for Hermes, OpenClaw and AI agents — with a live Dashboard.
HermesClawZero gives agents a unified memory layer with automated capture, vector search, memory optimization, and configurable governance rules. Self-hosted via Docker Compose.
| Proven capability | What it does |
|---|---|
| Persistent long-term memory | Chat data synced to PostgreSQL with vector embeddings |
| Multi-tenant | Hermes, OpenClaw and other agents share one DB, isolated by scope |
| Automated capture | Conversations are captured and embedded without manual steps |
| Memory optimization | Tiering (hot/warm/cold), decay, archiving, consolidation |
| Configurable governance | Enforceable skill rules so agents follow critical instructions |
| Dashboard | Memory Galaxy, health monitoring, search, manual review |
| Vector search | pgvector-powered semantic similarity across all memories |
| Self-hosted | FastAPI + Docker Compose — modular, maintainable |
- One‑Click Install
- Dashboard
- Memory Galaxy
- CLI & MCP Tools
- What's Inside
- Provider & Config
- Verifying It Works
- Screenshots
- Who Is This For
Paste this into Hermes, OpenClaw, or any AI agent:
Install this project from GitHub:
https://github.com/SunMe1977/HermesClawZero-ConfigSidecar
⬆️ The agent clones, configures, and starts everything. No manual steps. After ~30s open →
http://localhost:8010/dashboard📄 See
install_via_agent.mdfor the detailed agent instructions.
HermesClawZero works as a unified memory layer for both Hermes and OpenClaw simultaneously.
Both agents share the same PostgreSQL-backed memory store — no sync, no duplication:
| Agent | Memory Scope | Access |
|---|---|---|
| Hermes Desktop | hermes:<chat_id> |
sync_watchdog + API |
| OpenClaw | openclaw:<chat_id> |
API capture |
The Dashboard shows both scopes side by side with platform icons (⚡ Hermes, 🐙 OpenClaw).
Each agent only sees its own memories by default. The "All scopes" view gives you the complete shared brain.
⚡ New in v3.0.0 — Enforce Governance Layer — A priority-based governance system that makes agent behavior more stable and safe. Enforce rules sit above memory and cannot be ignored by the agent.
v3.0.0 führt enforce-Regeln ein. Alte Memory-Regeln entfernt. Enforce ist jetzt die verbindliche Governance-Schicht.
No extra setup — just connect both agents to the same sidecar URL and API key.
Manual start (if you don't have an agent):
git clone https://github.com/SunMe1977/HermesClawZero-ConfigSidecar.git
cd HermesClawZero-ConfigSidecar
setup.bat # Windows (or: ./setup.sh on Linux)
start.bat # Windows (or: ./start.sh on Linux)The Dashboard is the main entry point for everything your agent remembers:
| Feature | What you can do |
|---|---|
| Memory Timeline | Browse all captured memories chronologically |
| Semantic Search | Find memories by meaning, not keywords |
| Tenant Isolation | Each scope/chat gets its own view — no data leaks |
| Memory Health | Review stale/low-confidence memories, run optimizer |
| Memory Galaxy | Interactive 3D galaxy visualization of all memories |
| Export | Download memory snapshots anytime |
A full‑screen Canvas‑based galaxy visualization that brings your memories to life:
| Feature | Effect |
|---|---|
| Tenant Orbits | Each scope/user gets its own colored orbital ring |
| Glowing Nodes | Pulsing memory dots with comet‑like glow trails |
| Nebula Shader | Animated gas clouds (blue/violet/pink) with depth |
| Parallax Depth | Foreground nodes react faster than background stars |
| Hover Cards | Hover any node to see tenant, timestamp, and tags |
| Zoom & Rotate | Mouse wheel zoom (0.3×–3×), idle auto-rotation after 5s |
| Memory Clusters | Diffuse glowing blobs drifting near their tenant orbit |
Toggle it on from the Dashboard header — no install, no extra setup.
| Problem | Without Sidecar | With Sidecar |
|---|---|---|
| Session continuity | Agent forgets everything on restart | Remembers facts, preferences, decisions |
| Context cost | Long histories burn tokens | Semantic search finds relevant memories |
| Setup effort | Manual vector DB, embeddings, API keys | Docker + Ollama, zero config, zero cost |
Workflow: User ↔ Agent ↔ Sidecar API ↔ PostgreSQL + pgvector
python memory.py capture "fact to remember" # Save a memory
python memory.py search "query" 5 # Search memories
python memory.py autosave "text" "backup.md" # Backup a sessionFor Claude Desktop, Hermes, VS Code, and any MCP client:
pip install mcp requests
python mcp_server.py| Tool | Description |
|---|---|
capture_memory / search_memory |
Read & write memories |
list_recent / memory_stats |
Browse & analyze |
delete_memory / review_memories |
Manage & synthesize |
Register with Hermes: hermes mcp add hermesclawzero --command "python C:\dev\HermesClawZero-ConfigSidecar\mcp_server.py"
Two pre-built skills integrate the sidecar with your agent:
- Hermes Skill — deterministic capture triggers + auto-load for Hermes
- OpenClaw Auto-Memory Skill — auto-capture facts, preferences, and project context
| Container | Port | Role |
|---|---|---|
hc-sidecar-api1 |
:8010 (via Caddy) |
FastAPI + Dashboard + capture/search |
hc-sidecar-postgres |
:5666 |
PostgreSQL 15/17 + pgvector |
hc-sidecar-ollama |
:11435 |
Ollama (nomic-embed-text) |
Health: curl http://localhost:8010/healthz → {"status":"ok"}
Click to expand
| Mode | AI_PROVIDER |
Embeddings | Key Required |
|---|---|---|---|
| Local (recommended) | ollama |
nomic-embed-text |
None |
| OpenAI | openai |
OpenAI | OPENAI_API_KEY |
| Gemini | gemini |
Gemini | GEMINI_API_KEY |
| Anthropic | anthropic |
Via embedding provider | ANTHROPIC_API_KEY |
| OpenRouter | openrouter |
OpenRouter | OPENROUTER_API_KEY |
COMPOSE_AI_PROVIDER=openrouter docker compose up -d --force-recreate api| Variable | Default | Description |
|---|---|---|
API_KEY |
— | Required for all protected endpoints |
DB_PASSWORD |
— | PostgreSQL password |
AI_PROVIDER |
ollama |
ollama | openai | gemini | anthropic | openrouter |
MEM_PUBLIC_URL |
http://localhost:8010 |
Base URL for client scripts |
OLLAMA_HOST |
http://host.docker.internal:11434 |
Ollama endpoint |
AUTO_UPDATE_ENABLED |
false |
Auto-pull from GitHub |
DASHBOARD_PASSWORD |
HermesDash!2026 |
Basic Auth for dashboard |
- Multi-tenant isolation via
chat_id+scope_id - API:
x-api-keyheader or?key=query param - Dashboard: Basic Auth
- Rate limiting: 30 req/min
/capture, 60 req/min/search
# 1. Health check
curl http://localhost:8010/healthz
# → {"status":"ok"}
# 2. Capture a test memory
python memory.py capture "Hello from README" test
# 3. Search it back
python memory.py search "hello" 3
# 4. Open the Dashboard
# → http://localhost:8010/dashboard🔍 Having trouble? Check the Troubleshooting section in the OpenClaw skill.
Available immediately at http://localhost:8010/dashboard after docker compose up.
AI developers · Hermes users · OpenClaw users · Self-hosters · MCP enthusiasts
HermesClawZero is the only memory system that combines all of these in a single Docker stack:
| Need | gBrain | ZeroMem | Hermes Built‑In | OpenClaw Memory | Cognee | HermesClawZero |
|---|---|---|---|---|---|---|
| Knowledge Graph | ❌ | ❌ | ❌ | ✅ | ✅ Entities + Rels + Traversal | |
| Memory Tiers | ❌ | ❌ | ❌ | ❌ | ✅ Hot/Warm/Standard/Cold | |
| Versioning | ❌ | ✅ DAG | ❌ | ❌ | ❌ | ✅ memory_versions table |
| Compression | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ Intelligent multi-line |
| Consolidation | ✅ Dream cycle | ❌ | ❌ | ✅ Dreaming | ❌ | ✅ Embedding-clustering |
| Deduplication | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ Vector-distance |
| Editor / Merge | ❌ | ✅ DAG | ❌ | ❌ | ❌ | ✅ Inline + batch merge |
| Feedback | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ Upvote/downvote |
| Temporal Search | ❌ | ❌ | ❌ | ❌ | ✅ | ✅ days_back filter |
| Memory Nudge | ❌ | ❌ | ✅ Periodic | ❌ | ❌ | ✅ /nudge endpoint |
| Auto-Import | ❌ | ❌ | n/a | ❌ | ❌ | ✅ Hermes state.db |
| Auto-Sync | ❌ | ❌ | n/a | ❌ | ❌ | ✅ 5min daemon |
| Dashboard (UI) | ❌ | ❌ | ✅ Desktop | ❌ | ❌ | ✅ Memory Galaxy + Health |
| Graph UI | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ Entity browser in dash |
| MCP Tools | 30+ | ❌ | Built-in | ❌ | ❌ | 6 tools |
| API Keys | Needs OpenAI | ❌ | None | ❌ | Needs LLM key | ✅ None (Ollama) |
| Install | npx gbrain |
Complex | Built-in | Plugin | pip install |
🤖 One‑click via agent |
You get all of this in a single
docker compose up: — PostgreSQL + pgvector + HNSW indexes — not SQLite, not files — Knowledge graph with entity extraction + graph traversal — not just vector search — Memory tiers + versioning + compression — no other system has all three — A full animated Dashboard with galaxy view, health panel, and interactive tools — Zero API keys, zero cloud, zero data leaving your machine — One‑click install: paste the GitHub URL into any Hermes or OpenClaw agent
Contributions of all kinds are welcome —
feel free to open PRs or issues.
See CONTRIBUTING.md for code style, commit conventions, and PR workflow.
Built for AI Agent autonomy.
If you enjoy this project, consider sharing your experience — a short video review, a tweet, or a TikTok post helps others discover it.





