Memorius is a self-contained, agent-agnostic memory system with hierarchical knowledge organization, pluggable embeddings, and neuroscience-inspired consolidation. Works with 7 AI coding agents out of the box.
pip install memorius
Drop-in memory that any AI agent can use. No lock-in, no per-agent rewrites — one vault, many frontends.
Point any MCP-compatible client at memorius serve and instantly get memory, semantic search, and diary tools. No SDK to embed.
Organize memory with a Vault → Shelf → Folder → Note hierarchy. Mine conversation transcripts into structured memories automatically.
Learn the hierarchyChromaDB default with bundled ONNX, sentence-transformers for higher quality, or OpenAI for production. Swap with one config change.
ConfigurationClaude Code, Codex CLI, Gemini CLI, OpenCode, Pi, OpenClaude, OpenClaw — auto-detected from hook payloads, no config needed.
All agentsInterference-based forgetting, engram maturation, and neuromodulator gating model how biological memory systems decay and consolidate. Typed graph edges with spreading activation.
Memory engineFastAPI HTTP server for any non-MCP client. Bidirectional Obsidian vault sync with YAML frontmatter and folder hierarchy preservation.
REST APIEach concern lives on its own page. Start with getting started, then dive into the exact surface you're wiring up.
Install, initialize, store your first memory, and understand the Vault → Shelf → Folder → Note hierarchy.
ReadEvery subcommand — store, search, mine, extract, consolidate, prune, repair, doctor, and the full flags on each.
Browse commandsPoint any MCP client at memorius serve. All 29 tools, JSON-RPC over stdio, client config snippets.
Auto-detecting lifecycle hooks for 7 agents. 10 action types, the detection priority, and the memorius-hook CLI.
FastAPI server for non-MCP clients. Full endpoint table, API key auth, rate limits, daemon mode, TLS.
ReferenceHow the vault engine, search pipeline, embeddings, vector backends, and knowledge graph fit together.
Understand itWhich agents are supported, the hook event each emits, detection priority, and how to plug in your own.
Supported agentsTemporal decay, consolidation, pruning, knowledge graph edges, fact-checking, and the repair / doctor health tools.
One npx command installs the pre-built agent skill that teaches Hermes-compatible agents to use memorius proactively.
Install in one command, wire up MCP or hooks, and start storing memories immediately. No cloud, no API keys, no lock-in.