Mirix-AI/MIRIX
A self-hosted multi-agent memory API for conversation recall and reusable task experience
Automated SPDX check for reference only — not legal advice. Disclaimer
GitHub Star History
Full-history star trajectory from GitHub official history. Switch ranges or hover any point for exact counts.
Evidence-Backed Technical Brief
AI Deep ReviewArchitecture & Core Mechanics
MIRIX separates long-term memory from the agent that serves the user. A client submits user- and session-scoped messages, including tool calls and results, and a configured meta-agent coordinates six specialized memory agents: core, episodic, semantic, procedural, resource and Knowledge Vault. The caller can retrieve relevant memories against a new conversation. The Python stack includes FastAPI, Uvicorn and SQLAlchemy; Docker Compose provisions the API, React dashboard, PostgreSQL with pgvector and Redis Stack.
Optional Neo4j graph memory changes the retrieval path for episodic and semantic memories. It represents entities as anchors and facts as n-ary frames with named roles, each backed by citations to source memory rows. The graph is off by default, so teams can adopt the REST API or Python client without taking on a graph database.
Key Capabilities & Differentiators
MIRIX supports text, images, voice and screen captures, though screen observation belongs to its earlier desktop-assistant positioning rather than being a prerequisite for API integration. PostgreSQL supports BM25 full-text search alongside vector similarity. The SDK example configures generation and embeddings separately using Google AI, with gemini-3.6-flash and gemini-embedding-001 at 768 dimensions for embeddings. OpenAI and Anthropic SDKs are listed as dependencies, but that alone does not establish which models are supported in each role.
POST /memory/auto_dream reviews and consolidates selected memories. experience covers episodic, semantic and Knowledge Vault entries, while procedural mode can distill recent sessions for a specified meta-agent. dry_run reports what would be processed without applying updates. With graph memory enabled, Auto-Dream refines the graph by default; set graph_only to false when the run should also process stored memories.
Trade-offs & Limitations
Compared with a single vector store, MIRIX distinguishes what happened, what is known and what an agent learned to do. That separation is useful when an assistant must recall user facts and reuse prior task experience, but it adds model configuration and consolidation behavior to test. Neo4j adds source provenance for extracted facts at the cost of another datastore and index to operate. Start without it unless provenance or cross-entity retrieval is important to the workload.
Self-hosting puts long-term storage under operator control, not necessarily inference: configured remote providers still process the data sent to them. Budget for model calls as well as database growth, and test whether consolidation preserves important details before allowing it to write. The evaluation names mem0, Graphiti and other baselines across conversational recall and document QA, but supplies no numeric scores to support a comparative ranking.
Hardware & Deployment Guide
Start with docker compose up -d --pull always. The documented local endpoints are the dashboard on port 5173 and API on 8531. Create an API key in the dashboard, export MIRIX_API_KEY, and install mirix-client for Python integration. The sample uses separately configured remote generation and embedding endpoints, so it does not require local GPU inference and is not an air-gapped setup.
Graph mode requires Neo4j 5.23 or newer; the graph Compose profile supplies Neo4j 5.26 with APOC. Set MIRIX_NEO4J_PASSWORD and enable MIRIX_ENABLE_GRAPH_MEMORY. Fresh databases get the schema at startup, but existing databases require explicit SQL migrations; some concurrent index steps must run outside a transaction. The v0.1.3 release added multi-user support to the SDK and desktop app, while v0.1.6 marked the shift to a standalone memory API for other agents.
MirixClient.add accepts session-scoped conversations with tool calls and tool results; retrieve_with_conversation retrieves against the current conversation.POST /memory/auto_dream supports per-component modes, an experience mode and dry_run inspection without writes.Teams adding persistent memory to an existing agent that needs to recall user facts, retrieve past tool outcomes and reuse task experience across sessions.
You only need document retrieval, cannot operate PostgreSQL and Redis, or need offline inference without separately validating local generation and embedding endpoints.
Quick Start & Installation
docker compose up -d --pull always
Comparison vs. Top Agents & Frameworks Alternatives
Full comparison →| Repository | Stars | 7d Trend | Stack | License | Core Positioning |
|---|---|---|---|---|---|
| MIRIX ★ | 3.5k | +5 | Python | Apache-2.0 | A self-hosted multi-agent memory API for conversation recall and reusable task e |
| nanobot | 50.5k | +157 | Python | MIT | A self-hosted Python gateway for personal AI across web, terminal and chat. |
| hermes-agent | 268.1k | +1.5k | Python | MIT | Self-hosted Python agent with persistent memory and automation across chat and C |
| daily_stock_analysis | 75.9k | +870 | Python | MIT | A Python Agent workbench for multi-market watchlist research and scheduled repor |
AI Context Briefing (for Claude / Cursor / Windsurf)
Standardized architecture summary & quickstart commands ready to paste into coding agents.
curl -sL https://repoforai.com/repo/Mirix-AI/MIRIX.md
Active README embeds unlock Hot-Tier 6h Telemetry Refresh automatically (zero pay-to-rank).
Frequently Asked Questions about MIRIX
How do I attach MIRIX to an existing agent?
MirixClient.add to submit messages under a user_id and session_id. The sample submits tool calls and tool results as part of the conversation; MIRIX does not need to execute those tools to record their outcomes. Use retrieve_with_conversation to fetch relevant memories for the calling agent.Do I need a GPU, and what should I size first?
Can we use it commercially, and does self-hosting keep all data on-premises?
How should we compare MIRIX with mem0, Graphiti or a simpler vector store?
Upstream README & Documentation
This profile focuses on independent engineering analysis and live telemetry. Read the full upstream README, changelog, and examples directly on GitHub.
Top 10 Breakout Open-Source AI Repos, Every Thursday
Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.
Zero spam · 1-click unsubscribe · Privacy Policy