mem-setup

GitHub

配置 claude-mem-cowork 插件凭据,支持从 cmem.ai Connect 提取 sync token、user id 和 SyncHub URL。通过写入 config.json 或本地 settings.json 完成设置,确保密钥安全处理并验证连接状态。

cowork/skills/mem-setup/SKILL.md thedotmack/claude-mem

Trigger Scenarios

set up claude-mem pair claude-mem connect cmem add my cmem key set up cloud sync in Cowork 提供 cmem.ai Connect values

Install

npx skills add thedotmack/claude-mem --skill mem-setup -g -y
More Options

Non-standard path

npx skills add https://github.com/thedotmack/claude-mem/tree/main/cowork/skills/mem-setup -g -y

Use without installing

npx skills use thedotmack/claude-mem@mem-setup

指定 Agent (Claude Code)

npx skills add thedotmack/claude-mem --skill mem-setup -a claude-code -g -y

安装 repo 全部 skill

npx skills add thedotmack/claude-mem --all -g -y

预览 repo 内 skill

npx skills add thedotmack/claude-mem --list

SKILL.md

Frontmatter
{
    "name": "mem-setup",
    "metadata": {
        "version": "0.1.0"
    },
    "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.\n"
}

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 (a workers.dev or cmem.ai URL)

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

  1. Locate the installed plugin root (this skill's own plugin). Update its config.json: set apiKey to the sync token, userId, and syncHubUrl. Leave other settings unless the user asks (inject toggles). Project naming is automatic (cmem_work_*) and is not configurable.

  2. Cowork 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>.plugin and send it to the user to re-install (the cowork-plugin skill's packaging flow). Tell the user this is why.

  3. If this machine also has a local claude-mem install (a ~/.claude-mem/ directory exists), optionally write the same values to ~/.claude-mem/settings.json with mode 0600 (CLAUDE_MEM_CLOUD_SYNC_TOKEN, CLAUDE_MEM_CLOUD_SYNC_USER_ID, CLAUDE_MEM_CLOUD_SYNC_HUB_URL keys — the same keys the local claude-mem cloud-sync pairing writes) — the hook script and the local worker both read it.

  4. Verify without exposing the secret:

    node "${CLAUDE_PLUGIN_ROOT}/scripts/cmem-hook.mjs" status
    

    Report the masked output. A MISSING key means the write didn't land; a 404 on /api/hooks/context is expected until the Pro endpoints deploy (search/injection still work via /api/mcp).

Alternate source

Env vars override everything and need no file edits: CMEM_API_KEY, CMEM_USER_ID, CMEM_SYNC_HUB_URL, CMEM_API_BASE.

Version History

  • 866a0ca Current 2026-08-29 01:56

Same Skill Collection

cowork/skills/mem-search/SKILL.md
openclaw/skills/do/SKILL.md
openclaw/skills/make-plan/SKILL.md
plugin/skills/babysit/SKILL.md
plugin/skills/cloud-sync/SKILL.md
plugin/skills/design-is/SKILL.md
plugin/skills/do/SKILL.md
plugin/skills/how-it-works/SKILL.md
plugin/skills/knowledge-agent/SKILL.md
plugin/skills/learn-codebase/SKILL.md
plugin/skills/make-plan/SKILL.md
plugin/skills/mem-search/SKILL.md
plugin/skills/mode-creator/SKILL.md
plugin/skills/oh-my-issues/SKILL.md
plugin/skills/pathfinder/SKILL.md
plugin/skills/smart-explore/SKILL.md
plugin/skills/standup/SKILL.md
plugin/skills/timeline-report/SKILL.md
plugin/skills/version-bump/SKILL.md
plugin/skills/weekly-digests/SKILL.md
plugin/skills/wowerpoint/SKILL.md
plugin/skills/what-the/SKILL.md

Metadata

Files
0
Version
866a0ca
Hash
48fcdb2d
Indexed
2026-08-29 01:56

Accueil - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-29 04:07
浙ICP备14020137号-1 $Carte des visiteurs$