Memorius is a self-contained, agent-agnostic memory system with hierarchical knowledge organization, pluggable embeddings, and built-in MCP + REST servers. 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.
ChromaDB default with bundled ONNX, sentence-transformers for higher quality, or OpenAI for production. Swap with one config change.
Claude Code, Codex CLI, Gemini CLI, OpenCode, Pi, OpenClaude, OpenClaw — auto-detected from hook payloads, no config needed.
FastAPI HTTP server for any non-MCP client. GET /health, POST /store, POST /search, and more.
Bidirectional sync with Obsidian vaults. YAML frontmatter is parsed, folder hierarchy preserved. memorius obsidian import/export.
Install, initialize, store, search. That's it.
# Install
pip install memorius
# Initialize a vault
memorius init
# Store a memory
memorius store "The sky is blue because Rayleigh scattering scatters shorter wavelengths more" \
--vault main --shelf science --folder physics
# Semantic search
memorius search "why is the sky blue"
# Mine memories from a transcript
memorius mine transcript.txt --vault conversations
# Write a diary entry
memorius diary --session "session-001" --title "Research findings"
# Check vault status
memorius status
No cloud account, no API keys, no setup ceremony. Just install and go.
pip command, no heavy dependencies beyond ChromaDB.~/.memorius/.memorius store — automatic embedding and hierarchical tagging.A single Python package, four entry points, two storage backends.
┌────────────────────────────────────────────────────────────┐
│ Memorius │
├────────────────────────────────────────────────────────────┤
│ CLI memorius init | store | search | mine | ... │
│ MCP JSON-RPC protocol server (stdin/stdout) │
│ REST FastAPI HTTP server (optional) │
│ Hooks Auto-detect: Claude Code, Codex, Gemini, ... │
│ Obsidian Import / export notes from Obsidian vaults │
├────────────────────────────────────────────────────────────┤
│ Vault Engine │
│ ├── ChromaStore Vector search (ChromaDB) │
│ ├── SQLiteStore Metadata & hierarchy (SQLite) │
│ └── Embeddings Pluggable providers (ONNX / SF / OA) │
├────────────────────────────────────────────────────────────┤
│ Vault > Shelf > Folder > Note hierarchy │
│ Diaries Session diary entries │
│ Mine Extract memories from transcripts │
├────────────────────────────────────────────────────────────┤
│ Plugin Gen → Generate per-agent plugins │
│ Normalizers → Import Discord/Telegram/WhatsApp/etc │
│ Obsidian → Bidirectional vault sync │
└────────────────────────────────────────────────────────────┘
sentence-transformers, or OpenAI.--agent flag required.Hooks are auto-detected from the event payload — pipe JSON in, get memories out. No per-agent config to maintain.
Detection priority: OpenClaude → Claude Code → Codex → Gemini CLI → OpenClaw → OpenCode → Pi → Generic.
Every command you'll need on day one. Full reference in the README.