Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By chaitu0608v0.3.3Apache-2.0In 1 marketplace
Cross-session memory and token savings for coding agents.
Claude hands work to one, or you mention it with @.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Manual search resultstop_k
Maximum number of memories returned when Claude runs another search after the automatic first search.
numberOptional1–20default 3
Mem0 API Keyapi_key
Mem0 Platform API key used to create and search memories.
SensitivestringRequired
Memory user IDuser_id
Optional stable ID shared across machines. When omitted, Mem0 uses your local account name, matching the earlier Mem0 Claude Code plugin.
stringOptional
Default search scopesearch_scope
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.
stringOptionaldefault repo
Maximum retrieved contextmax_context_chars
Maximum number of memory characters returned for one search.
numberOptional1000–10000default 4000
Persistent cross-session memory for Claude Code, plus a Sonnet sidekick agent for delegated work.
Claude Code forgets everything between sessions. This plugin fixes that: hooks capture session details locally, a background worker turns them into Mem0 memories, and Claude automatically gets the relevant ones back at the start of later sessions.
Current bundle version: 0.3.1.
SubagentStart, SubagentStop, and PostToolUseFailure hook events.m0-).export MEM0_API_KEY='your-mem0-api-key'
claude plugin marketplace add mem0ai/mem0
claude plugin install mem0@mem0-plugins --scope user --config api_key="$MEM0_API_KEY"
unset MEM0_API_KEY
Restart Claude Code (or run /reload-plugins), then open a Git repository and work normally.
To update:
claude plugin marketplace update mem0-plugins
claude plugin update mem0@mem0-plugins --scope user
To remove:
claude plugin uninstall mem0@mem0-plugins
For local development, verify and load the self-contained plugin directory:
python3 integrations/agent-plugin-core/build/build.py claude-code --kind native --check
claude --plugin-dir integrations/claude-code-plugin
Capture. Hooks save the main agent's activity locally: user messages, Claude's answers, changed file paths, and short test/build results. Capture does not call a model. Sidekick assignments and completed responses are recorded separately as supporting evidence.
Flush. After every five completed exchanges, a detached background worker sends that batch to Mem0. Large exchanges flush sooner. Ending or compacting the session flushes anything remaining. The session-end worker sends the conversation already collected by hooks without recording the final answer again. If idle, an auto-flush runs after five minutes (configurable with MEM0_CODE_IDLE_FLUSH_SECONDS). The worker survives Claude Code exiting.
Extract. Each flush sends one or more add calls with agent_id (the project identity), user_id (you), app_id (the repository), and run_id (the session). Mem0 classifies each extracted memory as either:
agent_id): one namespace per repo, scoped by app_id. Stores conventions, decisions, constraints, working commands, and failed commands with their fixes. Everyone on the repo reads and writes the same pool. Never carries a user_id. Directory information is stored in metadata for directory-scoped searches.user_id): your preferred tools, style, habits, and anything you asked to be remembered. Scoped to the repo by app_id. Private to you.Recall. On the next session's first prompt, if it has at least 20 characters, the plugin searches automatically and supplies up to five relevant memories. No model is called to write the query.
Captured prompts and responses retain their full text after secret redaction. Oversized extraction input is split across requests without discarding message text. Search results and tool evidence still have separate size limits.
After that first search, Claude can call search_memories with a specific question, and you can run /mem0:search yourself. Explicit searches return up to 3 results by default (configurable to 20), capped at 4,000 characters.
Sidekick is available only in this plugin. The shared core handles memory and subagent tracking.
mem0:sidekick is a Sonnet coding agent that runs in a separate Git worktree. It can investigate, implement, test, debug, or review something instead of the main (Opus/Fable) session doing the same work, reducing cost when the main agent doesn't need to repeat it.
The main agent reviews the result. Corrections go back to the same sidekick so it keeps what it learned. Changes stay in the sidekick's worktree until the main agent reviews and copies them over.
Mem0 never blocks normal Claude Code work when a hook fails. It does not proxy Claude traffic, rewrite tool output, edit CLAUDE.md, force Claude to use the sidekick, or change how Claude implements the user's request.
Work in Claude Code normally. Memory is captured and recalled automatically.
/mem0:search Why does the ODS serializer keep dates timezone-naive?
/mem0:search What parser failures were fixed? --top-k 5 --category problems_and_fixes
/mem0:search Do I prefer pnpm or npm? --scope mine
To use the sidekick:
Ask Mem0's sidekick to investigate and implement this in its separate worktree.
Review its result and send any corrections back to the same sidekick.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub chaitu0608/mem0 --plugin mem0Plugins from other owners that cover similar ground