Keys / Mem0
MEM0_API_KEY
The Mem0 Platform API key your app stores and searches memories with. The key sets which organization and project the requests go to.
- Expires
- the docs don't say
- API
- none documented for the Platform; dashboard only
Get it
Create one on app.mem0.ai/dashboard/api-keys. The steps aren't recorded yet.
Set it
MEM0_API_KEY=...
The Python SDK's MemoryClient reads it from this variable when you don't pass a key. The TypeScript client doesn't; your app passes it as apiKey. Or keep it out of .env with keypin: keypin run -- npm run dev
Replace it
- In the Mem0 dashboard, create a new key in the same project.
- Deploy it everywhere that reads
MEM0_API_KEY. - Check that requests succeed with the new key, then delete the old one.
Set rotate_every on the key in keypin.toml and a rotated date on its vault item, and keypin status shows when it's due.