Setup
- Sign in to the Mem0 dashboard and open the API Keys page under Settings.
- Create a key and copy it. The organization and project come from the key.
- Pick the scope to mount: one
user_id,agent_idorrun_id.
- Set exactly one scope. A pair such as
user_idandagent_idis refused: Mem0 splits a memory added with both into separate memories, so a combined filter matches nothing. - An agent or run scope sets
agent_idorrun_idinstead ofuser_id. host(defaulthttps://api.mem0.ai) points at another Mem0 API host.- Keep the key out of public browser bundles; call Mem0 from a server instead.
Connect
- YAML
- Python
- TypeScript
workspace.yaml
Layout
- A file holds the memory’s full record:
memory,categories,metadata,created_at,updated_atand the rest. statreportsupdated_at, orcreated_atwhen unset, as the modified time.- The
searchCLI runs Mem0’s semantic search in the same scope.
Sample runs
SDK guides
Python
Every config field, the VFS.md and write support.
TypeScript
Every config field, the VFS.md and write support.