mem0-cli
Skill67k starsChanged 3 months agoApache-2.0View on GitHub
Mem0 CLI -- the command-line interface for mem0 memory operations. TRIGGER when: user mentions "mem0 cli", "mem0 command line", "@mem0/cli", "mem0-cli", "pip install mem0-cli", "npm install -g @mem0/cli", or is running mem0 commands in a terminal/shell (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/zsh/terminal/shell usage. DO NOT TRIGGER when: user asks about programmatic SDK integration in Python/TS code (use mem0 skill), or Vercel AI SDK provider (use mem0-vercel-ai-sdk skill).
- Reads credentials
- Installs packages
Trending
Less talk lately.about the whole repository
Who's talking about mem0ai/mem0
- A Hacker News story“Show HN: Mem0 – open-source Memory Layer for AI apps”Hacker News · Sep 4, 2024 · 201 points
- kuzudb/kuzu“Release 0.11.0”GitHub · May 14, 2025 · 14 reactions
- anomalyco/opencode“Feature Request: Model-Agnostic Memory Layer (Global & Per-Project)”GitHub · Jan 12, 2026 · 13 reactions
- A Hacker News story“Show HN: OpenMemory – Make your MCP clients more context-aware”Hacker News · May 13, 2025 · 8 points
- getzep/zep-papers“Revisiting Zep’s 84% LoCoMo Claim: Corrected Evaluation & 58.44% Accuracy”GitHub · May 8, 2025 · 7 reactions
The biggest 5 of 62 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 62
Talked about on GitHub, Bluesky and Hacker News (62 times).
On GitHub · 50
- May 14, 2025Release 0.11.0 — kuzudb/kuzu14 reactions · 1 comment
- Jan 12, 2026Feature Request: Model-Agnostic Memory Layer (Global & Per-Project) — anomalyco/opencode13 reactions · 4 comments
- May 8, 2025Revisiting Zep’s 84% LoCoMo Claim: Corrected Evaluation & 58.44% Accuracy — getzep/zep-paperssays it tested it7 reactions · 3 comments
- Jul 22, 2024mem0 compatabile with openwebui and ollama? — open-webui/open-webui4 reactions
- Sep 1, 2025Add memory — pollen-robotics/reachy_mini_conversation_app3 reactions · 1 comment
45 more on GitHub
- Nov 5, 2026fix(serve): what a run learns is kept item by item, by the grader and by the checks — Parcha-ai/agentrun2 reactions · 2 comments
- Jul 17, 2026chore(deps): bump the pip group across 2 directories with 20 updates — CaffeeLake/MemOS2 reactions · 4 comments
- Jun 24, 2026chore(deps): bump the pip group across 2 directories with 20 updates — CaffeeLake/MemOS2 reactions · 1 comment
- Jun 17, 2026plugin: official mem0 client (add_memory / search_memories hooks for cross-session memory) — Kilo-Org/kilocode2 reactions · 2 comments
- May 28, 2026chore(deps): bump the pip group across 9 directories with 5 updates — HarleyCoops/Dakota18902 reactions · 1 comment
- May 28, 2026chore(deps): bump the uv group across 23 directories with 15 updates — HarleyCoops/awesome-llm-apps2 reactions · 1 comment
- May 28, 2026chore(deps): bump mem0ai from 0.1.63 to 2.0.0b2 in /examples/demo-viewer/agent/demo/crewai_crew_enterprise/restaurant_finder_crew — HarleyCoops/copilotkit2 reactions · 1 comment
- May 28, 2026chore(deps): bump mem0ai from 0.1.63 to 2.0.0b2 in /examples/coagents-enterprise-crewai-crews/agent-py — HarleyCoops/copilotkit2 reactions · 1 comment
- May 28, 2026chore(deps): bump the pip group across 9 directories with 9 updates — HarleyCoops/Dakota18902 reactions · 3 comments
- May 28, 2026chore(deps): bump the pip group across 9 directories with 12 updates — HarleyCoops/Dakota18902 reactions · 3 comments
- May 13, 2026Bump mem0ai from 0.1.81 to 2.0.0b2 in /A2A/samples/python — HarleyCoops/Agent2Agent2 reactions · 1 comment
- May 13, 2026Bump mem0ai from 0.1.81 to 2.0.0b2 in /samples/python — HarleyCoops/A2A2 reactions · 1 comment
- May 13, 2026Bump mem0ai from 0.1.93 to 2.0.0b2 in /workflows — HarleyCoops/workflow-use2 reactions · 3 comments
- May 12, 2026chore(deps): update mem0ai requirement from >=0.1 to >=2.0.2 — EvezArt/evez666-arg-canon2 reactions · 1 comment
- Oct 26, 2026deps(python): bump the python-runtime group across 1 directory with 172 updates — JoeElder21/Joeyyy1 reaction · 2 comments
- Sep 7, 2026Chore(deps): bump mem0ai from 2.0.19 to 2.0.20 — MoonLadderStudios/MoonMind1 reaction
- Aug 31, 2026Chore(deps): bump mem0ai from 2.0.18 to 2.0.19 — MoonLadderStudios/MoonMind1 reaction
- Aug 17, 2026Chore(deps): bump mem0ai from 2.0.17 to 2.0.18 — MoonLadderStudios/MoonMind1 reaction
- Aug 10, 2026Chore(deps): bump mem0ai from 2.0.14 to 2.0.17 — MoonLadderStudios/MoonMind1 reaction
- Jul 27, 2026Chore(deps): bump mem0ai from 2.0.12 to 2.0.14 — MoonLadderStudios/MoonMind1 reaction
- Jul 20, 2026Chore(deps): bump mem0ai from 2.0.11 to 2.0.12 — MoonLadderStudios/MoonMind1 reaction
- Jul 16, 2026Evaluate + implement mem0 as a memory backend (kind: mem0) — fagerbergj/quack1 reaction · 13 comments
- Jul 6, 2026Bump mem0ai from 2.0.10 to 2.0.11 — MoonLadderStudios/MoonMind1 reaction
- Jun 29, 2026Bump mem0ai from 2.0.7 to 2.0.10 — MoonLadderStudios/MoonMind1 reaction
- Jun 28, 2026Expose memory over MCP: official 8 KG tools + remember/recall REST — joelfuller2016/KanbanFlow-v21 reaction · 2 comments
- Jun 28, 2026Add hybrid retrieval service (sqlite-vec + FTS5 BM25 + recency/usefulness fusion) — joelfuller2016/KanbanFlow-v21 reaction · 2 comments
- Jun 28, 2026Epic: AI memory store — semantic memory for agents over the kanban graph — joelfuller2016/KanbanFlow-v21 reaction · 6 comments
- Jun 28, 2026Epic: AI Memory & Ops Hub — KanbanFlow as memory + PM + knowledge store for AI — joelfuller2016/KanbanFlow-v21 reaction · 5 comments
- Jun 22, 2026Bump mem0ai from 2.0.6 to 2.0.7 — MoonLadderStudios/MoonMind1 reaction
- Jun 15, 2026Bump mem0ai from 2.0.4 to 2.0.6 — MoonLadderStudios/MoonMind1 reaction
- May 23, 2026docs(readme): link MemPalace, Mem0, Basic Memory in Comparison header — kitfunso/hippo-memory1 reaction
- May 8, 2026Bump mem0ai from 0.1.65 to 2.0.0b2 in /mem0-agent — cicero-im/ottomator-agents1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.65 to 2.0.0b2 in /mem0-agent/studio-integration-version — cicero-im/ottomator-agents1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/ai_travel_agent_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.93 to 2.0.0b2 in /advanced_ai_agents/multi_agent_apps/ai_news_and_podcast_agents/beifong — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/llm_app_personalized_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026build(deps): bump mem0ai from 1.0.1 to 2.0.0b2 — cicero-im/cuga-agent1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.102 to 2.0.0b2 in /advanced_ai_agents/multi_agent_apps/agent_teams/ai_travel_planner_agent_team/backend — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_llm_apps/llm_apps_with_memory_tutorials/local_chatgpt_with_memory — cicero-im/awesome-llm-apps1 reaction · 1 comment
- May 8, 2026chore(deps): bump mem0ai from 0.1.73 to 2.0.0b2 — cicero-im/camel1 reaction · 1 comment
- May 8, 2026Bump mem0ai from 0.1.29 to 2.0.0b2 in /advanced_ai_agents/single_agent_apps/ai_customer_support_agent — cicero-im/awesome-llm-apps1 reaction · 1 comment
- Feb 3, 2026提供集成 https://github.com/mem0ai/mem0的例子 — smallnest/langgraphgo1 reaction
- Jan 17, 2026Core: Mem0 Integration Framework — Arithmomaniac/copilot-session-tools1 reaction · 1 comment
- Nov 17, 2025GitMCP — tbrandenburg/shai1 reaction · 5 comments
- Sep 28, 2025Add support for FalkorDB MemoryGraph — FalkorDB/mem01 reaction · 3 comments
On Bluesky · 9
- Jul 18, 2024今日のGitHubトレンド mem0ai/mem0 mem0ai/mem0リポジトリは、パーソナライズされたAI体験を実現するためのメモリーレイヤーを提供するものです。… — @dailygithubtrends.bsky.social2 likes and reposts
- Aug 19, 2026🚀 GitHub Intelligence Drop rustlings (Rust • 🟢) ⭐ 63.9K → https://github.com/rust-lang/rustlings mem0 (Python • 🟢) ⭐ 63.5K →… — @githubfeed.bsky.social1 likes and repost
- May 17, 2025今日のGitHubトレンド mem0ai/mem0 このリポジトリは、AIアシスタントやエージェントにインテリジェントな記憶層を追加することを目的としています。 ユーザーの嗜好を記憶し、個々のニーズに適応し、継続的に学習することで、パーソナライズされたAI対話を実現します。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 8, 2025github.com/mem0ai/mem0 — @rdenadai.dev1 likes and repost
- Sep 4, 2024Show HN: Mem0 – open-source Memory Layer for AI apps Discussion — @hackernewsbot.bsky.social1 likes and repost
4 more on Bluesky
- Jul 17, 2024🔥 Hot Repo! 🔥 (100+ new stars) 📦 mem0ai / mem0 ⭐ 9,249 (+171) 🗒 Python The memory layer for Personalized AI — @github-trending.bsky.social1 likes and repost · 1 reply
- Jul 16, 2026**GODDAMMIT, #GOOGLE!!** So, I'm trying to set up mem0 to act as a "memory" service for my #OpenClaw configuration. Except, OpenClaw is six… — @ferricoxide.blahaj.zone.ap.brid.gy0 likes and reposts · 1 reply
- Dec 8, 2025build v buy, control v convenience. it was gemini's metaphor. i found it fascinating learning how this stuff really works. vector matching… — @songbirddigital.bsky.social0 likes and reposts · 1 reply
- Jul 21, 2024💎 Hidden Gem! 💎 (1000+ new stars) 📦 mem0ai / mem0 ⭐ 12,313 (+1,405) 🗒 Python The memory layer for Personalized AI — @github-trending.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Sep 4, 2024Show HN: Mem0 – open-source Memory Layer for AI apps201 points · 61 comments
- May 13, 2025Show HN: OpenMemory – Make your MCP clients more context-aware8 points
- Aug 1, 2024Mem0: The Memory Layer for Personalized AI2 points
In this repository24 other files it gives its agents.
- AGENTS.mdAGENTS.md
- docs/AGENTS.mdAGENTS.md
- .github/AGENTS.mdAGENTS.md
- integrations/AGENTS.mdAGENTS.md
- mem0/AGENTS.mdAGENTS.md
- mem0-ts/AGENTS.mdAGENTS.md
- server/AGENTS.mdAGENTS.md
- skills/AGENTS.mdAGENTS.md
- tests/AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- docs/CLAUDE.mdCLAUDE.md
- .github/CLAUDE.mdCLAUDE.md
- integrations/CLAUDE.mdCLAUDE.md
- mem0/CLAUDE.mdCLAUDE.md
- mem0-ts/CLAUDE.mdCLAUDE.md
- server/CLAUDE.mdCLAUDE.md
- skills/CLAUDE.mdCLAUDE.md
- tests/CLAUDE.mdCLAUDE.md
- docs/llms.txtllms.txt
- mem0-integrateSkill
- mem0-oss-to-platformSkill
- mem0Skill
- mem0-test-integrationSkill
- mem0-vercel-ai-sdkSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 1 is distinctive, and 5 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
5
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 53
Never commit API keys, .env, or ~/.mem0/config.json.
- Distinctive: line 55
After the human claims, the same API key keeps working — no agent disruption — and memories are preserved.
- Very specific: line 108
Use --json or --agent to get structured output suitable for LLM consumption.
- Very specific: line 149
Async processing delay: After mem0 add, memories process asynchronously.
- Very specific: line 151
Entity ID resolution: If you pass any explicit scope flag (e.g.
- Very specific: line 152
Stdin detection: When no text argument is provided and input is piped (not a TTY), the CLI reads from stdin.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mem0 CLI
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/CD pipelines.
Install
Node.js (npm):
npm install -g @mem0/cliPython (pip):
pip install mem0-cliBoth packages install a mem0 binary with identical commands, options, and output formats.
Setup
Autonomous Mem0 setup for agents (no email, no dashboard):
mem0 init --agent --agent-caller <your-name> --jsonReplace <your-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 <your-name> after init — it PATCHes the same key, idempotent, no disruption.
This mints an evaluation API key in <5 seconds. Use it immediately. Print this line to the human:
Mem0 memory is running in Agent Mode. Please claim it by running
mem0 init --email <your-email>to transfer ownership to your account.
Never commit API keys, .env, or ~/.mem0/config.json.
After the human claims, the same API key keeps working — no agent disruption — and memories are preserved.
Interactive wizard (for humans):
mem0 initOr set the environment variable directly:
export MEM0_API_KEY="m0-xxx"Get an API key at: https://app.mem0.ai/dashboard/api-keys?utm_source=oss&utm_medium=skill-mem0-cli
Quick Reference
Add a memory
mem0 add "I prefer dark mode" --user-id aliceSearch memories
mem0 search "preferences" --user-id aliceList all memories for a user
mem0 list --user-id aliceGet a specific memory
mem0 get <memory-id>Update a memory
mem0 update <memory-id> "new text"Delete a single memory
mem0 delete <memory-id>Delete all memories for a user
mem0 delete --all --user-id alice --forceAgent / JSON Mode
Use --json or --agent to get structured output suitable for LLM consumption. Every command wraps its response in a standard envelope:
{
"status": "success",
"command": "search",
"duration_ms": 245,
"scope": { "user_id": "alice" },
"count": 3,
"error": null,
"data": [
{ "id": "mem-abc", "memory": "User prefers dark mode", "score": 0.92 }
]
}On error:
{
"status": "error",
"command": "search",
"error": "Authentication failed. Your API key may be invalid or expired.",
"data": null
}The --agent flag is an alias for --json. Both write spinners and progress to stderr so stdout is always clean, parseable JSON.
Node and Python Parity
Both the Node.js (@mem0/cli) and Python (mem0-cli) CLIs are implemented from the same specification (cli-spec.json). They share:
- Identical command names, arguments, and flags
- Identical output formats (text, json, table, quiet)
- Identical entity ID resolution, graph tri-state, filter building
- Identical error messages and exit codes
Choose whichever runtime you already have installed. The behavior is the same.
Common Edge Cases
- Async processing delay: After
mem0 add, memories process asynchronously. Wait 2-3 seconds before searching for newly added content. Usemem0 event listto check processing status. --allvs--entitydelete modes:mem0 delete --all -u alicedeletes all memories for user alice.mem0 delete --entity -u alicedeletes the entity itself AND all its memories (cascade). These are mutually exclusive modes.- 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. - Stdin detection: When no text argument is provided and input is piped (not a TTY), the CLI reads from stdin. Works with
add,search, andupdate.
References
Load these on demand for deeper detail:
| Topic | File |
| Command reference (all commands, flags, options, examples) | references/command-reference.md |
| Configuration (config file, env vars, precedence, init wizard) | references/configuration.md |
| Workflows (piping, scripting, CI/CD, agent mode recipes) | references/workflows.md |
Related Mem0 Skills
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

