pypi mlx-memostdioMITupdated 7d ago
Your coding agent starts every session with amnesia. memo fixes that โ 100% on your own machine.
What can you do with memo?
memo
Your coding agent starts every session with amnesia. memo fixes that โ 100% on your own machine.
Persistent, searchable memory for Claude Code, Codex, Cursor, Cline, Devin, and OpenCode. No cloud, no API keys, no Ollama, no vector DB to run. And it spends fewer tokens, not more.

Install
curl -fsSL https://raw.githubusercontent.com/jagoff/memo/v4.15.0/install.sh | bash
Prefer a package manager? uv tool install mlx-memo ยท pipx install mlx-memo ยท brew tap jagoff/memo && brew install mlx-memo
Then:
memo doctor # self-check
memo save 'we use Postgres, not Mongo' # save a decision
memo search 'what database did we pick?' # search by meaning
That's it. Your agents pick it up over MCP automatically โ the installer wires every client it finds.
New Mac:
curl -fsSL https://raw.githubusercontent.com/jagoff/memo/v4.15.0/install.sh | bash
memo sync bootstrap git@github.com:yourname/memo-sync.git
Agent-managed setup:
curl -fsSL https://raw.githubusercontent.com/jagoff/memo/v4.15.0/install.sh | bash
memo doctor --strict-runtime
On Linux or just want to look around first?
docker run --rm ghcr.io/jagoff/memo:latest memo doctor
Why this saves you money
Most memory servers add context. memo is built to remove it.
| Profile | Tools | Schema tokens |
|---|---|---|
agent (default) |
43 | ~9.7k |
core / slim |
60 | ~13.2k |
full / default |
165 | ~30.6k |
The default MCP surface is 43 tools, not 165 โ 74% fewer tools, and about 68% less schema context: 43 tools / ~9.7k schema tokens versus 165 tools / ~30.6k tokens on the full surface โ overhead paid every session, in every client.
Ambient recall injects one relevant memory before the model answers. The bundled Claude Code hook caps that injection at ~160 tokens. memo roi reports the real grounding and re-ask counts โ the estimated-savings figure it used to print was removed in 4.14.0, because multiplying those counts by hardcoded constants was a savings claim memo could not support. For measured savings, memo tokens reads the provider's own usage counters through the context-compression proxy.
memo roi # value from grounded recalls and avoided re-asks
memo tokens # usage-savings ledger
Three things nothing else does
๐ฐ๏ธ Time-machine โ query your knowledge as it was
memo as-of ask "what was the deploy strategy?" --date 2026-02-01
memo diff --from 2026-01-01 --to 2026-03-01
Full historical reconstruction by reverse-replaying history.db. Useful when you need to know why past-you made a call, not just what past-you decided.
โก Contradiction radar โ memory that notices when you change your mind
memo contradict scan # find conflicting facts corpus-wide
memo contradict triage # resolve: fuse / newer-wins / dismiss
Change a decision and memo flags the now-stale version, so the agent stops reintroducing what you already threw out.
๐ฎ Dream โ it optimizes itself while you sleep
memo dream run
A 7-phase nightly pipeline: inventory โ mine signals โ resolve conflicts โ prune stale โ synthesize cross-cluster insights โ optimize โ pre-warm the top-100 query embeddings so tomorrow's recall stays under 200 ms. Every run writes a receipt you can audit. Zero intervention.
How it works
Hybrid retrieval. A vector leg (MLX on Apple Silicon, sentence-transformers on CPU) and a BM25 leg (FTS5, diacritic-folding for Spanish) run in parallel, fuse via Reciprocal Rank Fusion, then go through an optional MLX cross-encoder rerank.
Markdown is the source of truth. Every memory is a plain .md file you can read, grep, and version-control. SQLite is a derived index that rebuilds from the files at any time โ hand-edit in Obsidian and your edit wins on the next memo reindex. Nothing is locked in a database you can't open.
Prompts and memories stay on your machine. Embedder, reranker, and LLM all run in-process. No telemetry. Memory travels only if you point memo sync at a git remote you own. Normal startup is fully offline; remote update checks and auto-update require an explicit opt-in. โ Privacy and network policy
Also in the box: cross-agent memo resume (reopen any session from any agent), cross-Mac git sync, a knowledge graph with optional codegraph symbol edges, encrypted secret storage, OCR/audio ingestion, evidence packs, outcome learning, signed federation, and a local chat UI over your memory (memo chat serve). โ Full feature reference
How it compares
Verified July 2026 against each project's own docs. Corrections welcome โ open an issue and I'll fix the table.
| memo | mem0 | letta | cognee | basic-memory | cipher | |
|---|---|---|---|---|---|---|
| 100% local, no cloud API | โ | โ ๏ธ | โ ๏ธ | โ ๏ธ | โ | โ ๏ธ |
| Time-machine (rewind to any date) | โ | โ | โ ๏ธ | โ | โ ๏ธ | โ ๏ธ |
| Contradiction detection + resolution | โ | โ ๏ธ | โ ๏ธ | โ | โ | โ |
| Autonomous nightly maintenance | โ | โ | โ | โ | โ | โ |
| Token-economy MCP profiles | โ | โ | โ | โ ๏ธ | โ | โ |
| Markdown / Obsidian as source of truth | โ | โ | โ ๏ธ | โ | โ | โ |
โ first-class ยท โ ๏ธ partial, config-gated, or add-on ยท โ absent
Closest comparators are basic-memory (local-first + Obsidian + MCP โ same thesis) and cipher (memory for coding agents).
Requirements
| Support | |
|---|---|
| macOS, Apple Silicon (M1โM4) | Full โ MLX embedder + reranker + ask/synthesize/dream |
| Linux / Ubuntu | Standalone CPU backend โ search, recall, save. pipx install "mlx-memo[cpu]" ยท docs/ubuntu.md |
| Intel Mac | Unsupported โ current PyTorch releases do not ship Python 3.13 wheels for this platform |
| Docker | Cross-platform, CPU backend ยท docs/docker.md |
Python โฅ 3.13 (the installer handles this via uv if you don't have it). First install pulls ~8 GB of models, 5โ15 min. Optional: an Obsidian vault โ without one, memo uses ~/Documents/memo/.
Docs
| Install detail, installer knobs, new-Mac migration | reference.md โบ Install |
| Per-client MCP setup (Claude Desktop, Cursor, Cline, Continue) | reference.md โบ MCP setup |
| Ambient recall, capture, and tuning | reference.md โบ Ambient memory |
Full CLI reference (145 commands) + memo tui |
reference.md โบ CLI |
All MEMO_* flags and model profiles |
reference.md โบ Configuration |
| Architecture and design notes | reference.md โบ Design |
| Privacy and network policy | PRIVACY.md |
All 145 top-level CLI commands
Core: save search ask get edit rename delete list
Recall & Hooks: recall recall-hook context briefing continuity prewarm capture-tick capture-stop interject ask-gaps guard digest
Session & History: history as-of diff record-history session chat-session resume reflect mine-history episodes chronicle
Maintenance: reindex maintain review dream consolidate synthesize dedupe cross-dedup retier contradict coordinate terminal invalidate temporal compress-context ops
Analysis & Quality: health stats doctor journey-check lint drift analytics eval roi tokens token-savings usefulness gaps outcome profile confidence graduation hype definitive evidence
Knowledge Graph: graph entities entity extract-entities links version related
Advanced Search: embed rerank contextual retrieve context-pack chat chat-ask repo
Import / Export / Sync: import export backup restore sync ingest federation
Visualization: tui dashboard map logs hook-log
Setup & Config: init setup config install-mcp install-watcher uninstall-watcher install-slash install-statusline install-recall-hook install-shell-wrapper install-shims startup-banner migrate migrate-vault migrate-independence update upgrade self-update watch release onboard
Daemons: daemons recall-daemon ingest-daemon maint-daemon embed-daemon idle-daemon
Other: backend-native collaborative events feedback query mandate drift sleep-cycle operational ocr-image provenance secret verbatim mcp-command codex-badge debug-recall http-api proxy mine-git token-gate fix undo code-facts code-nudge code-health
Contributing
git clone https://github.com/jagoff/memo && cd memo
uv pip install -e '.[dev]'
Issues and PRs welcome โ see CONTRIBUTING.md. If memo is useful to you, a โญ genuinely helps other people find it.
MIT licensed. Built on Apple MLX, sqlite-vec, and codegraph.
Install
Add memo to your client. Pick the one you use.
claude mcp add mlx-memo -- uvx mlx-memocodex mcp add mlx-memo -- uvx mlx-memoamp mcp add mlx-memo -- uvx mlx-memo{
"mcpServers": {
"mlx-memo": {
"command": "uvx",
"args": [
"mlx-memo"
]
}
}
}Add to `claude_desktop_config.json`, then restart Claude Desktop.
{
"mcpServers": {
"mlx-memo": {
"command": "uvx",
"args": [
"mlx-memo"
]
}
}
}Add to `~/.cursor/mcp.json`, or `.cursor/mcp.json` for a single project.
code --add-mcp '{"name":"mlx-memo","command":"uvx","args":["mlx-memo"]}'Or add the block manually to `.vscode/mcp.json` under `servers`.
{
"mcpServers": {
"mlx-memo": {
"command": "uvx",
"args": [
"mlx-memo"
]
}
}
}Add to `~/.codeium/windsurf/mcp_config.json`.
{
"mcpServers": {
"mlx-memo": {
"command": "uvx",
"args": [
"mlx-memo"
]
}
}
}Add to `cline_mcp_settings.json` via the MCP Servers panel.
{
"mcpServers": {
"mlx-memo": {
"command": "uvx",
"args": [
"mlx-memo"
]
}
}
}Add to `~/.gemini/settings.json`.
{
"mcpServers": {
"mlx-memo": {
"type": "local",
"command": "uvx",
"args": [
"mlx-memo"
],
"tools": [
"*"
]
}
}
}Add to `~/.copilot/mcp-config.json`, or run `/mcp add` inside the CLI.
{
"context_servers": {
"mlx-memo": {
"command": {
"path": "uvx",
"args": [
"mlx-memo"
]
}
}
}
}Add to your Zed `settings.json`.
uvx mlx-memoRun `goose configure`, choose **Add Extension โ Command-line Extension**, and paste this command.
Score
39 / 100
Incomplete
- Documentation25/25
- Maintenance25/25
- Trust13/20
- Capability0/15
- Install experience12/15
- Documents what it does and how to connect
- Has a resolvable package or endpoint
- Exposes at least one tool, prompt or resource
- README has substantive content
- Includes a code example
- Documents its configuration
- Mentions credentials or security posture
- Last commit 0 days ago
- Has a release history
- Repository is not archived
- Licensed MIT
- Namespace verified in the official MCP registry
- Claimed by its owner
- Published under an organisation
- 0 tool(s) documented
- Provides prompt templates
- Provides resources
- 12 documented install method(s)
- Published to a package registry
- Offers a hosted endpoint โ no local install
Version history
| Versions | Published |
|---|---|
| 4.15.0Latest | Aug 31, 2026 |
| 4.14.10 | Aug 30, 2026 |
| 4.14.9 | Aug 30, 2026 |
| 4.14.8 | Aug 30, 2026 |
| 4.14.7 | Aug 29, 2026 |
| 4.14.6 | Aug 28, 2026 |
| 4.14.5 | Aug 28, 2026 |
| 4.14.4 | Aug 27, 2026 |
| 4.14.3 | Aug 26, 2026 |
| 4.14.2 | Aug 26, 2026 |
| 4.14.1 | Aug 25, 2026 |
| 4.14.0 | Aug 25, 2026 |
| 4.13.3 | Aug 19, 2026 |
| 4.13.2 | Aug 19, 2026 |
| 4.13.1 | Aug 18, 2026 |
| 4.13.0 | Aug 18, 2026 |
| 4.12.2 | Aug 17, 2026 |
| 4.12.1 | Aug 17, 2026 |
| 4.12.0 | Aug 17, 2026 |
| 4.11.3 | Aug 16, 2026 |
| 4.11.2 | Aug 16, 2026 |
| 4.11.1 | Aug 16, 2026 |
| 4.11.0 | Aug 15, 2026 |
| 4.10.2 | Aug 15, 2026 |
| 4.10.1 | Aug 14, 2026 |
| 4.10.0 | Aug 13, 2026 |
| 4.4.0 | Jul 25, 2026 |
| 4.3.0 | Jul 25, 2026 |
| 4.2.0 | Jul 25, 2026 |
| 4.1.0 | Jul 24, 2026 |
| 4.0.1 | Jul 24, 2026 |
| 4.0.0 | Jul 23, 2026 |
| 3.12.1 | Jul 22, 2026 |
| 3.12.0 | Jul 22, 2026 |
| 3.11.0 | Jul 22, 2026 |
| 3.10.0 | Jul 21, 2026 |
| 3.9.0 | Jul 21, 2026 |
| 3.8.2 | Jul 21, 2026 |
| 3.8.1 | Jul 21, 2026 |
| 3.8.0 | Jul 20, 2026 |
| 3.7.0 | Jul 16, 2026 |
| 3.5.2 | Jul 15, 2026 |
| 2.12.17 | Jul 7, 2026 |
| 2.12.16 | Jul 7, 2026 |
| 2.12.15 | Jul 6, 2026 |
| 2.12.14 | Jul 6, 2026 |
| 2.12.13 | Jul 6, 2026 |
| 2.12.12 | Jul 6, 2026 |
| 2.12.11 | Jul 5, 2026 |
| 2.12.10 | Jul 5, 2026 |
| 2.12.6 | Jul 3, 2026 |
| 2.9.7 | Jul 1, 2026 |
| 2.9.5 | Jul 1, 2026 |
| 2.6.5 | Jun 30, 2026 |
| 2.6.3 | Jun 30, 2026 |
| 2.6.2 | Jun 30, 2026 |
| 2.6.1 | Jun 30, 2026 |
| 2.6.0 | Jun 30, 2026 |
| 2.3.3 | Jun 28, 2026 |
| 0.8.0 | May 21, 2026 |
