{
 "schema_version": 1,
 "generated": "2026-10-24",
 "id": "mem0ai-mem0--give-agent-memory-from-cli",
 "repo": "mem0ai/mem0",
 "repo_url": "https://github.com/mem0ai/mem0",
 "repo_slug": "mem0ai-mem0",
 "title": "Give your coding agent a memory it can add to and search",
 "page_title": "How to give your coding agent a memory it can add to and search with Mem0",
 "summary": "Install the CLI, sign up as an agent, and add and search memories from the terminal.",
 "who": "A developer who wants Claude Code to remember project preferences.",
 "problem": "Agents forget preferences between sessions.",
 "outcome": "Memories the agent can add and retrieve by meaning.",
 "steps": [
  "Install with `npm install -g @mem0/cli`",
  "Run `mem0 init --agent --agent-caller claude-code`",
  "Add a memory with `mem0 add \"I am using mem0\"`",
  "Search with `mem0 search \"am I using mem0\"`"
 ],
 "agent_prompt": "Install the mem0 CLI, initialize it for <agent>, add the memory <fact>, and search for it. Confirm the search returns it.",
 "agents": [
  "claude-code"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "Agent sign-up uses the managed platform unless you point the CLI at your own server.",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "python",
 "requirements": [
  "Python or Node.js",
  "Docker to self-host the server",
  "An LLM provider key for memory extraction"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/mem0ai-mem0/give-agent-memory-from-cli/",
 "md": "https://dedupedai.com/use-cases/mem0ai-mem0/give-agent-memory-from-cli/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/mem0ai-mem0--give-agent-memory-from-cli.json",
 "api_version": "v1"
}
