[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-mem0-mem0-cli":3,"mdc-m9nvo9-key":47,"related-repo-mem0-mem0-cli":1727,"related-org-mem0-mem0-cli":1817},{"slug":4,"name":4,"fn":5,"description":6,"org":7,"tags":12,"stars":23,"repoUrl":24,"updatedAt":25,"license":26,"forks":27,"topics":28,"repo":42,"sourceUrl":45,"mdContent":46},"mem0-cli","manage Mem0 memory via command line","Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions \"mem0 cli\", \"mem0 command line\", \"@mem0\u002Fcli\", \"mem0-cli\", \"pip install mem0-cli\", \"npm install -g @mem0\u002Fcli\", or is running mem0 commands in a terminal\u002Fshell (mem0 add, mem0 search, mem0 list, mem0 get, mem0 init, mem0 config, mem0 import). Also triggers when query includes CLI flags like --user-id, --output, --json, --agent, or describes bash\u002Fzsh\u002Fterminal\u002Fshell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python\u002FTS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},"mem0","Mem0","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Fmem0.png","mem0ai",[13,17,20],{"name":14,"slug":15,"type":16},"Automation","automation","tag",{"name":18,"slug":19,"type":16},"CLI","cli",{"name":21,"slug":22,"type":16},"Memory","memory",60691,"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0","2026-07-13T06:12:48.46494","Apache-2.0",7066,[29,30,31,32,33,34,35,36,37,22,38,39,40,41],"agents","ai","ai-agents","application","chatbots","chatgpt","genai","llm","long-term-memory","memory-management","python","rag","state-management",{"repoUrl":24,"stars":23,"forks":27,"topics":43,"description":44},[29,30,31,32,33,34,35,36,37,22,38,39,40,41],"Universal memory layer for AI Agents","https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002FHEAD\u002Fskills\u002Fmem0-cli","---\nname: mem0-cli\ndescription: >\n  Mem0 CLI -- the command-line interface for mem0 memory operations.\n  TRIGGER when: user mentions \"mem0 cli\", \"mem0 command line\", \"@mem0\u002Fcli\",\n  \"mem0-cli\", \"pip install mem0-cli\", \"npm install -g @mem0\u002Fcli\", or is running\n  mem0 commands in a terminal\u002Fshell (mem0 add, mem0 search, mem0 list, mem0 get,\n  mem0 init, mem0 config, mem0 import). Also triggers when query includes CLI flags\n  like --user-id, --output, --json, --agent, or describes bash\u002Fzsh\u002Fterminal\u002Fshell usage.\n  DO NOT TRIGGER when: user asks about programmatic SDK integration in Python\u002FTS\n  code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).\nlicense: Apache-2.0\nmetadata:\n  author: mem0ai\n  version: \"1.1.0\"\n  category: ai-memory\n  tags: \"cli, terminal, memory, ai, command-line\"\ncompatibility: Node.js 18+ (npm install -g @mem0\u002Fcli) or Python 3.10+ (pip install mem0-cli), MEM0_API_KEY env var\n---\n\n# Mem0 CLI\n\nThe official command-line interface for the Mem0 memory platform. Add, search, list, update, and delete memories from the terminal -- for developers, AI agents, and CI\u002FCD pipelines.\n\n## Install\n\n**Node.js (npm):**\n```bash\nnpm install -g @mem0\u002Fcli\n```\n\n**Python (pip):**\n```bash\npip install mem0-cli\n```\n\nBoth packages install a `mem0` binary with identical commands, options, and output formats.\n\n## Setup\n\n**Autonomous Mem0 setup for agents (no email, no dashboard):**\n\n```bash\nmem0 init --agent --agent-caller \u003Cyour-name> --json\n```\n\nReplace `\u003Cyour-name>` with the AI agent you are (e.g. `claude-code`, `cursor`, `codex`, `cline`, `aider`). If you forgot to pass `--agent-caller`, run `mem0 identify \u003Cyour-name>` after init — it PATCHes the same key, idempotent, no disruption.\n\nThis mints an evaluation API key in \u003C5 seconds. Use it immediately. Print this line to the human:\n\n> Mem0 memory is running in Agent Mode. Please claim it by running `mem0 init --email \u003Cyour-email>` to transfer ownership to your account.\n\nNever commit API keys, `.env`, or `~\u002F.mem0\u002Fconfig.json`.\n\nAfter the human claims, the same API key keeps working — no agent disruption — and memories are preserved.\n\n**Interactive wizard (for humans):**\n```bash\nmem0 init\n```\n\n**Or set the environment variable directly:**\n```bash\nexport MEM0_API_KEY=\"m0-xxx\"\n```\n\nGet an API key at: https:\u002F\u002Fapp.mem0.ai\u002Fdashboard\u002Fapi-keys?utm_source=oss&utm_medium=skill-mem0-cli\n\n## Quick Reference\n\n### Add a memory\n```bash\nmem0 add \"I prefer dark mode\" --user-id alice\n```\n\n### Search memories\n```bash\nmem0 search \"preferences\" --user-id alice\n```\n\n### List all memories for a user\n```bash\nmem0 list --user-id alice\n```\n\n### Get a specific memory\n```bash\nmem0 get \u003Cmemory-id>\n```\n\n### Update a memory\n```bash\nmem0 update \u003Cmemory-id> \"new text\"\n```\n\n### Delete a single memory\n```bash\nmem0 delete \u003Cmemory-id>\n```\n\n### Delete all memories for a user\n```bash\nmem0 delete --all --user-id alice --force\n```\n\n## Agent \u002F JSON Mode\n\nUse `--json` or `--agent` to get structured output suitable for LLM consumption. Every command wraps its response in a standard envelope:\n\n```json\n{\n  \"status\": \"success\",\n  \"command\": \"search\",\n  \"duration_ms\": 245,\n  \"scope\": { \"user_id\": \"alice\" },\n  \"count\": 3,\n  \"error\": null,\n  \"data\": [\n    { \"id\": \"mem-abc\", \"memory\": \"User prefers dark mode\", \"score\": 0.92 }\n  ]\n}\n```\n\nOn error:\n```json\n{\n  \"status\": \"error\",\n  \"command\": \"search\",\n  \"error\": \"Authentication failed. Your API key may be invalid or expired.\",\n  \"data\": null\n}\n```\n\nThe `--agent` flag is an alias for `--json`. Both write spinners and progress to stderr so stdout is always clean, parseable JSON.\n\n## Node and Python Parity\n\nBoth the Node.js (`@mem0\u002Fcli`) and Python (`mem0-cli`) CLIs are implemented from the same specification (`cli-spec.json`). They share:\n\n- Identical command names, arguments, and flags\n- Identical output formats (text, json, table, quiet)\n- Identical entity ID resolution, graph tri-state, filter building\n- Identical error messages and exit codes\n\nChoose whichever runtime you already have installed. The behavior is the same.\n\n## Common Edge Cases\n\n- **Async processing delay:** After `mem0 add`, memories process asynchronously. Wait 2-3 seconds before searching for newly added content. Use `mem0 event list` to check processing status.\n- **`--all` vs `--entity` delete modes:** `mem0 delete --all -u alice` deletes all memories for user alice. `mem0 delete --entity -u alice` deletes the entity itself AND all its memories (cascade). These are mutually exclusive modes.\n- **Entity ID resolution:** If you pass any explicit scope flag (e.g. `--user-id`), the CLI uses ONLY the explicit IDs and ignores config defaults. If no scope flags are given, all configured defaults apply.\n- **Stdin detection:** When no text argument is provided and input is piped (not a TTY), the CLI reads from stdin. Works with `add`, `search`, and `update`.\n\n## References\n\nLoad these on demand for deeper detail:\n\n| Topic | File |\n|-------|------|\n| Command reference (all commands, flags, options, examples) | [references\u002Fcommand-reference.md](references\u002Fcommand-reference.md) |\n| Configuration (config file, env vars, precedence, init wizard) | [references\u002Fconfiguration.md](references\u002Fconfiguration.md) |\n| Workflows (piping, scripting, CI\u002FCD, agent mode recipes) | [references\u002Fworkflows.md](references\u002Fworkflows.md) |\n\n## Related Mem0 Skills\n\n| Skill | When to use | Link |\n|-------|-------------|------|\n| mem0 | Python\u002FTypeScript SDK, REST API, framework integrations | [local](..\u002Fmem0\u002FSKILL.md) \u002F [GitHub](https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002Fmain\u002Fskills\u002Fmem0) |\n| mem0-vercel-ai-sdk | Vercel AI SDK provider with automatic memory | [local](..\u002Fmem0-vercel-ai-sdk\u002FSKILL.md) \u002F [GitHub](https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002Fmain\u002Fskills\u002Fmem0-vercel-ai-sdk) |\n",{"data":48,"body":54},{"name":4,"description":6,"license":26,"metadata":49,"compatibility":53},{"author":11,"version":50,"category":51,"tags":52},"1.1.0","ai-memory","cli, terminal, memory, ai, command-line","Node.js 18+ (npm install -g @mem0\u002Fcli) or Python 3.10+ (pip install mem0-cli), MEM0_API_KEY env var",{"type":55,"children":56},"root",[57,65,71,78,87,127,135,159,171,177,185,241,307,312,329,350,355,363,382,390,431,444,450,457,500,506,546,552,579,585,623,629,677,683,718,724,761,767,788,1180,1185,1336,1355,1361,1389,1414,1419,1425,1543,1549,1554,1630,1636,1721],{"type":58,"tag":59,"props":60,"children":61},"element","h1",{"id":4},[62],{"type":63,"value":64},"text","Mem0 CLI",{"type":58,"tag":66,"props":67,"children":68},"p",{},[69],{"type":63,"value":70},"The official command-line interface for the Mem0 memory platform. Add, search, list, update, and delete memories from the terminal -- for developers, AI agents, and CI\u002FCD pipelines.",{"type":58,"tag":72,"props":73,"children":75},"h2",{"id":74},"install",[76],{"type":63,"value":77},"Install",{"type":58,"tag":66,"props":79,"children":80},{},[81],{"type":58,"tag":82,"props":83,"children":84},"strong",{},[85],{"type":63,"value":86},"Node.js (npm):",{"type":58,"tag":88,"props":89,"children":94},"pre",{"className":90,"code":91,"language":92,"meta":93,"style":93},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","npm install -g @mem0\u002Fcli\n","bash","",[95],{"type":58,"tag":96,"props":97,"children":98},"code",{"__ignoreMap":93},[99],{"type":58,"tag":100,"props":101,"children":104},"span",{"class":102,"line":103},"line",1,[105,111,117,122],{"type":58,"tag":100,"props":106,"children":108},{"style":107},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[109],{"type":63,"value":110},"npm",{"type":58,"tag":100,"props":112,"children":114},{"style":113},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[115],{"type":63,"value":116}," install",{"type":58,"tag":100,"props":118,"children":119},{"style":113},[120],{"type":63,"value":121}," -g",{"type":58,"tag":100,"props":123,"children":124},{"style":113},[125],{"type":63,"value":126}," @mem0\u002Fcli\n",{"type":58,"tag":66,"props":128,"children":129},{},[130],{"type":58,"tag":82,"props":131,"children":132},{},[133],{"type":63,"value":134},"Python (pip):",{"type":58,"tag":88,"props":136,"children":138},{"className":90,"code":137,"language":92,"meta":93,"style":93},"pip install mem0-cli\n",[139],{"type":58,"tag":96,"props":140,"children":141},{"__ignoreMap":93},[142],{"type":58,"tag":100,"props":143,"children":144},{"class":102,"line":103},[145,150,154],{"type":58,"tag":100,"props":146,"children":147},{"style":107},[148],{"type":63,"value":149},"pip",{"type":58,"tag":100,"props":151,"children":152},{"style":113},[153],{"type":63,"value":116},{"type":58,"tag":100,"props":155,"children":156},{"style":113},[157],{"type":63,"value":158}," mem0-cli\n",{"type":58,"tag":66,"props":160,"children":161},{},[162,164,169],{"type":63,"value":163},"Both packages install a ",{"type":58,"tag":96,"props":165,"children":167},{"className":166},[],[168],{"type":63,"value":8},{"type":63,"value":170}," binary with identical commands, options, and output formats.",{"type":58,"tag":72,"props":172,"children":174},{"id":173},"setup",[175],{"type":63,"value":176},"Setup",{"type":58,"tag":66,"props":178,"children":179},{},[180],{"type":58,"tag":82,"props":181,"children":182},{},[183],{"type":63,"value":184},"Autonomous Mem0 setup for agents (no email, no dashboard):",{"type":58,"tag":88,"props":186,"children":188},{"className":90,"code":187,"language":92,"meta":93,"style":93},"mem0 init --agent --agent-caller \u003Cyour-name> --json\n",[189],{"type":58,"tag":96,"props":190,"children":191},{"__ignoreMap":93},[192],{"type":58,"tag":100,"props":193,"children":194},{"class":102,"line":103},[195,199,204,209,214,220,225,231,236],{"type":58,"tag":100,"props":196,"children":197},{"style":107},[198],{"type":63,"value":8},{"type":58,"tag":100,"props":200,"children":201},{"style":113},[202],{"type":63,"value":203}," init",{"type":58,"tag":100,"props":205,"children":206},{"style":113},[207],{"type":63,"value":208}," --agent",{"type":58,"tag":100,"props":210,"children":211},{"style":113},[212],{"type":63,"value":213}," --agent-caller",{"type":58,"tag":100,"props":215,"children":217},{"style":216},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[218],{"type":63,"value":219}," \u003C",{"type":58,"tag":100,"props":221,"children":222},{"style":113},[223],{"type":63,"value":224},"your-nam",{"type":58,"tag":100,"props":226,"children":228},{"style":227},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[229],{"type":63,"value":230},"e",{"type":58,"tag":100,"props":232,"children":233},{"style":216},[234],{"type":63,"value":235},">",{"type":58,"tag":100,"props":237,"children":238},{"style":113},[239],{"type":63,"value":240}," --json\n",{"type":58,"tag":66,"props":242,"children":243},{},[244,246,252,254,260,262,268,269,275,276,282,283,289,291,297,299,305],{"type":63,"value":245},"Replace ",{"type":58,"tag":96,"props":247,"children":249},{"className":248},[],[250],{"type":63,"value":251},"\u003Cyour-name>",{"type":63,"value":253}," with the AI agent you are (e.g. ",{"type":58,"tag":96,"props":255,"children":257},{"className":256},[],[258],{"type":63,"value":259},"claude-code",{"type":63,"value":261},", ",{"type":58,"tag":96,"props":263,"children":265},{"className":264},[],[266],{"type":63,"value":267},"cursor",{"type":63,"value":261},{"type":58,"tag":96,"props":270,"children":272},{"className":271},[],[273],{"type":63,"value":274},"codex",{"type":63,"value":261},{"type":58,"tag":96,"props":277,"children":279},{"className":278},[],[280],{"type":63,"value":281},"cline",{"type":63,"value":261},{"type":58,"tag":96,"props":284,"children":286},{"className":285},[],[287],{"type":63,"value":288},"aider",{"type":63,"value":290},"). If you forgot to pass ",{"type":58,"tag":96,"props":292,"children":294},{"className":293},[],[295],{"type":63,"value":296},"--agent-caller",{"type":63,"value":298},", run ",{"type":58,"tag":96,"props":300,"children":302},{"className":301},[],[303],{"type":63,"value":304},"mem0 identify \u003Cyour-name>",{"type":63,"value":306}," after init — it PATCHes the same key, idempotent, no disruption.",{"type":58,"tag":66,"props":308,"children":309},{},[310],{"type":63,"value":311},"This mints an evaluation API key in \u003C5 seconds. Use it immediately. Print this line to the human:",{"type":58,"tag":313,"props":314,"children":315},"blockquote",{},[316],{"type":58,"tag":66,"props":317,"children":318},{},[319,321,327],{"type":63,"value":320},"Mem0 memory is running in Agent Mode. Please claim it by running ",{"type":58,"tag":96,"props":322,"children":324},{"className":323},[],[325],{"type":63,"value":326},"mem0 init --email \u003Cyour-email>",{"type":63,"value":328}," to transfer ownership to your account.",{"type":58,"tag":66,"props":330,"children":331},{},[332,334,340,342,348],{"type":63,"value":333},"Never commit API keys, ",{"type":58,"tag":96,"props":335,"children":337},{"className":336},[],[338],{"type":63,"value":339},".env",{"type":63,"value":341},", or ",{"type":58,"tag":96,"props":343,"children":345},{"className":344},[],[346],{"type":63,"value":347},"~\u002F.mem0\u002Fconfig.json",{"type":63,"value":349},".",{"type":58,"tag":66,"props":351,"children":352},{},[353],{"type":63,"value":354},"After the human claims, the same API key keeps working — no agent disruption — and memories are preserved.",{"type":58,"tag":66,"props":356,"children":357},{},[358],{"type":58,"tag":82,"props":359,"children":360},{},[361],{"type":63,"value":362},"Interactive wizard (for humans):",{"type":58,"tag":88,"props":364,"children":366},{"className":90,"code":365,"language":92,"meta":93,"style":93},"mem0 init\n",[367],{"type":58,"tag":96,"props":368,"children":369},{"__ignoreMap":93},[370],{"type":58,"tag":100,"props":371,"children":372},{"class":102,"line":103},[373,377],{"type":58,"tag":100,"props":374,"children":375},{"style":107},[376],{"type":63,"value":8},{"type":58,"tag":100,"props":378,"children":379},{"style":113},[380],{"type":63,"value":381}," init\n",{"type":58,"tag":66,"props":383,"children":384},{},[385],{"type":58,"tag":82,"props":386,"children":387},{},[388],{"type":63,"value":389},"Or set the environment variable directly:",{"type":58,"tag":88,"props":391,"children":393},{"className":90,"code":392,"language":92,"meta":93,"style":93},"export MEM0_API_KEY=\"m0-xxx\"\n",[394],{"type":58,"tag":96,"props":395,"children":396},{"__ignoreMap":93},[397],{"type":58,"tag":100,"props":398,"children":399},{"class":102,"line":103},[400,406,411,416,421,426],{"type":58,"tag":100,"props":401,"children":403},{"style":402},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[404],{"type":63,"value":405},"export",{"type":58,"tag":100,"props":407,"children":408},{"style":227},[409],{"type":63,"value":410}," MEM0_API_KEY",{"type":58,"tag":100,"props":412,"children":413},{"style":216},[414],{"type":63,"value":415},"=",{"type":58,"tag":100,"props":417,"children":418},{"style":216},[419],{"type":63,"value":420},"\"",{"type":58,"tag":100,"props":422,"children":423},{"style":113},[424],{"type":63,"value":425},"m0-xxx",{"type":58,"tag":100,"props":427,"children":428},{"style":216},[429],{"type":63,"value":430},"\"\n",{"type":58,"tag":66,"props":432,"children":433},{},[434,436],{"type":63,"value":435},"Get an API key at: ",{"type":58,"tag":437,"props":438,"children":442},"a",{"href":439,"rel":440},"https:\u002F\u002Fapp.mem0.ai\u002Fdashboard\u002Fapi-keys?utm_source=oss&utm_medium=skill-mem0-cli",[441],"nofollow",[443],{"type":63,"value":439},{"type":58,"tag":72,"props":445,"children":447},{"id":446},"quick-reference",[448],{"type":63,"value":449},"Quick Reference",{"type":58,"tag":451,"props":452,"children":454},"h3",{"id":453},"add-a-memory",[455],{"type":63,"value":456},"Add a memory",{"type":58,"tag":88,"props":458,"children":460},{"className":90,"code":459,"language":92,"meta":93,"style":93},"mem0 add \"I prefer dark mode\" --user-id alice\n",[461],{"type":58,"tag":96,"props":462,"children":463},{"__ignoreMap":93},[464],{"type":58,"tag":100,"props":465,"children":466},{"class":102,"line":103},[467,471,476,481,486,490,495],{"type":58,"tag":100,"props":468,"children":469},{"style":107},[470],{"type":63,"value":8},{"type":58,"tag":100,"props":472,"children":473},{"style":113},[474],{"type":63,"value":475}," add",{"type":58,"tag":100,"props":477,"children":478},{"style":216},[479],{"type":63,"value":480}," \"",{"type":58,"tag":100,"props":482,"children":483},{"style":113},[484],{"type":63,"value":485},"I prefer dark mode",{"type":58,"tag":100,"props":487,"children":488},{"style":216},[489],{"type":63,"value":420},{"type":58,"tag":100,"props":491,"children":492},{"style":113},[493],{"type":63,"value":494}," --user-id",{"type":58,"tag":100,"props":496,"children":497},{"style":113},[498],{"type":63,"value":499}," alice\n",{"type":58,"tag":451,"props":501,"children":503},{"id":502},"search-memories",[504],{"type":63,"value":505},"Search memories",{"type":58,"tag":88,"props":507,"children":509},{"className":90,"code":508,"language":92,"meta":93,"style":93},"mem0 search \"preferences\" --user-id alice\n",[510],{"type":58,"tag":96,"props":511,"children":512},{"__ignoreMap":93},[513],{"type":58,"tag":100,"props":514,"children":515},{"class":102,"line":103},[516,520,525,529,534,538,542],{"type":58,"tag":100,"props":517,"children":518},{"style":107},[519],{"type":63,"value":8},{"type":58,"tag":100,"props":521,"children":522},{"style":113},[523],{"type":63,"value":524}," search",{"type":58,"tag":100,"props":526,"children":527},{"style":216},[528],{"type":63,"value":480},{"type":58,"tag":100,"props":530,"children":531},{"style":113},[532],{"type":63,"value":533},"preferences",{"type":58,"tag":100,"props":535,"children":536},{"style":216},[537],{"type":63,"value":420},{"type":58,"tag":100,"props":539,"children":540},{"style":113},[541],{"type":63,"value":494},{"type":58,"tag":100,"props":543,"children":544},{"style":113},[545],{"type":63,"value":499},{"type":58,"tag":451,"props":547,"children":549},{"id":548},"list-all-memories-for-a-user",[550],{"type":63,"value":551},"List all memories for a user",{"type":58,"tag":88,"props":553,"children":555},{"className":90,"code":554,"language":92,"meta":93,"style":93},"mem0 list --user-id alice\n",[556],{"type":58,"tag":96,"props":557,"children":558},{"__ignoreMap":93},[559],{"type":58,"tag":100,"props":560,"children":561},{"class":102,"line":103},[562,566,571,575],{"type":58,"tag":100,"props":563,"children":564},{"style":107},[565],{"type":63,"value":8},{"type":58,"tag":100,"props":567,"children":568},{"style":113},[569],{"type":63,"value":570}," list",{"type":58,"tag":100,"props":572,"children":573},{"style":113},[574],{"type":63,"value":494},{"type":58,"tag":100,"props":576,"children":577},{"style":113},[578],{"type":63,"value":499},{"type":58,"tag":451,"props":580,"children":582},{"id":581},"get-a-specific-memory",[583],{"type":63,"value":584},"Get a specific memory",{"type":58,"tag":88,"props":586,"children":588},{"className":90,"code":587,"language":92,"meta":93,"style":93},"mem0 get \u003Cmemory-id>\n",[589],{"type":58,"tag":96,"props":590,"children":591},{"__ignoreMap":93},[592],{"type":58,"tag":100,"props":593,"children":594},{"class":102,"line":103},[595,599,604,608,613,618],{"type":58,"tag":100,"props":596,"children":597},{"style":107},[598],{"type":63,"value":8},{"type":58,"tag":100,"props":600,"children":601},{"style":113},[602],{"type":63,"value":603}," get",{"type":58,"tag":100,"props":605,"children":606},{"style":216},[607],{"type":63,"value":219},{"type":58,"tag":100,"props":609,"children":610},{"style":113},[611],{"type":63,"value":612},"memory-i",{"type":58,"tag":100,"props":614,"children":615},{"style":227},[616],{"type":63,"value":617},"d",{"type":58,"tag":100,"props":619,"children":620},{"style":216},[621],{"type":63,"value":622},">\n",{"type":58,"tag":451,"props":624,"children":626},{"id":625},"update-a-memory",[627],{"type":63,"value":628},"Update a memory",{"type":58,"tag":88,"props":630,"children":632},{"className":90,"code":631,"language":92,"meta":93,"style":93},"mem0 update \u003Cmemory-id> \"new text\"\n",[633],{"type":58,"tag":96,"props":634,"children":635},{"__ignoreMap":93},[636],{"type":58,"tag":100,"props":637,"children":638},{"class":102,"line":103},[639,643,648,652,656,660,664,668,673],{"type":58,"tag":100,"props":640,"children":641},{"style":107},[642],{"type":63,"value":8},{"type":58,"tag":100,"props":644,"children":645},{"style":113},[646],{"type":63,"value":647}," update",{"type":58,"tag":100,"props":649,"children":650},{"style":216},[651],{"type":63,"value":219},{"type":58,"tag":100,"props":653,"children":654},{"style":113},[655],{"type":63,"value":612},{"type":58,"tag":100,"props":657,"children":658},{"style":227},[659],{"type":63,"value":617},{"type":58,"tag":100,"props":661,"children":662},{"style":216},[663],{"type":63,"value":235},{"type":58,"tag":100,"props":665,"children":666},{"style":216},[667],{"type":63,"value":480},{"type":58,"tag":100,"props":669,"children":670},{"style":113},[671],{"type":63,"value":672},"new text",{"type":58,"tag":100,"props":674,"children":675},{"style":216},[676],{"type":63,"value":430},{"type":58,"tag":451,"props":678,"children":680},{"id":679},"delete-a-single-memory",[681],{"type":63,"value":682},"Delete a single memory",{"type":58,"tag":88,"props":684,"children":686},{"className":90,"code":685,"language":92,"meta":93,"style":93},"mem0 delete \u003Cmemory-id>\n",[687],{"type":58,"tag":96,"props":688,"children":689},{"__ignoreMap":93},[690],{"type":58,"tag":100,"props":691,"children":692},{"class":102,"line":103},[693,697,702,706,710,714],{"type":58,"tag":100,"props":694,"children":695},{"style":107},[696],{"type":63,"value":8},{"type":58,"tag":100,"props":698,"children":699},{"style":113},[700],{"type":63,"value":701}," delete",{"type":58,"tag":100,"props":703,"children":704},{"style":216},[705],{"type":63,"value":219},{"type":58,"tag":100,"props":707,"children":708},{"style":113},[709],{"type":63,"value":612},{"type":58,"tag":100,"props":711,"children":712},{"style":227},[713],{"type":63,"value":617},{"type":58,"tag":100,"props":715,"children":716},{"style":216},[717],{"type":63,"value":622},{"type":58,"tag":451,"props":719,"children":721},{"id":720},"delete-all-memories-for-a-user",[722],{"type":63,"value":723},"Delete all memories for a user",{"type":58,"tag":88,"props":725,"children":727},{"className":90,"code":726,"language":92,"meta":93,"style":93},"mem0 delete --all --user-id alice --force\n",[728],{"type":58,"tag":96,"props":729,"children":730},{"__ignoreMap":93},[731],{"type":58,"tag":100,"props":732,"children":733},{"class":102,"line":103},[734,738,742,747,751,756],{"type":58,"tag":100,"props":735,"children":736},{"style":107},[737],{"type":63,"value":8},{"type":58,"tag":100,"props":739,"children":740},{"style":113},[741],{"type":63,"value":701},{"type":58,"tag":100,"props":743,"children":744},{"style":113},[745],{"type":63,"value":746}," --all",{"type":58,"tag":100,"props":748,"children":749},{"style":113},[750],{"type":63,"value":494},{"type":58,"tag":100,"props":752,"children":753},{"style":113},[754],{"type":63,"value":755}," alice",{"type":58,"tag":100,"props":757,"children":758},{"style":113},[759],{"type":63,"value":760}," --force\n",{"type":58,"tag":72,"props":762,"children":764},{"id":763},"agent-json-mode",[765],{"type":63,"value":766},"Agent \u002F JSON Mode",{"type":58,"tag":66,"props":768,"children":769},{},[770,772,778,780,786],{"type":63,"value":771},"Use ",{"type":58,"tag":96,"props":773,"children":775},{"className":774},[],[776],{"type":63,"value":777},"--json",{"type":63,"value":779}," or ",{"type":58,"tag":96,"props":781,"children":783},{"className":782},[],[784],{"type":63,"value":785},"--agent",{"type":63,"value":787}," to get structured output suitable for LLM consumption. Every command wraps its response in a standard envelope:",{"type":58,"tag":88,"props":789,"children":793},{"className":790,"code":791,"language":792,"meta":93,"style":93},"language-json shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","{\n  \"status\": \"success\",\n  \"command\": \"search\",\n  \"duration_ms\": 245,\n  \"scope\": { \"user_id\": \"alice\" },\n  \"count\": 3,\n  \"error\": null,\n  \"data\": [\n    { \"id\": \"mem-abc\", \"memory\": \"User prefers dark mode\", \"score\": 0.92 }\n  ]\n}\n","json",[794],{"type":58,"tag":96,"props":795,"children":796},{"__ignoreMap":93},[797,805,846,884,915,976,1006,1032,1058,1162,1171],{"type":58,"tag":100,"props":798,"children":799},{"class":102,"line":103},[800],{"type":58,"tag":100,"props":801,"children":802},{"style":216},[803],{"type":63,"value":804},"{\n",{"type":58,"tag":100,"props":806,"children":808},{"class":102,"line":807},2,[809,814,819,823,828,832,837,841],{"type":58,"tag":100,"props":810,"children":811},{"style":216},[812],{"type":63,"value":813},"  \"",{"type":58,"tag":100,"props":815,"children":816},{"style":402},[817],{"type":63,"value":818},"status",{"type":58,"tag":100,"props":820,"children":821},{"style":216},[822],{"type":63,"value":420},{"type":58,"tag":100,"props":824,"children":825},{"style":216},[826],{"type":63,"value":827},":",{"type":58,"tag":100,"props":829,"children":830},{"style":216},[831],{"type":63,"value":480},{"type":58,"tag":100,"props":833,"children":834},{"style":113},[835],{"type":63,"value":836},"success",{"type":58,"tag":100,"props":838,"children":839},{"style":216},[840],{"type":63,"value":420},{"type":58,"tag":100,"props":842,"children":843},{"style":216},[844],{"type":63,"value":845},",\n",{"type":58,"tag":100,"props":847,"children":849},{"class":102,"line":848},3,[850,854,859,863,867,871,876,880],{"type":58,"tag":100,"props":851,"children":852},{"style":216},[853],{"type":63,"value":813},{"type":58,"tag":100,"props":855,"children":856},{"style":402},[857],{"type":63,"value":858},"command",{"type":58,"tag":100,"props":860,"children":861},{"style":216},[862],{"type":63,"value":420},{"type":58,"tag":100,"props":864,"children":865},{"style":216},[866],{"type":63,"value":827},{"type":58,"tag":100,"props":868,"children":869},{"style":216},[870],{"type":63,"value":480},{"type":58,"tag":100,"props":872,"children":873},{"style":113},[874],{"type":63,"value":875},"search",{"type":58,"tag":100,"props":877,"children":878},{"style":216},[879],{"type":63,"value":420},{"type":58,"tag":100,"props":881,"children":882},{"style":216},[883],{"type":63,"value":845},{"type":58,"tag":100,"props":885,"children":887},{"class":102,"line":886},4,[888,892,897,901,905,911],{"type":58,"tag":100,"props":889,"children":890},{"style":216},[891],{"type":63,"value":813},{"type":58,"tag":100,"props":893,"children":894},{"style":402},[895],{"type":63,"value":896},"duration_ms",{"type":58,"tag":100,"props":898,"children":899},{"style":216},[900],{"type":63,"value":420},{"type":58,"tag":100,"props":902,"children":903},{"style":216},[904],{"type":63,"value":827},{"type":58,"tag":100,"props":906,"children":908},{"style":907},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[909],{"type":63,"value":910}," 245",{"type":58,"tag":100,"props":912,"children":913},{"style":216},[914],{"type":63,"value":845},{"type":58,"tag":100,"props":916,"children":918},{"class":102,"line":917},5,[919,923,928,932,936,941,945,950,954,958,962,967,971],{"type":58,"tag":100,"props":920,"children":921},{"style":216},[922],{"type":63,"value":813},{"type":58,"tag":100,"props":924,"children":925},{"style":402},[926],{"type":63,"value":927},"scope",{"type":58,"tag":100,"props":929,"children":930},{"style":216},[931],{"type":63,"value":420},{"type":58,"tag":100,"props":933,"children":934},{"style":216},[935],{"type":63,"value":827},{"type":58,"tag":100,"props":937,"children":938},{"style":216},[939],{"type":63,"value":940}," {",{"type":58,"tag":100,"props":942,"children":943},{"style":216},[944],{"type":63,"value":480},{"type":58,"tag":100,"props":946,"children":947},{"style":107},[948],{"type":63,"value":949},"user_id",{"type":58,"tag":100,"props":951,"children":952},{"style":216},[953],{"type":63,"value":420},{"type":58,"tag":100,"props":955,"children":956},{"style":216},[957],{"type":63,"value":827},{"type":58,"tag":100,"props":959,"children":960},{"style":216},[961],{"type":63,"value":480},{"type":58,"tag":100,"props":963,"children":964},{"style":113},[965],{"type":63,"value":966},"alice",{"type":58,"tag":100,"props":968,"children":969},{"style":216},[970],{"type":63,"value":420},{"type":58,"tag":100,"props":972,"children":973},{"style":216},[974],{"type":63,"value":975}," },\n",{"type":58,"tag":100,"props":977,"children":979},{"class":102,"line":978},6,[980,984,989,993,997,1002],{"type":58,"tag":100,"props":981,"children":982},{"style":216},[983],{"type":63,"value":813},{"type":58,"tag":100,"props":985,"children":986},{"style":402},[987],{"type":63,"value":988},"count",{"type":58,"tag":100,"props":990,"children":991},{"style":216},[992],{"type":63,"value":420},{"type":58,"tag":100,"props":994,"children":995},{"style":216},[996],{"type":63,"value":827},{"type":58,"tag":100,"props":998,"children":999},{"style":907},[1000],{"type":63,"value":1001}," 3",{"type":58,"tag":100,"props":1003,"children":1004},{"style":216},[1005],{"type":63,"value":845},{"type":58,"tag":100,"props":1007,"children":1009},{"class":102,"line":1008},7,[1010,1014,1019,1023,1027],{"type":58,"tag":100,"props":1011,"children":1012},{"style":216},[1013],{"type":63,"value":813},{"type":58,"tag":100,"props":1015,"children":1016},{"style":402},[1017],{"type":63,"value":1018},"error",{"type":58,"tag":100,"props":1020,"children":1021},{"style":216},[1022],{"type":63,"value":420},{"type":58,"tag":100,"props":1024,"children":1025},{"style":216},[1026],{"type":63,"value":827},{"type":58,"tag":100,"props":1028,"children":1029},{"style":216},[1030],{"type":63,"value":1031}," null,\n",{"type":58,"tag":100,"props":1033,"children":1035},{"class":102,"line":1034},8,[1036,1040,1045,1049,1053],{"type":58,"tag":100,"props":1037,"children":1038},{"style":216},[1039],{"type":63,"value":813},{"type":58,"tag":100,"props":1041,"children":1042},{"style":402},[1043],{"type":63,"value":1044},"data",{"type":58,"tag":100,"props":1046,"children":1047},{"style":216},[1048],{"type":63,"value":420},{"type":58,"tag":100,"props":1050,"children":1051},{"style":216},[1052],{"type":63,"value":827},{"type":58,"tag":100,"props":1054,"children":1055},{"style":216},[1056],{"type":63,"value":1057}," [\n",{"type":58,"tag":100,"props":1059,"children":1061},{"class":102,"line":1060},9,[1062,1067,1071,1076,1080,1084,1088,1093,1097,1102,1106,1110,1114,1118,1122,1127,1131,1135,1139,1144,1148,1152,1157],{"type":58,"tag":100,"props":1063,"children":1064},{"style":216},[1065],{"type":63,"value":1066},"    {",{"type":58,"tag":100,"props":1068,"children":1069},{"style":216},[1070],{"type":63,"value":480},{"type":58,"tag":100,"props":1072,"children":1073},{"style":107},[1074],{"type":63,"value":1075},"id",{"type":58,"tag":100,"props":1077,"children":1078},{"style":216},[1079],{"type":63,"value":420},{"type":58,"tag":100,"props":1081,"children":1082},{"style":216},[1083],{"type":63,"value":827},{"type":58,"tag":100,"props":1085,"children":1086},{"style":216},[1087],{"type":63,"value":480},{"type":58,"tag":100,"props":1089,"children":1090},{"style":113},[1091],{"type":63,"value":1092},"mem-abc",{"type":58,"tag":100,"props":1094,"children":1095},{"style":216},[1096],{"type":63,"value":420},{"type":58,"tag":100,"props":1098,"children":1099},{"style":216},[1100],{"type":63,"value":1101},",",{"type":58,"tag":100,"props":1103,"children":1104},{"style":216},[1105],{"type":63,"value":480},{"type":58,"tag":100,"props":1107,"children":1108},{"style":107},[1109],{"type":63,"value":22},{"type":58,"tag":100,"props":1111,"children":1112},{"style":216},[1113],{"type":63,"value":420},{"type":58,"tag":100,"props":1115,"children":1116},{"style":216},[1117],{"type":63,"value":827},{"type":58,"tag":100,"props":1119,"children":1120},{"style":216},[1121],{"type":63,"value":480},{"type":58,"tag":100,"props":1123,"children":1124},{"style":113},[1125],{"type":63,"value":1126},"User prefers dark mode",{"type":58,"tag":100,"props":1128,"children":1129},{"style":216},[1130],{"type":63,"value":420},{"type":58,"tag":100,"props":1132,"children":1133},{"style":216},[1134],{"type":63,"value":1101},{"type":58,"tag":100,"props":1136,"children":1137},{"style":216},[1138],{"type":63,"value":480},{"type":58,"tag":100,"props":1140,"children":1141},{"style":107},[1142],{"type":63,"value":1143},"score",{"type":58,"tag":100,"props":1145,"children":1146},{"style":216},[1147],{"type":63,"value":420},{"type":58,"tag":100,"props":1149,"children":1150},{"style":216},[1151],{"type":63,"value":827},{"type":58,"tag":100,"props":1153,"children":1154},{"style":907},[1155],{"type":63,"value":1156}," 0.92",{"type":58,"tag":100,"props":1158,"children":1159},{"style":216},[1160],{"type":63,"value":1161}," }\n",{"type":58,"tag":100,"props":1163,"children":1165},{"class":102,"line":1164},10,[1166],{"type":58,"tag":100,"props":1167,"children":1168},{"style":216},[1169],{"type":63,"value":1170},"  ]\n",{"type":58,"tag":100,"props":1172,"children":1174},{"class":102,"line":1173},11,[1175],{"type":58,"tag":100,"props":1176,"children":1177},{"style":216},[1178],{"type":63,"value":1179},"}\n",{"type":58,"tag":66,"props":1181,"children":1182},{},[1183],{"type":63,"value":1184},"On error:",{"type":58,"tag":88,"props":1186,"children":1188},{"className":790,"code":1187,"language":792,"meta":93,"style":93},"{\n  \"status\": \"error\",\n  \"command\": \"search\",\n  \"error\": \"Authentication failed. Your API key may be invalid or expired.\",\n  \"data\": null\n}\n",[1189],{"type":58,"tag":96,"props":1190,"children":1191},{"__ignoreMap":93},[1192,1199,1234,1269,1305,1329],{"type":58,"tag":100,"props":1193,"children":1194},{"class":102,"line":103},[1195],{"type":58,"tag":100,"props":1196,"children":1197},{"style":216},[1198],{"type":63,"value":804},{"type":58,"tag":100,"props":1200,"children":1201},{"class":102,"line":807},[1202,1206,1210,1214,1218,1222,1226,1230],{"type":58,"tag":100,"props":1203,"children":1204},{"style":216},[1205],{"type":63,"value":813},{"type":58,"tag":100,"props":1207,"children":1208},{"style":402},[1209],{"type":63,"value":818},{"type":58,"tag":100,"props":1211,"children":1212},{"style":216},[1213],{"type":63,"value":420},{"type":58,"tag":100,"props":1215,"children":1216},{"style":216},[1217],{"type":63,"value":827},{"type":58,"tag":100,"props":1219,"children":1220},{"style":216},[1221],{"type":63,"value":480},{"type":58,"tag":100,"props":1223,"children":1224},{"style":113},[1225],{"type":63,"value":1018},{"type":58,"tag":100,"props":1227,"children":1228},{"style":216},[1229],{"type":63,"value":420},{"type":58,"tag":100,"props":1231,"children":1232},{"style":216},[1233],{"type":63,"value":845},{"type":58,"tag":100,"props":1235,"children":1236},{"class":102,"line":848},[1237,1241,1245,1249,1253,1257,1261,1265],{"type":58,"tag":100,"props":1238,"children":1239},{"style":216},[1240],{"type":63,"value":813},{"type":58,"tag":100,"props":1242,"children":1243},{"style":402},[1244],{"type":63,"value":858},{"type":58,"tag":100,"props":1246,"children":1247},{"style":216},[1248],{"type":63,"value":420},{"type":58,"tag":100,"props":1250,"children":1251},{"style":216},[1252],{"type":63,"value":827},{"type":58,"tag":100,"props":1254,"children":1255},{"style":216},[1256],{"type":63,"value":480},{"type":58,"tag":100,"props":1258,"children":1259},{"style":113},[1260],{"type":63,"value":875},{"type":58,"tag":100,"props":1262,"children":1263},{"style":216},[1264],{"type":63,"value":420},{"type":58,"tag":100,"props":1266,"children":1267},{"style":216},[1268],{"type":63,"value":845},{"type":58,"tag":100,"props":1270,"children":1271},{"class":102,"line":886},[1272,1276,1280,1284,1288,1292,1297,1301],{"type":58,"tag":100,"props":1273,"children":1274},{"style":216},[1275],{"type":63,"value":813},{"type":58,"tag":100,"props":1277,"children":1278},{"style":402},[1279],{"type":63,"value":1018},{"type":58,"tag":100,"props":1281,"children":1282},{"style":216},[1283],{"type":63,"value":420},{"type":58,"tag":100,"props":1285,"children":1286},{"style":216},[1287],{"type":63,"value":827},{"type":58,"tag":100,"props":1289,"children":1290},{"style":216},[1291],{"type":63,"value":480},{"type":58,"tag":100,"props":1293,"children":1294},{"style":113},[1295],{"type":63,"value":1296},"Authentication failed. Your API key may be invalid or expired.",{"type":58,"tag":100,"props":1298,"children":1299},{"style":216},[1300],{"type":63,"value":420},{"type":58,"tag":100,"props":1302,"children":1303},{"style":216},[1304],{"type":63,"value":845},{"type":58,"tag":100,"props":1306,"children":1307},{"class":102,"line":917},[1308,1312,1316,1320,1324],{"type":58,"tag":100,"props":1309,"children":1310},{"style":216},[1311],{"type":63,"value":813},{"type":58,"tag":100,"props":1313,"children":1314},{"style":402},[1315],{"type":63,"value":1044},{"type":58,"tag":100,"props":1317,"children":1318},{"style":216},[1319],{"type":63,"value":420},{"type":58,"tag":100,"props":1321,"children":1322},{"style":216},[1323],{"type":63,"value":827},{"type":58,"tag":100,"props":1325,"children":1326},{"style":216},[1327],{"type":63,"value":1328}," null\n",{"type":58,"tag":100,"props":1330,"children":1331},{"class":102,"line":978},[1332],{"type":58,"tag":100,"props":1333,"children":1334},{"style":216},[1335],{"type":63,"value":1179},{"type":58,"tag":66,"props":1337,"children":1338},{},[1339,1341,1346,1348,1353],{"type":63,"value":1340},"The ",{"type":58,"tag":96,"props":1342,"children":1344},{"className":1343},[],[1345],{"type":63,"value":785},{"type":63,"value":1347}," flag is an alias for ",{"type":58,"tag":96,"props":1349,"children":1351},{"className":1350},[],[1352],{"type":63,"value":777},{"type":63,"value":1354},". Both write spinners and progress to stderr so stdout is always clean, parseable JSON.",{"type":58,"tag":72,"props":1356,"children":1358},{"id":1357},"node-and-python-parity",[1359],{"type":63,"value":1360},"Node and Python Parity",{"type":58,"tag":66,"props":1362,"children":1363},{},[1364,1366,1372,1374,1379,1381,1387],{"type":63,"value":1365},"Both the Node.js (",{"type":58,"tag":96,"props":1367,"children":1369},{"className":1368},[],[1370],{"type":63,"value":1371},"@mem0\u002Fcli",{"type":63,"value":1373},") and Python (",{"type":58,"tag":96,"props":1375,"children":1377},{"className":1376},[],[1378],{"type":63,"value":4},{"type":63,"value":1380},") CLIs are implemented from the same specification (",{"type":58,"tag":96,"props":1382,"children":1384},{"className":1383},[],[1385],{"type":63,"value":1386},"cli-spec.json",{"type":63,"value":1388},"). They share:",{"type":58,"tag":1390,"props":1391,"children":1392},"ul",{},[1393,1399,1404,1409],{"type":58,"tag":1394,"props":1395,"children":1396},"li",{},[1397],{"type":63,"value":1398},"Identical command names, arguments, and flags",{"type":58,"tag":1394,"props":1400,"children":1401},{},[1402],{"type":63,"value":1403},"Identical output formats (text, json, table, quiet)",{"type":58,"tag":1394,"props":1405,"children":1406},{},[1407],{"type":63,"value":1408},"Identical entity ID resolution, graph tri-state, filter building",{"type":58,"tag":1394,"props":1410,"children":1411},{},[1412],{"type":63,"value":1413},"Identical error messages and exit codes",{"type":58,"tag":66,"props":1415,"children":1416},{},[1417],{"type":63,"value":1418},"Choose whichever runtime you already have installed. The behavior is the same.",{"type":58,"tag":72,"props":1420,"children":1422},{"id":1421},"common-edge-cases",[1423],{"type":63,"value":1424},"Common Edge Cases",{"type":58,"tag":1390,"props":1426,"children":1427},{},[1428,1454,1494,1512],{"type":58,"tag":1394,"props":1429,"children":1430},{},[1431,1436,1438,1444,1446,1452],{"type":58,"tag":82,"props":1432,"children":1433},{},[1434],{"type":63,"value":1435},"Async processing delay:",{"type":63,"value":1437}," After ",{"type":58,"tag":96,"props":1439,"children":1441},{"className":1440},[],[1442],{"type":63,"value":1443},"mem0 add",{"type":63,"value":1445},", memories process asynchronously. Wait 2-3 seconds before searching for newly added content. Use ",{"type":58,"tag":96,"props":1447,"children":1449},{"className":1448},[],[1450],{"type":63,"value":1451},"mem0 event list",{"type":63,"value":1453}," to check processing status.",{"type":58,"tag":1394,"props":1455,"children":1456},{},[1457,1476,1478,1484,1486,1492],{"type":58,"tag":82,"props":1458,"children":1459},{},[1460,1466,1468,1474],{"type":58,"tag":96,"props":1461,"children":1463},{"className":1462},[],[1464],{"type":63,"value":1465},"--all",{"type":63,"value":1467}," vs ",{"type":58,"tag":96,"props":1469,"children":1471},{"className":1470},[],[1472],{"type":63,"value":1473},"--entity",{"type":63,"value":1475}," delete modes:",{"type":63,"value":1477}," ",{"type":58,"tag":96,"props":1479,"children":1481},{"className":1480},[],[1482],{"type":63,"value":1483},"mem0 delete --all -u alice",{"type":63,"value":1485}," deletes all memories for user alice. ",{"type":58,"tag":96,"props":1487,"children":1489},{"className":1488},[],[1490],{"type":63,"value":1491},"mem0 delete --entity -u alice",{"type":63,"value":1493}," deletes the entity itself AND all its memories (cascade). These are mutually exclusive modes.",{"type":58,"tag":1394,"props":1495,"children":1496},{},[1497,1502,1504,1510],{"type":58,"tag":82,"props":1498,"children":1499},{},[1500],{"type":63,"value":1501},"Entity ID resolution:",{"type":63,"value":1503}," If you pass any explicit scope flag (e.g. ",{"type":58,"tag":96,"props":1505,"children":1507},{"className":1506},[],[1508],{"type":63,"value":1509},"--user-id",{"type":63,"value":1511},"), the CLI uses ONLY the explicit IDs and ignores config defaults. If no scope flags are given, all configured defaults apply.",{"type":58,"tag":1394,"props":1513,"children":1514},{},[1515,1520,1522,1528,1529,1534,1536,1542],{"type":58,"tag":82,"props":1516,"children":1517},{},[1518],{"type":63,"value":1519},"Stdin detection:",{"type":63,"value":1521}," When no text argument is provided and input is piped (not a TTY), the CLI reads from stdin. Works with ",{"type":58,"tag":96,"props":1523,"children":1525},{"className":1524},[],[1526],{"type":63,"value":1527},"add",{"type":63,"value":261},{"type":58,"tag":96,"props":1530,"children":1532},{"className":1531},[],[1533],{"type":63,"value":875},{"type":63,"value":1535},", and ",{"type":58,"tag":96,"props":1537,"children":1539},{"className":1538},[],[1540],{"type":63,"value":1541},"update",{"type":63,"value":349},{"type":58,"tag":72,"props":1544,"children":1546},{"id":1545},"references",[1547],{"type":63,"value":1548},"References",{"type":58,"tag":66,"props":1550,"children":1551},{},[1552],{"type":63,"value":1553},"Load these on demand for deeper detail:",{"type":58,"tag":1555,"props":1556,"children":1557},"table",{},[1558,1577],{"type":58,"tag":1559,"props":1560,"children":1561},"thead",{},[1562],{"type":58,"tag":1563,"props":1564,"children":1565},"tr",{},[1566,1572],{"type":58,"tag":1567,"props":1568,"children":1569},"th",{},[1570],{"type":63,"value":1571},"Topic",{"type":58,"tag":1567,"props":1573,"children":1574},{},[1575],{"type":63,"value":1576},"File",{"type":58,"tag":1578,"props":1579,"children":1580},"tbody",{},[1581,1598,1614],{"type":58,"tag":1563,"props":1582,"children":1583},{},[1584,1590],{"type":58,"tag":1585,"props":1586,"children":1587},"td",{},[1588],{"type":63,"value":1589},"Command reference (all commands, flags, options, examples)",{"type":58,"tag":1585,"props":1591,"children":1592},{},[1593],{"type":58,"tag":437,"props":1594,"children":1596},{"href":1595},"references\u002Fcommand-reference.md",[1597],{"type":63,"value":1595},{"type":58,"tag":1563,"props":1599,"children":1600},{},[1601,1606],{"type":58,"tag":1585,"props":1602,"children":1603},{},[1604],{"type":63,"value":1605},"Configuration (config file, env vars, precedence, init wizard)",{"type":58,"tag":1585,"props":1607,"children":1608},{},[1609],{"type":58,"tag":437,"props":1610,"children":1612},{"href":1611},"references\u002Fconfiguration.md",[1613],{"type":63,"value":1611},{"type":58,"tag":1563,"props":1615,"children":1616},{},[1617,1622],{"type":58,"tag":1585,"props":1618,"children":1619},{},[1620],{"type":63,"value":1621},"Workflows (piping, scripting, CI\u002FCD, agent mode recipes)",{"type":58,"tag":1585,"props":1623,"children":1624},{},[1625],{"type":58,"tag":437,"props":1626,"children":1628},{"href":1627},"references\u002Fworkflows.md",[1629],{"type":63,"value":1627},{"type":58,"tag":72,"props":1631,"children":1633},{"id":1632},"related-mem0-skills",[1634],{"type":63,"value":1635},"Related Mem0 Skills",{"type":58,"tag":1555,"props":1637,"children":1638},{},[1639,1660],{"type":58,"tag":1559,"props":1640,"children":1641},{},[1642],{"type":58,"tag":1563,"props":1643,"children":1644},{},[1645,1650,1655],{"type":58,"tag":1567,"props":1646,"children":1647},{},[1648],{"type":63,"value":1649},"Skill",{"type":58,"tag":1567,"props":1651,"children":1652},{},[1653],{"type":63,"value":1654},"When to use",{"type":58,"tag":1567,"props":1656,"children":1657},{},[1658],{"type":63,"value":1659},"Link",{"type":58,"tag":1578,"props":1661,"children":1662},{},[1663,1693],{"type":58,"tag":1563,"props":1664,"children":1665},{},[1666,1670,1675],{"type":58,"tag":1585,"props":1667,"children":1668},{},[1669],{"type":63,"value":8},{"type":58,"tag":1585,"props":1671,"children":1672},{},[1673],{"type":63,"value":1674},"Python\u002FTypeScript SDK, REST API, framework integrations",{"type":58,"tag":1585,"props":1676,"children":1677},{},[1678,1684,1686],{"type":58,"tag":437,"props":1679,"children":1681},{"href":1680},"..\u002Fmem0\u002FSKILL.md",[1682],{"type":63,"value":1683},"local",{"type":63,"value":1685}," \u002F ",{"type":58,"tag":437,"props":1687,"children":1690},{"href":1688,"rel":1689},"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002Fmain\u002Fskills\u002Fmem0",[441],[1691],{"type":63,"value":1692},"GitHub",{"type":58,"tag":1563,"props":1694,"children":1695},{},[1696,1701,1706],{"type":58,"tag":1585,"props":1697,"children":1698},{},[1699],{"type":63,"value":1700},"mem0-vercel-ai-sdk",{"type":58,"tag":1585,"props":1702,"children":1703},{},[1704],{"type":63,"value":1705},"Vercel AI SDK provider with automatic memory",{"type":58,"tag":1585,"props":1707,"children":1708},{},[1709,1714,1715],{"type":58,"tag":437,"props":1710,"children":1712},{"href":1711},"..\u002Fmem0-vercel-ai-sdk\u002FSKILL.md",[1713],{"type":63,"value":1683},{"type":63,"value":1685},{"type":58,"tag":437,"props":1716,"children":1719},{"href":1717,"rel":1718},"https:\u002F\u002Fgithub.com\u002Fmem0ai\u002Fmem0\u002Ftree\u002Fmain\u002Fskills\u002Fmem0-vercel-ai-sdk",[441],[1720],{"type":63,"value":1692},{"type":58,"tag":1722,"props":1723,"children":1724},"style",{},[1725],{"type":63,"value":1726},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":1728,"total":1816},[1729,1742,1754,1767,1781,1795,1807],{"slug":1730,"name":1730,"fn":1731,"description":1732,"org":1733,"tags":1734,"stars":23,"repoUrl":24,"updatedAt":1741},"context-loader","load project context from Mem0","Searches and injects relevant memories into context before starting work on a task. Use when beginning a new task, switching context, or when project history, past decisions, or coding conventions need to be loaded.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1735,1737,1740],{"name":1736,"slug":29,"type":16},"Agents",{"name":1738,"slug":1739,"type":16},"Context","context",{"name":21,"slug":22,"type":16},"2026-07-13T06:13:15.682218",{"slug":1743,"name":1743,"fn":1744,"description":1745,"org":1746,"tags":1747,"stars":23,"repoUrl":24,"updatedAt":1753},"dream","consolidate and prune stored memories","Consolidates stored memories by merging duplicates, resolving contradictions, and pruning stale entries. Use when memory count is high, search results feel noisy or repetitive, or periodic cleanup is needed to maintain memory quality.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1748,1749,1752],{"name":1736,"slug":29,"type":16},{"name":1750,"slug":1751,"type":16},"Data Cleaning","data-cleaning",{"name":21,"slug":22,"type":16},"2026-07-13T06:12:54.000421",{"slug":405,"name":405,"fn":1755,"description":1756,"org":1757,"tags":1758,"stars":23,"repoUrl":24,"updatedAt":1766},"export project memories to Markdown files","Exports all project memories to a portable Markdown file for backup or migration. Use when backing up memories, migrating to another project, sharing memory state with teammates, or archiving before cleanup.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1759,1762,1763],{"name":1760,"slug":1761,"type":16},"Backup","backup",{"name":21,"slug":22,"type":16},{"name":1764,"slug":1765,"type":16},"Migration","migration","2026-07-13T06:13:05.091831",{"slug":1768,"name":1768,"fn":1769,"description":1770,"org":1771,"tags":1772,"stars":23,"repoUrl":24,"updatedAt":1780},"forget","delete outdated or incorrect memories","Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated decisions, incorrect memories, sensitive data, or cleaning up after experiments. Also handles undo of recent additions.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1773,1776,1777],{"name":1774,"slug":1775,"type":16},"Maintenance","maintenance",{"name":21,"slug":22,"type":16},{"name":1778,"slug":1779,"type":16},"Privacy","privacy","2026-07-13T06:13:00.862899",{"slug":1782,"name":1782,"fn":1783,"description":1784,"org":1785,"tags":1786,"stars":23,"repoUrl":24,"updatedAt":1794},"health","diagnose Mem0 connectivity and health","Diagnoses mem0 connectivity, API key validity, and memory read\u002Fwrite functionality. Use when memory operations fail, searches return empty, add_memory errors occur, MCP connection drops, or to verify the plugin is working correctly.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1787,1790,1791],{"name":1788,"slug":1789,"type":16},"Debugging","debugging",{"name":21,"slug":22,"type":16},{"name":1792,"slug":1793,"type":16},"Monitoring","monitoring","2026-07-13T06:13:06.569475",{"slug":1796,"name":1796,"fn":1797,"description":1798,"org":1799,"tags":1800,"stars":23,"repoUrl":24,"updatedAt":1806},"import","import project memories from Markdown files","Imports memories from an exported Markdown file or MEMORY.md into the current project. Use when migrating from another project, restoring from backup, importing Claude Code native MEMORY.md content, or setting up a new project with existing knowledge.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1801,1804,1805],{"name":1802,"slug":1803,"type":16},"Markdown","markdown",{"name":21,"slug":22,"type":16},{"name":1764,"slug":1765,"type":16},"2026-07-13T06:12:59.389494",{"slug":1808,"name":1808,"fn":1809,"description":1810,"org":1811,"tags":1812,"stars":23,"repoUrl":24,"updatedAt":1815},"list-projects","list projects with stored memories","Lists all projects with stored memories for the current user, showing memory counts and last activity dates. Use when checking which projects have memories, comparing memory distribution across repos, or finding a specific project scope.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1813,1814],{"name":1736,"slug":29,"type":16},{"name":21,"slug":22,"type":16},"2026-07-13T06:13:27.80043",23,{"items":1818,"total":1816},[1819,1825,1831,1837,1843,1849,1855,1860,1871,1877,1889,1899],{"slug":1730,"name":1730,"fn":1731,"description":1732,"org":1820,"tags":1821,"stars":23,"repoUrl":24,"updatedAt":1741},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1822,1823,1824],{"name":1736,"slug":29,"type":16},{"name":1738,"slug":1739,"type":16},{"name":21,"slug":22,"type":16},{"slug":1743,"name":1743,"fn":1744,"description":1745,"org":1826,"tags":1827,"stars":23,"repoUrl":24,"updatedAt":1753},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1828,1829,1830],{"name":1736,"slug":29,"type":16},{"name":1750,"slug":1751,"type":16},{"name":21,"slug":22,"type":16},{"slug":405,"name":405,"fn":1755,"description":1756,"org":1832,"tags":1833,"stars":23,"repoUrl":24,"updatedAt":1766},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1834,1835,1836],{"name":1760,"slug":1761,"type":16},{"name":21,"slug":22,"type":16},{"name":1764,"slug":1765,"type":16},{"slug":1768,"name":1768,"fn":1769,"description":1770,"org":1838,"tags":1839,"stars":23,"repoUrl":24,"updatedAt":1780},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1840,1841,1842],{"name":1774,"slug":1775,"type":16},{"name":21,"slug":22,"type":16},{"name":1778,"slug":1779,"type":16},{"slug":1782,"name":1782,"fn":1783,"description":1784,"org":1844,"tags":1845,"stars":23,"repoUrl":24,"updatedAt":1794},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1846,1847,1848],{"name":1788,"slug":1789,"type":16},{"name":21,"slug":22,"type":16},{"name":1792,"slug":1793,"type":16},{"slug":1796,"name":1796,"fn":1797,"description":1798,"org":1850,"tags":1851,"stars":23,"repoUrl":24,"updatedAt":1806},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1852,1853,1854],{"name":1802,"slug":1803,"type":16},{"name":21,"slug":22,"type":16},{"name":1764,"slug":1765,"type":16},{"slug":1808,"name":1808,"fn":1809,"description":1810,"org":1856,"tags":1857,"stars":23,"repoUrl":24,"updatedAt":1815},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1858,1859],{"name":1736,"slug":29,"type":16},{"name":21,"slug":22,"type":16},{"slug":8,"name":8,"fn":1861,"description":1862,"org":1863,"tags":1864,"stars":23,"repoUrl":24,"updatedAt":1870},"add persistent memory to AI applications","Mem0 Platform SDK for adding persistent memory to AI applications. TRIGGER when: user mentions \"mem0\", \"MemoryClient\", \"memory layer\", \"remember user preferences\", \"persistent context\", \"personalization\", or needs to add long-term memory to chatbots, agents, or AI apps. Covers Python SDK (mem0ai), TypeScript SDK (mem0ai), and framework integrations (LangChain, CrewAI, OpenAI Agents SDK, Pipecat, LlamaIndex, AutoGen, LangGraph). Also covers the open-source self-hosted Memory class. This is the DEFAULT mem0 skill for ambiguous queries. DO NOT TRIGGER when: user asks about CLI commands, terminal usage, or shell scripts (use mem0-cli), or Vercel AI SDK \u002F @mem0\u002Fvercel-ai-provider \u002F createMem0 (use mem0-vercel-ai-sdk).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1865,1866,1869],{"name":1736,"slug":29,"type":16},{"name":1867,"slug":1868,"type":16},"AI Infrastructure","ai-infrastructure",{"name":21,"slug":22,"type":16},"2026-07-13T06:12:42.552904",{"slug":4,"name":4,"fn":5,"description":6,"org":1872,"tags":1873,"stars":23,"repoUrl":24,"updatedAt":25},{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1874,1875,1876],{"name":14,"slug":15,"type":16},{"name":18,"slug":19,"type":16},{"name":21,"slug":22,"type":16},{"slug":1878,"name":1878,"fn":1879,"description":1880,"org":1881,"tags":1882,"stars":23,"repoUrl":24,"updatedAt":1888},"mem0-integrate","integrate Mem0 into repositories","Integrate Mem0 into an existing repository using a goal-driven, TDD pipeline. Detects the repo's language automatically and asks the user to pick between Mem0 Platform (managed) and Mem0 Open Source (self-hosted). Writes failing tests before any implementation. Produces a local feature branch plus `.mem0-integration\u002F` artifacts consumed by the paired verification skill. TRIGGER when: user says \"integrate mem0\", \"add mem0 to this repo\", \"wire mem0 into \u003Crepo>\", or asks how to add memory to an existing project. DO NOT TRIGGER when: the user wants general SDK usage (use skill:mem0), CLI usage (use skill:mem0-cli), or Vercel AI SDK (use skill:mem0-vercel-ai-sdk). After success, invoke skill:mem0-test-integration to verify in the same workspace (loose coupling).\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1883,1884,1887],{"name":1736,"slug":29,"type":16},{"name":1885,"slug":1886,"type":16},"API Development","api-development",{"name":21,"slug":22,"type":16},"2026-07-13T06:12:46.60755",{"slug":1890,"name":1890,"fn":1891,"description":1892,"org":1893,"tags":1894,"stars":23,"repoUrl":24,"updatedAt":1898},"mem0-oss-to-platform","migrate Mem0 projects to platform","Plan and then execute a migration of a project from the mem0 open-source \u002F self-hosted SDK (the local `Memory` class) to the mem0 Platform \u002F hosted \u002F managed SDK (the `MemoryClient` class). Use this whenever a developer wants to move, switch, or migrate their mem0 usage off OSS\u002Fself-hosted to the hosted API — e.g. \"migrate my mem0 setup to the platform\", \"switch from self-hosted mem0 to MemoryClient\", \"use my mem0 API key instead of a local Qdrant\", \"move mem0 to the cloud\u002Fhosted\u002Fmanaged service\", or \"replace my local mem0 vector store + embedder config with the platform\". Applies to Python (`from mem0 import Memory` → `from mem0 import MemoryClient`) and TypeScript\u002FJavaScript (`import { Memory } from \"mem0ai\u002Foss\"` → `import MemoryClient from \"mem0ai\"`). Trigger even when the user doesn't say the word \"migrate\" but clearly wants their existing mem0 integration to run against the hosted platform. It first produces a reviewable migration plan, then executes it after the developer approves. Strictly scoped to the mem0 integration — it does not refactor, restructure, or \"improve\" any unrelated code.",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1895,1896,1897],{"name":1736,"slug":29,"type":16},{"name":21,"slug":22,"type":16},{"name":1764,"slug":1765,"type":16},"2026-07-13T06:12:43.848266",{"slug":1900,"name":1900,"fn":1901,"description":1902,"org":1903,"tags":1904,"stars":23,"repoUrl":24,"updatedAt":1913},"mem0-test-integration","verify Mem0 integration tests","Verify a Mem0 integration produced by \u002Fmem0-integrate. Runs in the same workspace on the same branch (loose coupling) — installs dependencies, runs the repo's native test suite, then exercises a real end-to-end smoke flow against the user's API key. Produces a scorecard. TRIGGER when: user has just run \u002Fmem0-integrate and says \"verify\", \"test the integration\", \"run \u002Fmem0-test-integration\", or when a .mem0-integration\u002F directory exists and tests have not been run yet on the current branch. DO NOT TRIGGER when: the user wants to run general project tests (defer to the repo's native test command), or when no prior \u002Fmem0-integrate run exists in the current branch (ask them to run \u002Fmem0-integrate first). This skill ONLY catches compile and runtime bugs by design. Logical integration errors — wrong data stored, wrong time retrieved, wrong user scoping — are on the human reviewer.\n",{"slug":8,"name":9,"logoUrl":10,"githubOrg":11},[1905,1906,1907,1910],{"name":1736,"slug":29,"type":16},{"name":21,"slug":22,"type":16},{"name":1908,"slug":1909,"type":16},"QA","qa",{"name":1911,"slug":1912,"type":16},"Testing","testing","2026-07-13T06:12:50.669701"]