Long-term memory for AI coding agents, kept as Markdown you own. Hybrid BM25 + vector search via MCP.
pip install memtomem==0.7.7 Copy PIP instructions
🧪 Beta — the nine core MCP tools, the mm CLI, and the format of your memory files and config files change only with an Upgrading note in the CHANGELOG, and behind a deprecation window where one is possible. Features marked experimental can change or go away without either — see Stability. Feedback and issue reports are especially welcome at github.com/memtomem/memtomem/issues.
Three plugin workflows carry a project's memory from one session to the next, and from one coding agent to another.
Illustrative output — agent wording and results vary.
# End of a session, in Claude Code > /memtomem:handoff save codex-cli handoff_id: 3f2a9c1e-7b4d-4e8a-9c2f-1d5e6a7b8c9d · scope: project_local · namespace: shared:retry-policy # Next session, in Codex CLI > $memtomem-brief Recent updates and active handoff IDs - 3f2a9c1e-7b4d-4e8a-9c2f-1d5e6a7b8c9d from claude-code → codex-cli > $memtomem-handoff resume 3f2a9c1e-7b4d-4e8a-9c2f-1d5e6a7b8c9d git_head matches the live HEAD · worktree clean · in sync with `origin` `refs/heads/main` # After a few commits, back in Claude Code > /memtomem:update mode: incremental · saved 2 items · commit-derived: 1 · session-derived: 1 handoff save writes one Markdown record into the project's own .memtomem/memories.local; brief only reads; update saves decisions, bug fixes, and preferences as separate items. All three run only when you invoke them. The Project workflows guide has each one's modes, checks, and names per host.
# 1. Install memtomem with all features (Python 3.12+) uv tool install 'memtomem[all]' # or: pipx install 'memtomem[all]' mm --version # 2. Configure storage, search, and optional MCP registration mm init # 3. Verify a complete memory round trip mm status mm add "Deployment checklist uses blue-green rollout" --tags ops mm search "blue-green" The search should return the sentence you just added. mm add writes to your configured user memory directory and indexes the entry immediately, so this path works without an existing notes directory or a connected editor. Choose Minimal in the setup picker for a no-model-download first proof and rerun mm init later to add semantic search. To index existing files next, run mm index /path/to/your/notes.
To run the session loop, install the plugin for your coding agent (Claude Code, Codex CLI, OpenCode, Kimi Code, Antigravity, or Cursor), then register the project memory tier with cd && mm mem init --scope project_local and run the brief workflow in a new session (/memtomem:brief in Claude Code; the guide above lists each host's name). The Claude Code & Codex CLI plugin quickstart (한국어) walks through plugin installation and a first memory save-and-search round trip in 10–15 minutes; Getting Started covers install alternatives and MCP Client Setup covers manual registration for other editors.
[all] includes local ONNX embeddings, Korean tokenization, code chunking, the Web UI, Langfuse tracing, and LangGraph Store support. The Ollama and OpenAI embedding providers need no extra, so a bare memtomem install can use them; without a provider it searches by keyword (BM25). OpenAI embeddings, a cloud LLM, or the Cohere reranker send note text to that service; see What leaves your machine. See the optional extras table for smaller bundles. If mm is not on PATH, run uv tool update-shell and open a new shell. If an install appears stale, re-run it with --refresh. To upgrade an existing uv tool install, run mm upgrade rather than uv tool install again: it keeps the extras it detects and, on macOS and Linux, stops running servers first (see the CLI reference).
memtomem is the long-term-memory store. memtomem-stm is a separate, optional MCP proxy for automatic surfacing, compression, and caching.
The complete MCP table lists every tool by category.
Full documentation lives in the memtomem GitHub repo and at memtomem.com:
Apache License 2.0 — see LICENSE for details.
Both files in this release have provenance metadata.
all code korean langfuse langgraph ollama onnx openai web
agent-memory ai-agents bm25 claude-code hybrid-search local-first long-term-memory markdown mcp mcp-server memory model-context-protocol rag semantic-search vector-search
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 8, 2026.
Both files in this release have been uploaded with provenance metadata.
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.




