Claude-mem Cloud Sync Setup and Status

VerifiedCaution

Set up or check cloud sync for claude-mem with cmem.ai Pro. Handles connection values, verifies status, and follows security rules.

Sby Skills Guide Bot
ProductivityIntermediate
8/29/2026
Claude Code
#cloud-sync#claude-mem#memory-backup#configuration

Recommended for

Automated summary

Configures or checks claude-mem cloud sync against a cmem.ai Pro account by writing three connection values into ~/.claude-mem/settings.json and verifying status through the local worker.

Strengths

  • Writes only the three required connection keys, preserves unrelated settings and enforces 0600 permissions on the file.
  • Keeps the sync token out of logs and argv, confirming only its length.
  • Clearly separates "configured but hub unreachable" from real success, and warns that a zero pending count proves nothing.
  • Retries the status route for roughly 30 seconds while the worker restarts after a settings change.

Limitations

  • Assumes an existing cmem.ai Pro account and an already-issued SyncHub URL; it cannot provision either.
  • Depends on the locally installed claude-mem worker exposing its status and admin routes.
  • Values are pasted in plain text into the stdin script, and the Hub URL is validated only by its https:// prefix.
When to use it

Use it when you want to back up or sync your claude-mem memory database to cmem.ai, or to confirm that an existing sync connection is healthy.

When not to use it

Avoid it when you have no cmem.ai Pro account or no claude-mem worker installed, since the skill only configures and verifies an existing setup.

Security analysis

Caution
Quality score82/100

No obfuscation, no curl|sh, no hardcoded exfiltration; commands are transparent, local-only for status/restart, and the settings write is 0600 with unrelated settings preserved and the token never echoed. Risk is moderate because it deliberately stores a credential and uploads private memory data to a user-specified remote endpoint, so 'caution' rather than 'safe'.

Findings
  • •Handles a secret sync token: step 3 instructs substituting the token into a heredoc script, which can persist the token in the agent's transcript/command history despite the stated 'never print the token' rule.
  • •Sends private memory content (observation narratives and full prompt text) to a third-party service, cmem.ai/SyncHub — legitimate and disclosed, but a real data-egress path.
  • •Accepts an arbitrary user-supplied https Hub URL; validation only checks the https scheme, so data goes wherever the user directs.
  • •Uses Bash/curl against local worker admin routes, including a POST restart endpoint that restarts the process.
How this analysis is made

Examples

Initial setup
Set up cloud sync for my claude-mem memories — here are my sync token, user id and SyncHub URL from cmem.ai.
Health check
Check my cmem sync status and tell me whether the SyncHub connection is actually verified.
Troubleshooting
My memories stopped syncing after a restart. Diagnose the cloud backup connection and tell me what lastError says.

name: cloud-sync description: Set up or check claude-mem cloud sync with cmem.ai Pro. Use when the user says "set up cloud sync", "sync my memories", "cmem pro", "cloud backup", "sync status", or wants their memory database backed up or synced to their cmem.ai account. allowed-tools:

  • Bash
  • Read
  • AskUserQuestion

Cloud Sync (cmem.ai Pro)

The installed worker syncs through SyncHub. There is one client, one durable operation log, and no separate sync daemon. This skill checks status or writes the three connection values issued by cmem.ai → Connect.

Security rule: never print the sync token, put it in argv, or log it. Confirm only its length. Preserve every unrelated setting and keep ~/.claude-mem/settings.json mode 0600.

1. Check status

Resolve the worker port and query the always-registered status route:

PORT="${CLAUDE_MEM_WORKER_PORT:-$(node -e "const fs=require('fs'),p=require('path'),os=require('os');const uid=(typeof process.getuid==='function'?process.getuid():77);const fallback=String(37700+(uid%100));try{const s=JSON.parse(fs.readFileSync(p.join(os.homedir(),'.claude-mem','settings.json'),'utf-8'));process.stdout.write(String(s.CLAUDE_MEM_WORKER_PORT||fallback));}catch{process.stdout.write(fallback);}" 2>/dev/null)}"
curl -s "http://127.0.0.1:${PORT}/api/sync/status"
  • configured: true and hub.reachable: true → the worker completed an authenticated GET /v1/sync/status against SyncHub. Report deviceId, pending counts, lastFlushAt, lastError, and the Hub head/checkpoint; stop unless the user asked to replace the connection.
  • configured: true and hub.reachable: false → report hub.error and say the SyncHub connection is not verified. A zero pending count or lastError: null is not success because an empty queue performs no push.
  • configured: false → continue.
  • Connection refused, 404, or 503 immediately after restart → retry every three seconds for about 30 seconds before diagnosing the worker.

