Product

Product

Mem0 CLI - Agent-First Memory from Your Terminal

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:

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
mem0 add "Prefers TypeScript" --user-id cli-demo
mem0 add "Always respond in MD format" --agent-id coding-assistant
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
mem0 --agent search "preferences" --user-id cli-demo
mem0 --agent search "preferences" --user-id cli-demo

Result: agent search

List and Inspect

mem0 list --user-id cli-demo
mem0 list --user-id cli-demo
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
npm install -g @mem0/cli
npm install -g @mem0/cli

or

pip install mem0-cli
pip install mem0-cli
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.

GET TLDR from:

Summarize

Website/Footer

Summarize

Website/Footer

Summarize

Website/Footer

Summarize

Website/Footer

Give your AI a memory and personality.

Instant memory for LLMs—better, cheaper, personal.

Give your AI a memory and personality.

Instant memory for LLMs—better, cheaper, personal.

Give your AI a memory and personality.

Instant memory for LLMs—better, cheaper, personal.