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 mem9-aiv0.3.4Apache-2.0In 1 marketplace
Gives Claude Code persistent cloud memory that recalls past context on each prompt and lets you store facts explicitly. Requires Node.js 18+ and uploads your conversation turns to mem9's cloud after each response.
Trending plugins
7-day copy clicks
Claude loads one when your task matches it, or you run it by name.
No risk signals detected
Nothing flagged in this plugin's hooks, MCP servers or commands. Other components are not analyzed.
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.
Persistent cloud memory for Claude Code.
Install from your terminal with the Claude Code CLI:
claude plugin marketplace add mem9-ai/mem9
claude plugin install mem9@mem9
After installation, start a new Claude Code session. Mem9 will initialize automatically on SessionStart(startup).
Node.js 18+https://api.mem9.aiThe plugin stores its runtime API key cache in:
${CLAUDE_PLUGIN_DATA}/auth.json
This file is a runtime auth cache stored in the Claude Code plugin data directory. Claude Code may remove that directory when the plugin is removed from its last scope.
That file is auto-created on SessionStart(startup) when auth is missing.
The stored JSON looks like this:
{
"base_url": "https://api.mem9.ai",
"api_key": "generated-api-key",
"created_at": "2026-04-10T00:00:00.000Z",
"source": "auto_provisioned"
}
SessionStart(startup)
-> check Node.js 18+
-> create auth.json if missing
UserPromptSubmit
-> GET /v1alpha2/mem9s/memories?q=...
-> inject <relevant-memories>...</relevant-memories>
Stop
-> parse transcript_path
-> upload last turn as messages[]
PreCompact
-> upload a larger recent window
SessionEnd
-> upload a small best-effort final window
Automatic recall uses:
GET /v1alpha2/mem9s/memories?q=<prompt>&limit=10
Headers:
X-API-Key: <api_key>
X-Mnemo-Agent-Id: claude-code
Recall intentionally omits agent_id so every agent bucket in the account (e.g. other plugins) contributes to the result set. Ingest still scopes writes by agent_id (see below).
Automatic transcript ingest uses:
POST /v1alpha2/mem9s/memories
{
"session_id": "claude-session-id",
"agent_id": "claude-code-main",
"mode": "smart",
"messages": [
{ "role": "user", "content": "..." },
{ "role": "assistant", "content": "..." }
]
}
The plugin exposes:
/mem9:setup/mem9:recall/mem9:store/mem9:setup is the backup path when auto-init did not complete.
It writes ${CLAUDE_PLUGIN_DATA}/auth.json without printing the API key back to the user.
If memory is not working:
node --version is >= 18.${CLAUDE_PLUGIN_DATA}/auth.json exists./mem9:setup.If SessionStart says Node is missing, install Node and restart Claude Code.
If recall fails, Claude continues normally. The plugin treats recall as best effort.
If Stop / PreCompact / SessionEnd fail, Claude still exits normally. The plugin treats ingest as best effort.
For real Claude Code troubleshooting, enable plugin debug logs with:
export MEM9_DEBUG=1
When enabled, the plugin writes JSONL logs to:
${CLAUDE_PLUGIN_DATA}/logs/hooks.jsonl
The logs are designed for debugging hook flow without leaking secrets:
7-day copy clicks
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.
Plugins from other owners that cover similar ground