Credentials. A DeepMem Cloud key (dm_live_) grants access to all stored memories, so keep it server side.
Who it is forA developer whose agent already uses Mem0 and wants a cheaper or self-hosted backend.
The problemRewriting memory calls to change vendors is risky.
The outcomeThe same MemoryClient calls running against DeepMem.
What you need first
- Python
- Docker for self-hosting with Qdrant, or a DeepMem Cloud key
- An LLM provider for fact extraction
Steps
- Install with
pip install deepmem-client - Replace from mem0 import MemoryClient with from Deepmem import MemoryClient
- Set the API key or point the base URL at your own server
- Run your existing add and search calls
Prompt for your agent
In <project>, replace the Mem0 import with deepmem's MemoryClient after `pip install deepmem-client`, run one add and one search for a test user, and confirm results come back with unchanged call signatures.
Caveat. add with infer=True is asynchronous, so a search immediately after an add may not see the new memory yet.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for deepmemteam/deepmem and "Switch an app from Mem0 to DeepMem by changing one import"
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