# Set Up claude-mem

Configures claude-mem Cowork plugin credentials from cmem.ai connect values.

- Repository: https://github.com/thedotmack/claude-mem (109099 stars)
- Category: AI and agents
- License: Apache-2.0
- Last updated: 2026-11-01
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add thedotmack/claude-mem --skill mem-setup -g -a claude-code -y`
Codex: `npx skills add thedotmack/claude-mem --skill mem-setup -g -a codex -y`
Cursor: `npx skills add thedotmack/claude-mem --skill mem-setup -g -a cursor -y`
Gemini CLI: `npx skills add thedotmack/claude-mem --skill mem-setup -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add thedotmack/claude-mem`

## Description

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 provides cmem.ai Connect values (sync token, user id, SyncHub URL) for this plugin. Configures the claude-mem-cowork plugin credentials.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Claude-Mem Setup (Cowork 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:

1. **sync token** (starts with `cm_`), used as the bearer API key
2. **user id** (UUID)
3. **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

The rest: https://github.com/thedotmack/claude-mem/blob/HEAD/cowork/skills/mem-setup/SKILL.md
