mem-setup
Agent skill fromthedotmack/claude-mem
This skill should be used when the user asks to "set up claude-mem", "pair claude-mem", "connect cmem", "add my cmem key", "set up cloud sync in Cowork" or in the Claude app, or provides cmem.ai Connect values (sync token, user id, SyncHub URL) for this plugin. Configures the CMEM Pro plugin credentials.
How to install mem-setup
install mem-setup
# install the claude-mem pack with the skills CLI
npx skills add thedotmack/claude-mem# or add only this skill to Claude Code: copy the folder
cowork/skills/mem-setup/
# into
~/.claude/skills/mem-setup/ (all projects)
.claude/skills/mem-setup/ (one project)
1# Claude-Mem Setup (Claude app pairing)23Configure this plugin with the user's own cmem.ai credentials so hooks can4capture and inject memory. Anyone can pair — credentials are per-user5configuration, never hardcoded in plugin logic.67## What to collect89From **cmem.ai → Connect**, the user has three values:10111. **sync token** (starts with `cm_`) — used as the bearer API key122. **user id** (UUID)133. **SyncHub URL** (`https://sync.cmem.ai`)1415If the user pastes the whole Connect blurb, extract the three values from it.16If any are missing, ask for the sync token at minimum — the other two are17optional.1819## Secret handling — non-negotiable2021- Never echo the token back in conversation, put it in a shell argv, or log it.22- Move it only via file writes (Write/Edit tool) and file reads.2324## Steps25261. Locate the installed plugin root (this skill's own plugin). Update its27 `config.json`: set `apiKey` to the sync token, `userId`, and `syncHubUrl`.28 Leave other settings unless the user asks (`inject` toggles). Project naming29 is automatic (`cmem_work_*`) and is not configurable.302. Claude app containers are ephemeral: edits to the installed copy last only for31 this session. To make pairing permanent, repackage — zip the plugin32 directory as `<plugin-name>.plugin` and send it to the user to re-install33 (the cowork-plugin skill's packaging flow). Tell the user this is why.343. If this machine also has a local claude-mem install (a `~/.claude-mem/`35…
Excerpt shown under the repository's Apache-2.0 license.