2. Obtain the connection

Ask for all three values shown by cmem.ai → Connect:

  1. sync token;
  2. user id;
  3. SyncHub URL.

The Hub URL must be an absolute https:// URL. Do not substitute the cmem.ai application API URL; the installed client talks only to SyncHub.

3. Write installed-client settings

Substitute the collected values inside this quoted stdin script. Do not echo them before or after running it:

node - <<'EOF'
const fs = require('fs'), os = require('os'), path = require('path');
const token = 'PASTE_TOKEN_HERE';
const userId = 'PASTE_USER_ID_HERE';
const hubUrl = 'PASTE_HUB_URL_HERE';
if (!token || !userId || !/^https:\/\/[^\s]+$/.test(hubUrl)) {
  console.error('token, user id, and an https SyncHub URL are required');
  process.exit(1);
}
const dir = path.join(os.homedir(), '.claude-mem');
const file = path.join(dir, 'settings.json');
fs.mkdirSync(dir, { recursive: true });
const settings = fs.existsSync(file) ? JSON.parse(fs.readFileSync(file, 'utf8')) : {};
const target = settings.env && typeof settings.env === 'object' ? settings.env : settings;
target.CLAUDE_MEM_CLOUD_SYNC_TOKEN = token;
target.CLAUDE_MEM_CLOUD_SYNC_USER_ID = userId;
target.CLAUDE_MEM_CLOUD_SYNC_HUB_URL = hubUrl.replace(/\/+$/, '');
fs.writeFileSync(file, JSON.stringify(settings, null, 2) + '\n', { mode: 0o600 });
fs.chmodSync(file, 0o600);
console.log(`saved cloud connection: token length ${token.length}, user id length ${userId.length}`);
EOF

These are the only required connection keys. The worker mints and persists a device id on first start and defaults the device name to the hostname.

4. Restart and verify

curl -s -X POST "http://127.0.0.1:${PORT}/api/admin/restart"

Poll the status route every five seconds for up to 30 seconds while the successor starts. Success means configured: true, hub.reachable: true, and lastError: null. The local route always makes an authenticated, read-only SyncHub status probe, even when every pending count is zero; it never uses a legacy cmem.ai Pro status route and never appends or advances sync state. Pending counts describe only writes made after the SyncHub launch baseline; setup does not migrate a pre-launch local corpus.

If hub.reachable is false, report hub.error. If lastError is non-null, report it too. Ask the user to verify the three values in cmem.ai → Connect. Never include the token.

5. Report

Report device id, pending counts, last successful flush, Hub reachability and checkpoint, and any Hub/flush error. End with this privacy note:

Cloud sync uploads your observation narratives and full prompt text to your cmem.ai account.

From the file to a first result

The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.

View the source and supporting files

This download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.

1. Download the file

Download SKILL.md

From the root of a test project, save the file as .skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.

Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.

mkdir -p '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/claude-mem-cloud-sync-setup-and-status-mte1li64/download' --output '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md.part' && mv '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md.part' '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md'

2. Check prerequisites

Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.

No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.

The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.

3. Load the skill

After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.

Claude Code
test -f '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md' && test -s '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/cloud-sync' && cp -R '.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64' '.claude/skills/cloud-sync'

OpenSkills

OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.

Official OpenSkills installation
openskills install './.skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64'

openskills read 'claude-mem-cloud-sync-setup-and-status-mte1li64'

Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.

For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.

openskills sync

Manual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.

4. Try a first task

Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:

Read .skill-downloads/claude-mem-cloud-sync-setup-and-status-mte1li64/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.

Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.

Related skills