How to Install Claude Mem for Long-Term AI Memory
A skill that gives AI assistants long-term memory: it remembers what has been done across sessions, compresses past work with AI and loads it back when needed.
What is Claude Mem?
Claude Mem is a skill that gives AI assistants long-term memory. It comes from thedotmack/claude-mem on GitHub. It remembers what has been done across sessions, so you do not have to explain the project from the beginning every time. It compresses past work with AI and loads it back when needed, and it works with more than one AI assistant.
The problem it solves is familiar to anyone who uses an AI coding assistant: each new session starts from zero. Claude Mem keeps the context alive between sessions, so the assistant picks up where it left off.
What can you do with it?
- Let the AI remember work between sessions
- Compress past work with AI and load it when needed
- Use it with several AI assistants, not just one
- Stop re-explaining the project at the start of every session
How to install Claude Mem
On Claude Code, the recommended route is the plugin. Paste these two lines into the Claude Code chat box, not the terminal, pressing Enter after each:
/plugin marketplace add thedotmack/claude-mem/plugin install claude-memFor Cursor, Windsurf, Codex or other editors, run this in a terminal instead:
npx claude-mem installOn Windows, open CMD by pressing Start, typing cmd and pressing Enter. Do not use PowerShell, which blocks the npx.ps1 script through its ExecutionPolicy and will fail. On macOS or Linux, open a normal terminal.
First steps after installing
Work on a project as usual for a session or two, then start a new session and ask the assistant what it remembers about the project. If it recalls the earlier work, the memory is working. Give it a task that builds on something from a previous session, such as continuing a feature, and check that it picks up the context instead of asking you to repeat it.
Memory works best when the project has a clear history. If you switch projects often, check that the assistant is recalling the right one before acting on its suggestions.
Frequently asked questions
Is Claude Mem free? Yes. It is an open-source project on GitHub, and you can download and use it free of charge. Note that running it needs an AI assistant, which itself needs a subscription or API access.
Is it hard to install? No. Two pasted lines or one command installs it.
Does it remember everything? It compresses past work and loads what is relevant, so it recalls the important parts rather than every detail.
Comments (0)