Memorius
Universal memory vault for any AI agent.
Works with Claude Code, Codex CLI, Gemini CLI, OpenClaude, OpenCode, Pi, OpenClaw, and any MCP-compatible agent.
📚 Documentation: https://dream-pixels-forge.github.io/memorius/ — install, CLI reference, MCP server, hooks, REST API, architecture, and the memory engine, all on the site.
If you find this project useful, leaving a star ⭐ on the repository is the best way to support my work!
Memorius is a self-contained, agent-agnostic memory system with hierarchical knowledge organization, pluggable embeddings, and neuroscience-inspired consolidation. One vault, many frontends — CLI, MCP, REST, and auto-detecting agent hooks. No cloud, no API keys, no lock-in.
Install
pip install memorius
All features — vector search, cross-encoder reranker, REST API server, SQLite-vec backend, OpenAI embeddings, knowledge graph, and the agent skill — are included out of the box. No extra install flags needed.
Verify:
memorius --version
memorius init # creates ~/.memorius/config.yaml + storage dir
CLI Reference
memorius stats
Show vault + memory + graph statistics --json Output as JSON
memorius status
Show vault status --json Output as JSON
memorius bookcase
Launch the 3D walkable vault bookcase (browser opens automatically, loopback only). --port REST API port (default: 8912) --static-port Static asset port for the bookcase page (default: 8400) --no-browser Don't open the browser; just serve the page
Vault Bookcase (3D walkable)
Run the bookcase:
memorius bookcase
It starts the REST API on http://127.0.0.1:8912, serves the bookcase page on
http://127.0.0.1:8400/bookcase.html, and opens your browser. Everything is
loopback-only — nothing leaves your machine.
Use memorius bookcase --no-browser to serve without opening a tab, then open
the printed URL yourself. Use --port / --static-port if the defaults are
taken.
Once the page is open:
- Walk: WASD or arrow keys at eye height, Shift to hurry. You can't pass through shelves.
- Look: click the room to grab mouse-look (a crosshair appears; Esc releases), or click-drag.
- The librarian is the Memorius hippo. He meets you at the entrance and is waiting beside every book you ask for, holding his glowing book toward it.
- Ask the librarian: press / and type (or hold the mic). The librarian's lantern takes off; the camera follows it in one crane move up over the stacks and down into the right aisle. Matching books slide out of the shelf, the top hit furthest, and the librarian says where it is relative to you ("about 7 metres to your right, on the middle shelf").
- Results: N / P walk you to the next / previous match; F flies back to it.
- Read: click a book. It's drawn out of the row and opens in a reading panel with tags, age, "beside it on the shelf" neighbours, Walk me there and Read aloud.
- Map: M toggles the floor plan (you, the lantern, the hits); click it to be walked there.
- Vault / layout: dropdowns switch vault (from
GET /vaults) or light the newest books. - Reset / skip: R resets the view; Space or Esc skips a camera move. ? shows all controls.
- Colour: every folder has its own cloth binding; fresher memories are brighter with shinier gilt.
- Floor plan: the vault is a building. Each shelf is a bay off the central aisle (alternating left and right, with a sign over its opening), each folder is a case inside its bay, read clockwise, and books run left to right from eye level down. Positions never move, so you can learn where things live. "Light newest" makes the newest books glow and lean out, and the newest also stand on the new-arrivals table by the doors.
Camera moves, dust and head-bob respect prefers-reduced-motion.
Quick start
# 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 conversation
memorius mine transcript.txt --vault conversations
# Check status
memorius status
That's the whole loop: store → embed → search. Read the Getting Started guide for the vault hierarchy, the agent skill, and a recommended first-week flow.
Documentation
The full docs live on the site — each concern on its own page:
| Page | What's on it |
|---|---|
| Getting Started | Install, init, first memory, the Vault→Shelf→Folder→Note hierarchy, agent skill |
| CLI Reference | Every subcommand and flag (incl. repair and --json) |
| MCP Server | All 29 tools + per-agent client config snippets |
| Agent Hooks | Auto-detecting lifecycle hooks, 10 actions, normalizers, security |
| REST API | Full endpoint table, auth, rate limits, daemon mode, TLS |
| Architecture | Search pipeline, embeddings, vector backends, graph, configuration |
| Agent Compatibility | Which agents, detection priority, how to plug in your own |
| Memory Engine | Decay, consolidation, pruning, fact-checking, reranking, doctor, repair |
Command cheat sheet (details on the CLI reference)
memorius store "text" [--vault/--shelf/--folder/--note/--ttl]
memorius search "query" [--n/--expand-graph/--rerank/--web/--tag]
memorius mine file.txt [--vault/--text]
memorius extract file.txt [--backend openai|ollama|regex]
memorius diary "session" [--title/--summary]
memorius ls [vault]
memorius consolidate [--threshold/--dry-run]
memorius factcheck "stmt" [--web]
memorius profile "session"
memorius prune [--threshold/--dry-run/--delete]
memorius graph [view|export-html|stats|json]
memorius learn "text" --category bug_fix
memorius recall "query"
memorius obsidian [list|import|export]
memorius export ./backup [--format json|markdown]
memorius import ./backup.json [--replace]
memorius doctor # 6 health checks
memorius repair [--reindex/--dry-run] # fix vector/meta drift (v0.8.6)
memorius stats [--json] # vault + memory + graph + doctor summary
memorius status [--json] # vault + embeddings + recent diaries
memorius serve # MCP server (stdio)
memorius serve-rest [--daemon/--stop] # FastAPI server
License
MIT · Full release history in CHANGELOG.md.
Metadata
Release files for memorius 0.9.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| memorius-0.9.5.tar.gz | 827.8 kB | With provenance | Details for memorius-0.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| memorius-0.9.5-py3-none-any.whl | Python 3 | none | any | Details for memorius-0.9.5-py3-none-any.whl |
Total release size: 1.6 MB
Release files / memorius-0.9.5.tar.gz
| Download URL | memorius-0.9.5.tar.gz |
|---|---|
| Size | 827.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6405d3824d4acad7cc50418ef0360014da123de398dfc6d148b0ba7e704fa0cc
|
|
BLAKE2b-256 checksum How to use checksums |
cf568e7ba3de578ce90439fc7be64e49a881197c56205446c31c67ebf441b78e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logRelease files / memorius-0.9.5-py3-none-any.whl
| Download URL | memorius-0.9.5-py3-none-any.whl |
|---|---|
| Size | 770.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
07e4495f7329cbd612c0cb99e7052369cf77d0a7fdcf96dcd9abf210d9364a8c
|
|
BLAKE2b-256 checksum How to use checksums |
adab0b430cfca3c020e826f000e52384cfe68eb7881880a971d3aca7064c1dc0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logSecurity for memorius 0.9.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for memorius-0.9.5.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.