New advertisers: 50% off your first month with code FIRSTMONTHSee slots
mem0ai avatar

Mem0 Cli

mem0ai/mem0Official

Command-line interface for Mem0 memory operations: add, search, list, update, and delete memories from the terminal.

skills.sh installs
830
GitHub stars
69.3K
last updated
Aug 21, 2026
View on GitHub

What it does

  • Covers memory add, search, list, get, update, and delete, plus init, config, import, and entity and event commands
  • Ships as a mem0 binary on npm (@mem0/cli) or PyPI (mem0-cli), with matching commands and a JSON envelope in both
  • Includes an Agent Mode bootstrap via mem0 init --agent --json that mints an evaluation key without an email signup
  • Designed for developers, AI agents, and CI/CD pipelines that run Mem0 commands in a shell rather than SDK code

Install

$ npx -y skills add mem0ai/mem0 --skill mem0-cli -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

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/cli

Python (pip):

pip install mem0-cli

Both packages install a mem0 binary with the same commands, options, and output formats (see Node and Python Differences for the exceptions).

Setup

Autonomous Mem0 setup for agents (no email, no dashboard):

mem0 init --agent --agent-caller <your-name> --json

Replace <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.

Details

Repository
github.com/mem0ai/mem0
Categories
Memory & Context, CLI & Terminal
First seen
Jun 3, 2026

More from mem0ai/mem0

All 2

Similar to Mem0 Cli

More Memory & Context