skills/mem0-cli/README.md
Manage memories from the terminal using the Mem0 CLI. This skill teaches Claude how to use every mem0 command, flag, and output mode -- for both the Node.js and Python implementations.
When installed, Claude can:
npx skills add https://github.com/mem0ai/mem0 --skill mem0-cli
skills/mem0-cli folder as a ZIPcurl -X POST https://api.anthropic.com/v1/skills \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "mem0-cli", "source": "https://github.com/mem0ai/mem0/tree/main/skills/mem0-cli"}'
A Mem0 Platform API key (Get one here)
Node.js 18+ or Python 3.10+
Install the CLI:
# Node.js
npm install -g @mem0/cli
# Python
pip install mem0-cli
Set the environment variable:
export MEM0_API_KEY="m0-your-api-key"
Or run mem0 init for the interactive setup wizard.
After installing, just ask Claude:
skills/mem0-cli/
├── SKILL.md # Skill definition and instructions
├── README.md # This file
├── LICENSE # Apache-2.0
└── references/ # Documentation (loaded on demand)
├── command-reference.md # Every command, flag, option, and example
├── configuration.md # Config file, env vars, precedence, init wizard
└── workflows.md # Piping, scripting, CI/CD, agent mode recipes
This skill is part of the Mem0 skill graph -- three interconnected skills for different interfaces to the Mem0 platform:
| Skill | Purpose | Link |
|---|---|---|
| mem0 | Python/TypeScript SDK, REST API, framework integrations | local / GitHub |
| mem0-cli (this skill) | Terminal commands for memory operations | local / GitHub |
| mem0-vercel-ai-sdk | Vercel AI SDK provider with automatic memory | local / GitHub |
Apache-2.0