Claude-Mem, now presented as Grok Mem, records an agent's work, compresses it with AI, and brings relevant notes into later sessions so the agent can remember decisions and next steps. It is intended for persistent context across agent conversations and supports multiple coding-agent environments. The catalogue add-ons provide the workflows and integrations used to operate this memory system.
Getting it into your agent
This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.
/plugin marketplace add thedotmack/claude-mem/plugin install cmem-proWrote 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.
[](https://agentmods.dev/skills/thedotmack/claude-mem/mem-setup)<a href="https://agentmods.dev/skills/thedotmack/claude-mem/mem-setup"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/mem-setup/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.
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/mem-setup"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/mem-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- Socket pass
- Snyk pass
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00087 | $0.00784 |
| Opus 5.5 | $0.00035 | $0.00314 |
| Sonnet 5.5 | $0.00017 | $0.00157 |
| Haiku 4.5 | $0.00009 | $0.00078 |
Grade A, and why
mem-setup 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 22d 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.
How it starts
The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Claude-Mem Setup (Claude app pairing)
Configure this plugin with the user's own cmem.ai credentials so hooks can capture and inject memory. Anyone can pair — credentials are per-user configuration, never hardcoded in plugin logic.
What to collect
From cmem.ai → Connect, the user has three values:
- sync token (starts with
cm_) — used as the bearer API key - user id (UUID)
- SyncHub URL (
https://sync.cmem.ai)
If the user pastes the whole Connect blurb, extract the three values from it. If any are missing, ask for the sync token at minimum — the other two are optional.
Secret handling — non-negotiable
- Never echo the token back in conversation, put it in a shell argv, or log it.
- Move it only via file writes (Write/Edit tool) and file reads.
Steps
- Locate the installed plugin root (this skill's own plugin). Update its
config.json: setapiKeyto the sync token,userId, andsyncHubUrl. Leave other settings unless the user asks (injecttoggles). Project naming is automatic (cmem_work_*) and is not configurable. - Claude app containers are ephemeral: edits to the installed copy last only for
this session. To make pairing permanent, repackage — zip the plugin
directory as
<plugin-name>.pluginand send it to the user to re-install (the cowork-plugin skill's packaging flow). Tell the user this is why. - If this machine also has a local claude-mem install (a
~/.claude-mem/directory exists), write the same values to~/.claude-mem/settings.jsonwith mode 0600 (CLAUDE_MEM_CLOUD_SYNC_TOKEN,CLAUDE_MEM_CLOUD_SYNC_USER_ID,CLAUDE_MEM_CLOUD_SYNC_HUB_URLkeys — the same keys the local claude-mem cloud-sync pairing writes). This plugin's hooks stay off wherever claude-mem is installed locally, so that pairing is what carries this machine's work to cmem.ai. The worker reads those keys only at startup: restart it and run the claude-mem cloud-sync skill's Verify step, which must reportconfigured: trueandhub.reachable: true. Don't report success before it does; if it never does, pair through that skill's installer flow instead. - Verify without exposing the secret:
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.
- 22d ago Changed · +1 lines · +2 tokens per session 9ccb9e4a7119
- 1mo ago Changed · +5 lines 7dc3d10da211
- 3mo ago First seen · 65 lines · 85 tokens per session scan A 48fcdb2dd3f3
mem-setup is a skill published in the GitHub repository thedotmack/claude-mem (120,667 stars, last pushed today), licensed Apache-2.0. It adds 87 tokens to every session and 784 once invoked, about $0.0003 per session on Opus 5.5. 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-08-30.
mem-setup compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| mem-setupthedotmack/claude-mem | Skill | 121k | today | Apache-2.0 | A | 87 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemind-memoryactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 33 | Claude Code |
| hivemindactiveloopai/hivemind | Skill | 1.7k | 19d ago | Apache-2.0 | A | 32 | Claude Code |
| dejavucmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 51 | Claude Code |
| dejavu-rulescmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 56 | Claude Code |
| dejavu-reportcmg8431/claude-dejavu | Skill | 2 | 6mo ago | MIT | A | 37 | Claude Code |