Mem0 CLI - Agent-First Memory from Your Terminal
Mem0 CLI - Agent-First Memory from Your Terminal
Deshraj Yadav
April 9, 2026
Introducing Mem0 CLI
Add, search, and manage memories directly from your terminal, agent-first and built to integrate directly into tool loops.
Mem0 CLI
We’re entering an agent-first world and a new stack is forming where agents are the primary users:
- Agents can speak, thanks to ElevenLabs and Vapi_AI
- Agents have email using agentmail
- Agents have phone numbers with AgentPhoneHQ
- Agents can browse with browserbase
- Agents can search with firecrawl and ExaAILabs
- Agents can use SaaS tools like composio
- Agents can pay using GoKiteAI and paysponge
And : Mem0 agents can remember
If you stitch this stack together, you don’t just get tools. You get a digital coworker.
Memory is what makes that coworker actually stateful.
mem0 CLI
Agents today can reason, plan, and execute. But when it comes to memory, most teams hit friction.
SDKs to wire. Pipelines to build. Vector DBs, Markdown Files, or database to manage. Adding memory system how to retrieve, what to add and omit.
Getting memory working often takes more effort than it should. So we made it simple, for agents and humans.
What It Does
Add Memory
mem0 add "Prefers TypeScript" --user-id cli-demo
mem0 add "Always respond in MD format" --agent-id coding-assistant
You can add memory scoped to user or agent
Agent memory preference
Search Across Memory
mem0 --agent search "preferences" --user-id cli-demo
Result: agent search
List and Inspect
mem0 list --user-id cli-demo
View everything your agent knows. Filter and debug in one place.
List memory
Get Started
npm install -g @mem0/cli
or
pip install mem0-cli
We built mem0 CLI to help agents remember.
Try it and let us know what you built!
Read More
Mem0 is an intelligent, open-source memory layer designed for LLMs and AI agents to provide long-term, personalized, and context-aware interactions across sessions.
- Install Mem0 CLI
- Get your free API Key here : app.mem0.ai
- or self-host mem0 from our open source github repository