Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

mem0-cli

Skill by maomao-2001

Mem0 CLI is a command-line interface for managing Mem0 memories from a terminal. It is for developers, AI agents and CI/CD pipelines that need to add, search, list, update or delete memories.

  • Score 66
  • 120 stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install mem0-cli

Built from the published package, never by AI.

git clone --depth 1 https://github.com/maomao-2001/Whispera /tmp/Whispera && mkdir -p ~/.claude/skills && cp -r /tmp/Whispera/mem0/skills/mem0-cli ~/.claude/skills/mem0-cli

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install mem0-cli in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill teaches an AI assistant how to use the Mem0 CLI, which installs a mem0 binary through npm (@mem0/cli) or pip (mem0-cli). The two packages share the same commands, options and output formats. Commands cover adding, searching, listing, getting, updating and deleting memories, along with init, config, import and event checks.

Output can be switched to structured JSON with --json or --agent. Each response is wrapped in an envelope with status, command, data and error fields, and progress output goes to stderr so stdout stays parseable. The skill also covers agent setup, piping, scripting and CI/CD workflows. It points to separate skills for the Python and TypeScript SDK and the Vercel AI SDK provider. It requires a MEM0_API_KEY environment variable.

Written from the project's SKILL.md and checked against it.

What it can do

  • mem0 addAdds a memory for a user from text passed as an argument or piped in.
  • mem0 searchSearches stored memories by query, scoped to a user ID.
  • mem0 listLists all memories for a given user.
  • mem0 getRetrieves a specific memory by its ID.
  • mem0 updateChanges the text of an existing memory by its ID.
  • mem0 deleteDeletes one memory, or all memories for a user with --all.
  • mem0 initSets up Mem0 with an interactive wizard, or an agent mode that mints an evaluation key.
  • JSON agent modeReturns structured output with --json or --agent for use by LLMs and scripts.

What you need

  • Node.js 18+ or Python 3.10+
  • MEM0_API_KEY environment variable
  • Mem0 API key

Try asking

  • Save that I prefer dark mode for user alice using mem0 add
  • Search alice's memories for preferences with mem0 search, output as JSON
  • List every memory stored for user alice in a table

Good to know

  • Memories are processed asynchronously, so new content may take 2-3 seconds to appear in search.
  • The --all and --entity delete modes are mutually exclusive.
  • Deleting with --entity removes the entity and all of its memories.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: mem0/skills/mem0-cli/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to mem0-cli

All alternatives →

Compare with agentmemory-config, understand-knowledge or reports

mem0-cli: common questions

Do I need Python or Node.js to use the Mem0 CLI?

You need either Node.js 18+ (npm install -g @mem0/cli) or Python 3.10+ (pip install mem0-cli). The source says both give identical commands and behavior.

Why might a newly added memory not show up in search yet?

The source says memories process asynchronously after mem0 add. It suggests waiting 2-3 seconds or checking status with mem0 event list.

What is the difference between delete --all and delete --entity?

The --all mode deletes all memories for a user. The --entity mode deletes the entity itself along with all its memories.

How do I install mem0-cli?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is mem0-cli free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is mem0-cli safe to use?

It scores 66 of 100. Grades: maintenance C, licence A, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to mem0-cli?

Similar skills: agentmemory-config, understand-knowledge, reports, forget.

mem0-cli Install

Add to stack

Loading.