openclaw
Skill96k starsChanged 7 months agoApache-2.0View on GitHub
This guide walks through setting up the claude-mem plugin on an OpenClaw gateway. By the end, your agents will have persistent memory across sessions via system prompt context injection, and optionally a real-time observation feed streaming to a messaging channel. Run this one-liner to install everything automatically: The installer handles dependency checks (Bun, uv), plugin installation, memory slot configuration, AI provider setup, worker startup, and optional observation feed configuration — all interactively. Pre-select your AI provider and API key to…
- Pipes a download into a shell
- Installs packages
10 other projects use a version of this, 1 of them edited.
How people change it
All 1 edited versions we compared keep every one of its 19 rules.
Of the 1 edited version we compared: 1 keep every rule.
We split this file and each edited version into the rules they give an agent and match them by wording. A version that adds no rule of its own and has not changed since this file last did reads as an older text, so what it lacks is not counted as dropped. We keep no past texts of a file, so that is inferred, and an edited version that started from an older text still counts its gaps as drops.
Adopted by
Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data
Most recently taken up by
- gcapodeferro02/my-agent-skillsword for word, first seen Sep 21, 2026
- Sequenzy/mcptheir own version, first seen May 17, 2026
- cmoron/claude-configtheir own version, first seen May 15, 2026
- realjaymes/marketingagentskillstheir own version, first seen May 14, 2026
- jorgeasaurus/agent-skillsedited, first seen May 11, 2026
- miketromba/skillstheir own version, first seen Apr 8, 2026
Who's talking about thedotmack/claude-mem
- code-yeongyu/oh-my-openagent“[RFE]: Automated Learning Capture System”GitHub · Feb 2, 2026 · 15 reactions
- @ponceto91.bsky.social“Claude-mem est un plugin Claude Code qui capture automatiquement tout ce que Claude fait pendant vos …”Bluesky · Feb 10, 2026 · 8 likes
- @github-trending-js.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 81,411 (+220) 🗒 TypeScript Persistent …”Bluesky · Jun 9, 2026 · 7 likes
- @tech-pulse.bsky.social“Open-source AI is moving from “chat demos” to real agent infrastructure. Today’s standout: `claude-mem` — …”Bluesky · Apr 17, 2026 · 5 likes
- @github-trending-js.bsky.social“🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 91,080 (+121) 🗒 JavaScript Persistent …”Bluesky · Aug 18, 2026 · 4 likes
The biggest 5 of 102 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 102
Talked about on GitHub, Bluesky and Hacker News (102 times).
On GitHub · 50
- Feb 2, 2026[RFE]: Automated Learning Capture System — code-yeongyu/oh-my-openagent15 reactions · 76 comments
- Dec 31, 2025Feature Request: Add hook exit code for "user-visible message without context injection" — anthropics/claude-code2 reactions · 4 comments
- Dec 30, 2025[feat]: Integrate claude-mem for persistent agent memory across sessions — generalaction/emdash2 reactions
- Dec 22, 2025CCS does not work with https://github.com/thedotmack/claude-mem — kaitranntt/ccs2 reactions · 2 comments
- Aug 2, 2026Obisidian skill — shivam-verma-philips-1/ai-team1 reaction · 1 comment
45 more on GitHub
- Apr 24, 2026Codex auto-mirrors Claude Code marketplaces, breaking MCP handshake for Claude-only plugins — openai/codex1 reaction · 1 comment
- Mar 25, 2026What AI tools to use with Claude Code — onmyway133/blog1 reaction
- Feb 2, 2026docs: Add claude-mem integration guide for OpenClaw — openclaw/clawhub1 reaction · 2 comments
- Jan 19, 2026Deprecate claude-mem plugin due to upstream bug — jellydn/my-ai-tools1 reaction · 2 comments
- Jan 19, 2026Deprecated Claude-Mem plugin — jellydn/my-ai-tools1 reaction
- Jan 12, 2026Performance Check Beads/Claude-mem — aiming-lab/SimpleMem1 reaction · 1 comment
- Jan 9, 2026🧘 SHADX TECH — eclipse-theia/theia1 reaction · 2 comments
- Dec 31, 2025Comparison & Clarification: Continuous Claude vs Claude-Mem — parcadei/Continuous-Claude-v31 reaction
- Dec 20, 2025I want to use this plugin in opencode! — code-yeongyu/oh-my-openagent1 reaction · 7 comments
- Nov 28, 2026Repo: thedotmack/claude-mem — the-book-of-ai/source0 reactions
- Nov 28, 2026Sumar reel de claude-mem (memoria entre sesiones para Claude Code) — estebanulverclaude/guardados0 reactions · 1 comment
- Nov 27, 2026claude-code-marketplaces.github.thedotmack.claude-mem: 17.0.1 → 17.0.2 — sudosubin/agents.nix0 reactions
- Nov 27, 2026agent-skills.github.thedotmack.claude-mem: 17.0.0 → 17.0.2 — sudosubin/agents.nix0 reactions
- Nov 27, 2026claude-code-plugins.github.thedotmack.claude-mem: 17.0.0 → 17.0.2 — sudosubin/agents.nix0 reactions
- Nov 26, 2026## Summary — imagekit-developer/imagekit-javascript0 reactions
- Nov 26, 2026claude-code-marketplaces.github.thedotmack.claude-mem: 16.1.6 → 17.0.1 — sudosubin/agents.nix0 reactions
- Nov 26, 2026agent-skills.github.thedotmack.claude-mem: 16.2.0 → 17.0.0 — sudosubin/agents.nix0 reactions
- Nov 26, 2026claude-code-plugins.github.thedotmack.claude-mem: 16.2.1 → 17.0.0 — sudosubin/agents.nix0 reactions
- Nov 26, 2026agent-skills.github.thedotmack.claude-mem: 16.1.5 → 16.2.0 — sudosubin/agents.nix0 reactions
- Nov 26, 2026claude-code-plugins.github.thedotmack.claude-mem: 16.1.5 → 16.2.1 — sudosubin/agents.nix0 reactions
- Nov 26, 2026claude-code-marketplaces.github.thedotmack.claude-mem: 16.1.3 → 16.1.6 — sudosubin/agents.nix0 reactions
- Nov 25, 2026agent-skills.github.thedotmack.claude-mem: 16.1.4 → 16.1.5 — sudosubin/agents.nix0 reactions
- Nov 25, 2026claude-code-plugins.github.thedotmack.claude-mem: 16.1.3 → 16.1.5 — sudosubin/agents.nix0 reactions
- Nov 25, 2026[IDEA] Context Tariff: Token-Budget Enforcement for Bounded Agent Runs — A-L-L-A-H/mw-xv0 reactions
- Nov 25, 2026agent-skills.github.thedotmack.claude-mem: 16.1.3 → 16.1.4 — sudosubin/agents.nix0 reactions
- Nov 25, 2026agent-skills.github.thedotmack.claude-mem: 16.1.2 → 16.1.3 — sudosubin/agents.nix0 reactions
- Nov 25, 2026claude-code-plugins.github.thedotmack.claude-mem: 16.1.2 → 16.1.3 — sudosubin/agents.nix0 reactions
- Nov 24, 2026claude-code-marketplaces.github.thedotmack.claude-mem: 16.1.2 → 16.1.3 — sudosubin/agents.nix0 reactions
- Nov 24, 2026claude-code-plugins.github.thedotmack.claude-mem: 16.1.1 → 16.1.2 — sudosubin/agents.nix0 reactions
- Nov 24, 2026agent-skills.github.thedotmack.claude-mem: 16.1.1 → 16.1.2 — sudosubin/agents.nix0 reactions
- Nov 24, 2026claude-code-marketplaces.github.thedotmack.claude-mem: 16.1.0 → 16.1.2 — sudosubin/agents.nix0 reactions
- Nov 24, 2026agent-skills.github.thedotmack.claude-mem: 16.1.0 → 16.1.1 — sudosubin/agents.nix0 reactions
- Nov 17, 2026chore(deps): Bump claude-mem from 13.28.0 to 13.41.0 — forgen-team/forgen0 reactions · 1 comment
- Nov 10, 2026fix(sync): retry a failed post-delete Chroma cleanup (upstream #5664) — Zhong-fan/claude-mem0 reactions · 2 comments
- Nov 8, 2026Research: evaluate claude-mem as cross-session episodic memory (trending 2026-11-08) — rrvanga/agent-lab0 reactions
- Nov 5, 2026Check trending repo: thedotmack/claude-mem — uibm/trending-watcher0 reactions · 2 comments
- Nov 5, 2026Github trending [thedotmack/claude-mem] 跨会话持久记忆压缩系统:自动捕获会话并 AI 压缩后回注,兼容 Claude Code/Codex 等 10+ 运行时 — web1992/github-trending0 reactions
- Nov 4, 2026Изолировать окружение Codex CLI для классификатора — AlekseyZapadovnikov/pkb0 reactions
- Nov 4, 2026Check trending repo: thedotmack/claude-mem — uibm/trending-watcher0 reactions · 2 comments
- Nov 4, 2026Github trending [thedotmack/claude-mem] 跨会话持久记忆压缩系统,兼容10+种Agent运行时已破11万⭐ — web1992/github-trending0 reactions
- Nov 3, 2026Check trending repo: thedotmack/claude-mem — uibm/trending-watcher0 reactions · 2 comments
- Nov 3, 2026Github trending [thedotmack/claude-mem] 跨会话持久记忆压缩系统,兼容10+种Agent运行时已破11万⭐ — web1992/github-trending0 reactions
- Nov 2, 2026[DRAFT][NO-GO] Source-only cross-session memory pointers and independent trust gate — sedanoantolinalberto-code/AutoTactics-ChessStories0 reactions
- Nov 2, 2026Check trending repo: thedotmack/claude-mem — uibm/trending-watcher0 reactions · 2 comments
- Nov 1, 2026thedotmack 'claude-mem' — 세션을 넘어 에이전트 맥락을 이어 주는 지속 메모리, 하루 1,723스타로 트렌딩 1위 (11/1, GitHub) — roomedia/ax-trend0 reactions
On Bluesky · 49
- Feb 10, 2026Claude-mem est un plugin Claude Code qui capture automatiquement tout ce que Claude fait pendant vos sessions, le compresse et réinjecte le… — @ponceto91.bsky.social8 likes and reposts · 1 reply
- Jun 9, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 81,411 (+220) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social7 likes and reposts · 4 replies
- Apr 17, 2026Open-source AI is moving from “chat demos” to real agent infrastructure. Today’s standout: `claude-mem` — persistent memory for coding… — @tech-pulse.bsky.social5 likes and reposts · 1 reply
- Aug 18, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 91,080 (+121) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social4 likes and reposts
- Jul 5, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 85,913 (+180) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social4 likes and reposts · 1 reply
44 more on Bluesky
- May 26, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 78,307 (+319) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending.bsky.social4 likes and reposts
- Nov 4, 2026I came across this impressive open-source project on GitHub: persistent AI agent memory. See link below. #opensource #AI #GitHub… — @alexiskirke.bsky.social3 likes and reposts · 1 reply
- Mar 17, 2026在 Claude Code 里安装 claude-mem claude-mem 是一个专门为 Claude Code 打造的持久化记忆系统,它能做的事有这么多: 1、自动记录每次会话中的代码操作、工具调用和对话内容 2、智能压缩生成语义摘要,为下次会话做准备… — @coolchou.bsky.social3 likes and reposts
- Mar 16, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 thedotmack / claude-mem ⭐ 36,075 (+1,017) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social3 likes and reposts · 1 reply
- Feb 22, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 30,071 (+406) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social3 likes and reposts · 1 reply
- Nov 21, 2026Your coding agent starts from zero every session. claude-mem gives it a memory that carries over. 🔗 github.com/thedotmack/claude-mem… — @prosperflowio.bsky.social2 likes and reposts
- Oct 22, 2026Memory that never forgets A TypeScript plugin that automatically captures, compresses, and re-injects agent observations so context… — @cherrypickedhq.bsky.social2 likes and reposts
- Aug 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 89,220 (+115) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social2 likes and reposts
- Mar 29, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 42,128 (+389) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social2 likes and reposts · 2 replies
- Mar 28, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 41,770 (+391) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social2 likes and reposts · 3 replies
- Mar 16, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 thedotmack / claude-mem ⭐ 36,075 (+1,017) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Feb 13, 2026claude code skill: claude-mem A Claude Code plugin that automatically captures everything Claude does during your coding sessions,… — @jackculpan.com2 likes and reposts · 2 replies
- Feb 2, 2026thedotmack/claude-mem A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it… — @finland.activitypub.awakari.com.ap.brid.gy2 likes and reposts
- Jan 8, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 11,476 (+567) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social2 likes and reposts · 1 reply
- Nov 1, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 thedotmack / claude-mem ⭐ 108,770 (+1,527) 🗒 TypeScript Persistent Context Across Sessions for… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 26, 20266 free developer resources worth bookmarking: usagerank.com - Share your Claude and Codex usage github.com/addyosmani/... - AI coding… — @csaba.bsky.social1 likes and repost · 1 reply
- Oct 25, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 102,690 (+274) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Oct 9, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 98,878 (+838) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Oct 5, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 96,368 (+534) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Sep 23, 2026📦 thedotmack / claude-mem ⭐ 94,526 (+96) 🗒 TypeScript Persistent Context Across Sessions for Every Agent – Captures everything your agent… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Aug 27, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 91,906 (+131) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Aug 12, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 90,499 (+129) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Aug 8, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 89,949 (+149) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Jul 16, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 87,456 (+131) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost
- Jun 16, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 82,676 (+281) 🗒 JavaScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- May 13, 2026🚀 GitHub Intelligence Drop lobehub (TypeScript • 🟢) ⭐ 77K → https://github.com/lobehub/lobehub claude-mem (TypeScript • 🟢) ⭐ 75.5K →… — @githubfeed.bsky.social1 likes and repost
- Apr 14, 2026今日のGitHubトレンド thedotmack/claude-mem Claude Code向けの永続的メモリ圧縮システムです。… — @dailygithubtrends.bsky.social1 likes and repost
- Apr 13, 2026thedotmack/claude-mem A Claude Code plugin that automatically captures everything Claude does during your coding sessions, compresses it… — @finland.activitypub.awakari.com.ap.brid.gy1 likes and repost · 1 reply
- Apr 12, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 48,521 (+671) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social1 likes and repost · 1 reply
- Apr 12, 2026今日のGitHubトレンド thedotmack/claude-mem Claude Code向けの永続的メモリ圧縮システムです。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 29, 2026今日のGitHubトレンド thedotmack/claude-mem Claude Code向けの永続的メモリ圧縮システムです。… — @dailygithubtrends.bsky.social1 likes and repost
- Mar 11, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 34,079 (+205) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Mar 6, 2026If you use Claude Code across multiple sessions on the same project, this is worth trying. github.com/thedotmack/... — @tommytang.bsky.social1 likes and repost · 1 reply
- Feb 5, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 thedotmack / claude-mem ⭐ 23,315 (+1,899) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social1 likes and repost
- Jan 30, 2026https://github.com/thedotmack/claude-mem — @sigmanor.net1 likes and repost
- Jan 6, 2026🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 10,893 (+512) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Jan 1, 2026🔥 Hot Repo! 🔥 (100+ new stars) 📦 thedotmack / claude-mem ⭐ 9,814 (+107) 🗒 TypeScript A Claude Code plugin that automatically captures… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Dec 16, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 7,144 (+633) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending-js.bsky.social1 likes and repost · 1 reply
- Dec 13, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 thedotmack / claude-mem ⭐ 5,094 (+949) 🗒 TypeScript A Claude Code plugin that automatically… — @github-trending.bsky.social1 likes and repost · 2 replies
- Nov 24, 20263. Claude Mem: memory across sessions /plugin marketplace add thedotmack/claude-mem /plugin install claude-mem… — @mouenul.bsky.social0 likes and reposts · 1 reply
- Nov 2, 2026💎 Hidden Gem! 💎 (1000+ new stars) 📦 thedotmack / claude-mem ⭐ 110,319 (+1,799) 🗒 TypeScript Persistent Context Across Sessions for… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 29, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 104,222 (+324) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending.bsky.social0 likes and reposts · 1 reply
- Oct 28, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 103,896 (+338) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
- May 26, 2026🚀 Skyrocketing! 🚀 (200+ new stars) 📦 thedotmack / claude-mem ⭐ 78,307 (+319) 🗒 TypeScript Persistent Context Across Sessions for Every… — @github-trending-js.bsky.social0 likes and reposts · 1 reply
On Hacker News · 3
- Oct 29, 2026Installing claude-mem uploads your last 30 days of prompts to cmem.ai, no opt-in3 points
- Mar 28, 2026Claude-Mem2 points · 1 comment
- Dec 11, 2025Claude-Mem1 point
Other versions10 projects use a version of this.
Word for word · 1
- gcapodeferro02/my-agent-skills★ 1100% same
Edited · 1
- jorgeasaurus/agent-skills★ 1387% same
Wrote their own version · 8
- daymade/claude-code-skills★ 1.4ksame name
- TechNickAI/openclaw-config★ 76same name
- realjaymes/marketingagentskills★ 63same name
- miketromba/skills★ 2same name
- rogue-dev-studio/ai-agents-rogue★ 2same name
- Sequenzy/mcp★ 2same name
- cmoron/claude-config★ 1same name
- matts8008/mailclaw-skill★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository2 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- .github/copilot-instructions.mdCopilot instructions
The file
Show its rules and text
We split this skill into the rules it gives an agent
19 rules. 0 are common, 7 are distinctive, and 12 are very specific to this project.
0
Common
Most of the 8 edited versions we read keep these.
7
Distinctive
This author's own choices. Worth a look.
12
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 7
Run this one-liner to install everything automatically:
- Distinctive: line 35
After installation, skip to Step 4: Restart the Gateway and Verify to confirm everything is working.
- Very specific: line 67
If this machine also runs Claude Code with claude-mem installed, the worker may already be running:
- Very specific: line 79
If claude-mem is installed as a Claude Code plugin (at ~/.claude/plugins/marketplaces/thedotmack/), start the worker from that installation:
- Very specific: line 93
Still not working?: Check npm run worker:status for error details, or check that bun is installed and on your PATH.
- Distinctive: line 97
Run the worker from the cloned repo:
- Very specific: line 112
Check that bun is installed: bun --version
- Very specific: line 113
Check the worker status: npm run worker:status
- Very specific: line 114
Check if something else is using port 37777: lsof -i :37777
- Very specific: line 115
Check logs: npm run worker:logs (if available)
- Very specific: line 120
Add the claude-mem plugin to your OpenClaw gateway configuration:
- Very specific: line 157
If you see this, the plugin is loaded.
- Distinctive: line 178
All of this happens automatically.
- Very specific: line 190
Every time claude-mem creates a new observation from your agent's tool usage, a message like this appears in your channel:
- Distinctive: line 258
Use the phone number or group ID configured in your OpenClaw gateway's Signal plugin.
- Distinctive: line 272
Use the phone number or group JID configured in your OpenClaw gateway's WhatsApp plugin.
- Distinctive: line 286
Use the user ID or group ID from the LINE Developer Console.
- Very specific: line 340
If Connection shows connected, you're done.
- Very specific: line 402
Every tool use (Read, Write, Bash, etc.) is sent to the claude-mem worker as an observation.
“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Claude-Mem OpenClaw Plugin — Setup Guide
This guide walks through setting up the claude-mem plugin on an OpenClaw gateway. By the end, your agents will have persistent memory across sessions via system prompt context injection, and optionally a real-time observation feed streaming to a messaging channel.
Quick Install (Recommended)
Run this one-liner to install everything automatically:
curl -fsSL https://install.cmem.ai/openclaw.sh | bashThe installer handles dependency checks (Bun, uv), plugin installation, memory slot configuration, AI provider setup, worker startup, and optional observation feed configuration — all interactively.
Install with options
Pre-select your AI provider and API key to skip interactive prompts:
curl -fsSL https://install.cmem.ai/openclaw.sh | bash -s -- --provider=gemini --api-key=YOUR_KEYFor fully unattended installation (defaults to Claude Max Plan, skips observation feed):
curl -fsSL https://install.cmem.ai/openclaw.sh | bash -s -- --non-interactiveTo upgrade an existing installation (preserves settings, updates plugin):
curl -fsSL https://install.cmem.ai/openclaw.sh | bash -s -- --upgradeAfter installation, skip to Step 4: Restart the Gateway and Verify to confirm everything is working.
Manual Setup
The steps below are for manual installation if you prefer not to use the automated installer, or need to troubleshoot individual steps.
Step 1: Clone the Claude-Mem Repo
First, clone the claude-mem repository to a location accessible by your OpenClaw gateway. This gives you the worker service source and the plugin code.
cd /opt # or wherever you want to keep it
git clone https://github.com/thedotmack/claude-mem.git
cd claude-mem
npm install
npm run buildYou'll need bun installed for the worker service. If you don't have it:
curl -fsSL https://bun.sh/install | bashStep 2: Get the Worker Running
The claude-mem worker is an HTTP service on port 37777. It stores observations, generates summaries, and serves the context timeline. The plugin talks to it over HTTP — it doesn't matter where the worker is running, just that it's reachable on localhost:37777.
Check if it's already running
If this machine also runs Claude Code with claude-mem installed, the worker may already be running:
curl http://localhost:37777/api/healthGot {"status":"ok"}? The worker is already running. Skip to Step 3.
Got connection refused or no response? The worker isn't running. Continue below.
If Claude Code has claude-mem installed
If claude-mem is installed as a Claude Code plugin (at ~/.claude/plugins/marketplaces/thedotmack/), start the worker from that installation:
cd ~/.claude/plugins/marketplaces/thedotmack
npm run worker:restartVerify:
curl http://localhost:37777/api/healthGot {"status":"ok"}? You're set. Skip to Step 3.
Still not working? Check npm run worker:status for error details, or check that bun is installed and on your PATH.
If there's no Claude Code installation
Run the worker from the cloned repo:
cd /opt/claude-mem # wherever you cloned it
npm run worker:startVerify:
curl http://localhost:37777/api/healthGot {"status":"ok"}? You're set. Move to Step 3.
Still not working? Debug steps:
- Check that bun is installed:
bun --version - Check the worker status:
npm run worker:status - Check if something else is using port 37777:
lsof -i :37777 - Check logs:
npm run worker:logs(if available) - Try running it directly to see errors:
bun plugin/scripts/worker-service.cjs start
Step 3: Add the Plugin to Your Gateway
Add the claude-mem plugin to your OpenClaw gateway configuration:
{
"plugins": {
"claude-mem": {
"enabled": true,
"config": {
"project": "my-project",
"syncMemoryFile": true,
"workerPort": 37777
}
}
}
}Config fields explained
project(string, default:"openclaw") — The project name that scopes all observations in the memory database. Use a unique name per gateway/use-case so observations don't mix. For example, if this gateway runs a coding bot, use"coding-bot".syncMemoryFile(boolean, default:true) — When enabled, the plugin injects the observation timeline into each agent's system prompt via thebefore_prompt_buildhook. This gives agents cross-session context without writing to MEMORY.md. Set tofalseto disable context injection entirely (observations are still recorded).syncMemoryFileExclude(string[], default:[]) — Agent IDs excluded from automatic context injection. Useful for agents that curate their own memory. Observations are still recorded for excluded agents.workerPort(number, default:37777) — The port where the claude-mem worker service is listening. Only change this if you configured the worker to use a different port.
Step 4: Restart the Gateway and Verify
Restart your OpenClaw gateway so it picks up the new plugin configuration. After restart, check the gateway logs for:
[claude-mem] OpenClaw plugin loaded — v1.0.0 (worker: 127.0.0.1:37777)If you see this, the plugin is loaded. You can also verify by running /claude_mem_status in any OpenClaw chat:
Claude-Mem Worker Status
Status: ok
Port: 37777
Active sessions: 0
Observation feed: disconnectedThe observation feed shows disconnected because we haven't configured it yet. That's next.
Step 5: Verify Observations Are Being Recorded
Have an agent do some work. The plugin automatically records observations through these OpenClaw events:
before_agent_start— Initializes a claude-mem session when the agent startsbefore_prompt_build— Injects the observation timeline into the agent's system prompt (cached for 60s)tool_result_persist— Records each tool use (Read, Write, Bash, etc.) as an observationagent_end— Summarizes the session and marks it complete
All of this happens automatically. No additional configuration needed.
To verify it's working, check the worker's viewer UI at http://localhost:37777 to see observations appearing after the agent runs.
You can also check the worker's viewer UI at http://localhost:37777 to see observations appearing in real time.
Step 6: Set Up the Observation Feed (Streaming to a Channel)
The observation feed connects to the claude-mem worker's SSE (Server-Sent Events) stream and forwards every new observation to a messaging channel in real time. Your agents learn things, and you see them learning in your Telegram/Discord/Slack/etc.
What you'll see
Every time claude-mem creates a new observation from your agent's tool usage, a message like this appears in your channel:
🧠 Claude-Mem Observation
**Implemented retry logic for API client**
Added exponential backoff with configurable max retries to handle transient failuresPick your channel
You need two things:
- Channel type — Must match a channel plugin already running on your OpenClaw gateway
- Target ID — The chat/channel/user ID where messages go
Telegram
Channel type: telegram
To find your chat ID:
- Message @userinfobot on Telegram — https://t.me/userinfobot
- It replies with your numeric chat ID (e.g.,
123456789) - For group chats, the ID is negative (e.g.,
-1001234567890)
"observationFeed": {
"enabled": true,
"channel": "telegram",
"to": "123456789"
}Discord
Channel type: discord
To find your channel ID:
- Enable Developer Mode in Discord: Settings → Advanced → Developer Mode
- Right-click the target channel → Copy Channel ID
"observationFeed": {
"enabled": true,
"channel": "discord",
"to": "1234567890123456789"
}Slack
Channel type: slack
To find your channel ID (not the channel name):
- Open the channel in Slack
- Click the channel name at the top
- Scroll to the bottom of the channel details — the ID looks like
C01ABC2DEFG
"observationFeed": {
"enabled": true,
"channel": "slack",
"to": "C01ABC2DEFG"
}Signal
Channel type: signal
Use the phone number or group ID configured in your OpenClaw gateway's Signal plugin.
"observationFeed": {
"enabled": true,
"channel": "signal",
"to": "+1234567890"
}Channel type: whatsapp
Use the phone number or group JID configured in your OpenClaw gateway's WhatsApp plugin.
"observationFeed": {
"enabled": true,
"channel": "whatsapp",
"to": "+1234567890"
}LINE
Channel type: line
Use the user ID or group ID from the LINE Developer Console.
"observationFeed": {
"enabled": true,
"channel": "line",
"to": "U1234567890abcdef"
}Add it to your config
Your complete plugin config should now look like this (using Telegram as an example):
{
"plugins": {
"claude-mem": {
"enabled": true,
"config": {
"project": "my-project",
"syncMemoryFile": true,
"workerPort": 37777,
"observationFeed": {
"enabled": true,
"channel": "telegram",
"to": "123456789"
}
}
}
}
}Restart and verify
Restart the gateway. Check the logs for these three lines in order:
[claude-mem] Observation feed starting — channel: telegram, target: 123456789
[claude-mem] Connecting to SSE stream at http://localhost:37777/stream
[claude-mem] Connected to SSE streamThen run /claude_mem_feed in any OpenClaw chat:
Claude-Mem Observation Feed
Enabled: yes
Channel: telegram
Target: 123456789
Connection: connectedIf Connection shows connected, you're done. Have an agent do some work and watch observations stream to your channel.
Commands Reference
The plugin registers two commands:
/claude_mem_status
Reports worker health and current session state.
/claude_mem_statusOutput:
Claude-Mem Worker Status
Status: ok
Port: 37777
Active sessions: 2
Observation feed: connected/claude_mem_feed
Shows observation feed status. Accepts optional on/off argument.
/claude_mem_feed — show status
/claude_mem_feed on — request enable (update config to persist)
/claude_mem_feed off — request disable (update config to persist)How It All Works
OpenClaw Gateway
│
├── before_agent_start ───→ Init session
├── before_prompt_build ──→ Inject context into system prompt
├── tool_result_persist ──→ Record observation
├── agent_end ────────────→ Summarize + Complete session
└── gateway_start ────────→ Reset session tracking + context cache
│
▼
Claude-Mem Worker (localhost:37777)
├── POST /api/sessions/init
├── POST /api/sessions/observations
├── POST /api/sessions/summarize
├── POST /api/sessions/complete
├── GET /api/context/inject ──→ System prompt context
└── GET /stream ─────────────→ SSE → Messaging channelsSystem prompt context injection
The plugin injects the observation timeline into each agent's system prompt via the before_prompt_build hook. The content comes from the worker's GET /api/context/inject endpoint. Context is cached for 60 seconds per project to avoid re-fetching on every LLM turn. The cache is cleared on gateway restart.
This keeps MEMORY.md under the agent's control for curated long-term memory, while the observation timeline is delivered through the system prompt.
Observation recording
Every tool use (Read, Write, Bash, etc.) is sent to the claude-mem worker as an observation. The worker's AI agent processes it into a structured observation with title, subtitle, facts, concepts, and narrative. Tools prefixed with memory_ are skipped to avoid recursive recording.
Session lifecycle
before_agent_start— Creates a session in the worker.before_prompt_build— Fetches the observation timeline and returns it asappendSystemContext. Cached for 60s.tool_result_persist— Records observation (fire-and-forget). Tool responses are truncated to 1000 characters.agent_end— Sends the last assistant message for summarization, then completes the session. Both fire-and-forget.gateway_start— Clears all session tracking (session IDs, context cache) so agents start fresh.
Observation feed
A background service connects to the worker's SSE stream and forwards new_observation events to a configured messaging channel. The connection auto-reconnects with exponential backoff (1s → 30s max).
Troubleshooting
| Problem | What to check |
| Worker health check fails | Is bun installed? (bun --version). Is something else on port 37777? (lsof -i :37777). Try running directly: bun plugin/scripts/worker-service.cjs start |
| Worker started from Claude Code install but not responding | Check cd ~/.claude/plugins/marketplaces/thedotmack && npm run worker:status. May need npm run worker:restart. |
| Worker started from cloned repo but not responding | Check cd /path/to/claude-mem && npm run worker:status. Make sure you ran npm install && npm run build first. |
| No context in agent system prompt | Check that syncMemoryFile is not set to false. Check that the agent's ID is not in syncMemoryFileExclude. Verify the worker is running and has observations. |
| Observations not being recorded | Check gateway logs for [claude-mem] messages. The worker must be running and reachable on localhost:37777. |
Feed shows disconnected | Worker's /stream endpoint not reachable. Check workerPort matches the actual worker port. |
Feed shows reconnecting | Connection dropped. The plugin auto-reconnects — wait up to 30 seconds. |
Unknown channel type in logs | The channel plugin (e.g., telegram) isn't loaded on your gateway. Make sure the channel is configured and running. |
Observation feed disabled in logs | Set observationFeed.enabled to true in your config. |
Observation feed misconfigured in logs | Both observationFeed.channel and observationFeed.to are required. |
No messages in channel despite connected | The feed only sends processed observations, not raw tool usage. There's a 1-2 second delay. Make sure the worker is actually processing observations (check http://localhost:37777). |
Full Config Reference
{
"plugins": {
"claude-mem": {
"enabled": true,
"config": {
"project": "openclaw",
"syncMemoryFile": true,
"workerPort": 37777,
"observationFeed": {
"enabled": false,
"channel": "telegram",
"to": "123456789"
}
}
}
}
}| Field | Type | Default | Description |
project | string | "openclaw" | Project name scoping observations in the database |
syncMemoryFile | boolean | true | Inject observation context into agent system prompt |
syncMemoryFileExclude | string[] | [] | Agent IDs excluded from context injection |
workerPort | number | 37777 | Claude-mem worker service port |
observationFeed.enabled | boolean | false | Stream observations to a messaging channel |
observationFeed.channel | string | — | Channel type: telegram, discord, slack, signal, whatsapp, line |
observationFeed.to | string | — | Target chat/channel/user ID |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

