Are you an AI agent? See Sign up as an agent: create a working API key in four commands, with no email or dashboard.
Prerequisites
- Mem0 Platform account (Sign up here)
- API key (Get one from dashboard)
- Python 3.10+, Node.js 18+, or cURL. The CLI needs either Node.js 18+ or Python 3.10+.
Store your first memory
1
Install
Pick a tab and use the same one for every step below.
2
Set your API key
3
Add a memory
4
Search memories
What’s next?
You stored and searched your first memory. Start with scoping, since every call you make from here needs it:Scope memories to users and agents
What
user_id actually does, plus the agent_id, app_id, and run_id fields that came back empty above.How Mem0 works
Why one sentence became two memories, and how Mem0 decides what to keep.
Update and delete memories
The operations beyond add and search, for when stored facts change or go stale.
Use Mem0 with your agent framework
Wire memory into LangChain, CrewAI, LangGraph, or the OpenAI Agents SDK.
Something not working? The FAQs and troubleshooting page covers the common setup errors.