# 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](https://www.elevenlabs.io) and [Vapi_AI](https://vapi.ai/)
- Agents have email using agentmail
- Agents have phone numbers with [AgentPhoneHQ](https://agentphone.to/)
- Agents can browse with [browserbase](https://www.browserbase.com/)
- Agents can search with [firecrawl](https://www.firecrawl.dev/) and [ExaAILabs](https://exa.ai/)
- Agents can use SaaS tools like [composio](https://composio.dev/)
- Agents can pay using [GoKiteAI](https://gokite.ai/) and [paysponge](https://paysponge.com/)

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_](/content/cli/index.html)
- _Get your free API Key here :_ [_app.mem0.ai_](https://app.mem0.ai/?utm_source=mem0_blog&utm_medium=blog_ad&utm_campaign=mem0_cli&utm_content=mem0_cli_example)
- _or self-host mem0 from our open source_ [_github repository_](https://github.com/mem0ai/mem0)
