Who it is forA developer who wants Claude Code to remember project preferences.
The problemAgents forget preferences between sessions.
The outcomeMemories the agent can add and retrieve by meaning.
What you need first
- Python or Node.js
- Docker to self-host the server
- An LLM provider key for memory extraction
Steps
- Install with
npm install -g @mem0/cli - Run
mem0 init --agent --agent-caller claude-code - Add a memory with
mem0 add "I am using mem0" - Search with
mem0 search "am I using mem0"
Prompt for your agent
Install the mem0 CLI, initialize it for <agent>, add the memory <fact>, and search for it. Confirm the search returns it.
Caveat. Agent sign-up uses the managed platform unless you point the CLI at your own server.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for mem0ai/mem0 and "Give your coding agent a memory it can add to and search"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer