mem0ai avatar

Mem0 Cli

mem0ai/mem0Official

This is the official command line tool for Mem0's memory platform. Install it via npm or pip, both give you the same `mem0` binary with identical commands. It's built for terminals, scripts, and CI/CD pipelines rather than programmatic SDK integration. The standout feature is agent mode: run `mem0 init --agent` and it mints an API key in seconds without any email signup, letting AI assistants start using memory immediately while the human can claim ownership later without breaking anything. All commands support a `--json` flag that outputs clean structured data to stdout while progress goes to stderr, which makes it trivial to parse in shell scripts or feed back into an LLM context.

skills.sh installs
816
GitHub stars
68.7K
last updated
Aug 21, 2026

Install

$ npx -y skills add mem0ai/mem0 --skill mem0-cli --agent claude-code

Installs into .claude/skills of the current project.

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.

Sponsors

Details

Repository
github.com/mem0ai/mem0
Categories
AI & Agent Building, Python, Cloud & Infrastructure, CLI & Terminal
First seen
Jun 3, 2026

More from mem0ai/mem0

All 2
1mindrally avatarautogen-developmentmindrally/skillsExpert guidance for Microsoft AutoGen multi-agent framework development including agent creation, conversations, tool integration, and orchestration patterns.744skills.sh installs
2syncfusion avatarsyncfusion-react-inline-ai-assistsyncfusion/react-ui-components-skillsImplement the Syncfusion React Inline AI Assist component. Use this skill to add inline AI suggestions, integrate AI services such as OpenAI, Gemini, Lite-LLM, 725skills.sh installs
3alirezarezvani avatarai-securityalirezarezvani/claude-skillsUse when assessing AI/ML systems for prompt injection, jailbreak vulnerabilities, model inversion risk, data poisoning exposure, or agent tool abuse. Covers MIT720skills.sh installs
4mindrally avatarlangchain-developmentmindrally/skillsExpert guidance for LangChain and LangGraph development with Python, covering chain composition, agents, memory, and RAG implementations.707skills.sh installs
5alirezarezvani avataragent-designeralirezarezvani/claude-skillsUse when the user asks to design a multi-agent system, pick an orchestration pattern (supervisor/swarm/pipeline), generate tool schemas for agents, or evaluate 703skills.sh installs
6davila7 avatarai-agents-architectdavila7/claude-code-templatesExpert in designing and building autonomous AI agents. Masters tool use, memory systems, planning strategies, and multi-agent orchestration. Use when: build age688skills.sh installs