Open-source memory for AI assistants
Questions about long-term memory for AI assistants
How do I give Claude long-term memory with Anamnema?
Anamnema connects to Claude Code: memory reads its conversations and comes back through session events, at the start of a session, on a message, on a name and before an action. Get started shows what you need and something to try in your next session.
How is this different from retrieval-augmented generation (RAG)?
RAG looks up documents so a model can answer a question. Anamnema keeps your assistant's own experience: the conversations it took part in, the decisions and why, the mistakes and lessons, the people. Every memory keeps who said it and the exact lines it came from, so it can be checked against the original and corrected, while the original stays as it was said.
Does it work with local models?
Yes, it is local by default. The notes model runs on your GPU with llama.cpp, and the search models, e5-small-v2 (the encoder) and MiniLM (the reranker), run on the CPU. A model provider's API is an option you choose, not a requirement. Authors and licences are on the Credits page.
What hardware does it need?
An ordinary Linux machine with 16 GB of system memory. To write the notes at home, add a graphics card with 8 GB or more; without one, a model provider's API writes them. A second card lets two jobs run at once. Our own setup and the full list are on Get started.
Is it free?
Yes. Anamnema is open source under the Apache-2.0 licence; third-party models and services keep their own licences.
Does it retrain the model?
No. The memory sits above the model and does not change its weights. The assistant grows from its own work: the day's dialogue becomes notes, notes become lessons, and lessons come back before the next action of that kind.
Which AI assistants does it work with?
Claude Code: memory reads its conversations and comes back through session events. Anamnema also keeps the conversations of Codex, Hermes, Antigravity, Prime and Grok.
Sources for this page
- README.md (working tree, 2026-11-22): status line, "How does it work?", "What can you try today?", "What will you need?", "Engineering and Testing", "Which AI assistants can it work with?", "Contributing, Security and Licence"
- memory-paper.md: §0 "Learning from its own experience", §1 "Problem framing", §2 "Principles"
- LICENSE (Apache-2.0)