mem0

mem0 is a plugin for Claude Code from mem0ai/mem0. Its manifest loads nothing; the 1 agent, 9 hooks, 1 MCP server it bundles cost 106 tokens per session together, scanned A, original, Apache-2.0.

A cross-session memory service for coding agents. It stores and searches useful context between conversations.

In plain words
What is it for?
Use it to capture memories, search prior context, and share stable memory across machines when configured.
Why use it?
It reduces the need to repeat project history, preferences, and earlier decisions in every session.

Plugin for Claude Code

Written for Claude Code: a Claude Code plugin manifest. Also seen: mentions Claude Code.

▶ Mem0 + Claude Code MCP — Give Your AI Agent a Permanent Memory Prompt Engineer · about mem0 · on YouTube →

Good fit Use it to capture memories, search prior context, and share stable memory across machines when configured.

Compare 6 plugins from other repositories ↓
Install in Claude Code
/plugin marketplace add mem0ai/mem0
/plugin install mem0
About the project

mem0 is memory infrastructure that lets AI agents and applications store and retrieve information across interactions. It supports agents and developers who need persistent context for AI systems.

mem0ai/mem0 · 67,370 stars · on GitHub · mem0.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/mem0ai/mem0

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mem0

README.md
[![agentmods](https://agentmods.dev/badge/plugins/mem0ai/mem0/claude-code-plugin/github.svg)](https://agentmods.dev/plugins/mem0ai/mem0/claude-code-plugin)
Your own site
<a href="https://agentmods.dev/plugins/mem0ai/mem0/claude-code-plugin"><img src="https://agentmods.dev/badge/plugins/mem0ai/mem0/claude-code-plugin/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mem0

Your own site · 80×15
<a href="https://agentmods.dev/plugins/mem0ai/mem0/claude-code-plugin"><img src="https://agentmods.dev/badge/plugins/mem0ai/mem0/claude-code-plugin.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session not measured What this adds to a session before it is invoked.
When invoked not measured The manifest loads nothing itself; its 1 agent, 9 hooks, 1 MCP server cost 106 tokens a session between them.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Security

Grade A, and why

mem0 scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

integrations/claude-code-plugin/.claude-plugin/plugin.json · 53 lines

What it actually says

{
  "name": "mem0",
  "version": "0.3.3",
  "description": "Cross-session memory and token savings for coding agents.",
  "author": {
    "name": "Mem0"
  },
  "homepage": "https://docs.mem0.ai/integrations/claude-code",
  "repository": "https://github.com/mem0ai/mem0",
  "license": "Apache-2.0",
  "keywords": ["memory", "coding-agents", "continual-learning", "token-efficiency"],
  "userConfig": {
    "api_key": {
      "type": "string",
      "title": "Mem0 API Key",
      "description": "Mem0 Platform API key used to create and search memories.",
      "sensitive": true,
      "required": true
    },
    "user_id": {
      "type": "string",
      "title": "Memory user ID",
      "description": "Optional stable ID shared across machines. When omitted, Mem0 uses your local account name, matching the earlier Mem0 Claude Code plugin.",
      "required": false
    },
    "top_k": {
      "type": "number",
      "title": "Manual search results",
      "description": "Maximum number of memories returned when Claude runs another search after the automatic first search.",
      "default": 3,
      "min": 1,
      "max": 20,
      "required": false
    },
    "max_context_chars": {
      "type": "number",
      "title": "Maximum retrieved context",
      "description": "Maximum number of memory characters returned for one search.",
      "default": 4000,
      "min": 1000,
      "max": 10000,
      "required": false
    },
    "search_scope": {
      "type": "string",
      "title": "Default search scope",
      "description": "How wide every search runs by default. 'repo' is the whole repository's shared memory plus your own preferences, 'dir' narrows the shared memory to the directory you are working in, and 'mine' is your preferences alone.",
      "default": "repo",
      "required": false
    }
  }
}
Contents

What it installs

The manifest is a name and a version. 1 agent, 9 hooks, 1 MCP server travel with it, and installing the plugin installs all of them — 106 tokens a session between them. Each is measured on its own page, and each can be installed alone.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed a47ce866cbf3
  2. 29d ago Changed f5ce7b57f1f8
  3. 1mo ago Changed f91e6be5e5fc
  4. 1mo ago First seen · 53 lines scan A d3569732bf7c

Subscribe to this mod's changes

mem0 is a plugin published in the GitHub repository mem0ai/mem0 (67,370 stars, last pushed today), licensed Apache-2.0. Its token cost is not measured: this kind of file is read by the harness, not the model. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-02.