cloud-sync

cloud-sync is a skill for Claude Code from thedotmack/claude-mem. It costs 64 tokens per session (1,482 once invoked), scanned A, original, Apache-2.0.

A guide for checking or configuring claude-mem cloud sync through cmem.ai Pro. Cloud sync backs up or synchronizes the local memory database using the service's SyncHub connection.

In plain words
What is it for?
Use it to check sync status, connection reachability, pending operations, recent sync time, and errors. It can also write the connection values issued by cmem.ai into the local settings file.
Why use it?
It helps verify whether the worker can reach the sync service and whether memory operations are waiting to be uploaded. It also keeps the sync token private and preserves unrelated settings.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: reads .claude/ paths; names the AskUserQuestion tool.

Part of the claude-mem plugin — 25 skills shipped together

Good fit Use it to check sync status, connection reachability, pending operations, recent sync time, and errors. It can also write the connection values issued by cmem.ai into the local settings file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/thedotmack/claude-mem/cloud-sync
About the project

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.

thedotmack/claude-mem · 121,614 stars · on GitHub · claude-mem.ai

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add thedotmack/claude-mem --skill cloud-sync
Clone the repo
git clone --depth 1 https://github.com/thedotmack/claude-mem

Made for: Claude Code.

Or install claude-mem, the plugin that ships this one along with the rest of its 25 skills.

Wrote 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.

agentmods badge for cloud-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/thedotmack/claude-mem/cloud-sync/github.svg)](https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync)
Your own site
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/cloud-sync/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.

agentmods 80×15 button for cloud-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/thedotmack/claude-mem/cloud-sync"><img src="https://agentmods.dev/badge/skills/thedotmack/claude-mem/cloud-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 64 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,482 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Socket pass 12 Nov 2026
  • Snyk pass 12 Nov 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00064 $0.01482
Opus 5.5 $0.00026 $0.00593
Sonnet 5.5 $0.00013 $0.00296
Haiku 4.5 $0.00006 $0.00148

Measured today against content hash 3995095e1dc9, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

cloud-sync scanned grade A with 1 finding 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 today.

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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

# settings.json (nothing when unset) and curl reads it from stdin, so it stays out of argv and chat.
plugin/skills/cloud-sync/SKILL.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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 and points the user to the installer's cmem.ai sign-in, which writes the connection.

Security rule: never ask the user to paste the sync token into this chat, and never put it in a command you write, print it, put it in argv, or log it. A secret pasted into a chat lands in the transcript, which claude-mem itself can capture and sync. The installer writes the token to ~/.claude-mem/settings.json (mode 0600) without it ever passing through this conversation.

1. Check status

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

PORT="${CLAUDE_MEM_WORKER_PORT:-$(node -e '
  const fs = require("node:fs"), path = require("node:path");
  const home = require("node:os").homedir();
  const windows = process.platform === "win32";
  let dir = process.env.CLAUDE_MEM_DATA_DIR || path.join(home, ".claude-mem");
  if (dir === "~") dir = home;
  else if (dir.startsWith("~/") || (windows && dir.startsWith("~\\"))) {
    dir = path.join(home, dir.slice(2));
  }
  let port;
  try {
    const doc = JSON.parse(fs.readFileSync(path.join(dir, "settings.json"), "utf8").replace(/^\uFEFF/, ""));
    const env = doc?.env;
    const settings = env && typeof env === "object" && !Array.isArray(env)
      && Object.keys(env).some(key => key.startsWith("CLAUDE_MEM_")) ? env : doc;
    port = settings?.CLAUDE_MEM_WORKER_PORT;
  } catch {}
  // Keep the default in step with src/shared/install-port.ts.
  if (!port) {
    const uid = process.getuid?.();
    const folder = windows ? path.win32.resolve(dir).toLowerCase() : path.resolve(dir);
    const offset = uid === undefined
      ? require("node:crypto").createHash("sha256").update(folder, "utf8").digest().readUInt32BE(0) % 100
      : ((uid % 100) + 100) % 100;
    port = 37700 + offset;
  }
  process.stdout.write(String(port));
' 2>/dev/null)}"
# With CLAUDE_MEM_LOCAL_API_TOKEN set, the worker wants the token: node prints the header from
# settings.json (nothing when unset) and curl reads it from stdin, so it stays out of argv and chat.
node -e "try{const t=String(JSON.parse(require('fs').readFileSync(require('path').join(require('os').homedir(),'.claude-mem','settings.json'),'utf-8')).CLAUDE_MEM_LOCAL_API_TOKEN||'').trim();if(t)process.stdout.write('X-Claude-Mem-Token: '+t+'\\n')}catch{}" | curl -s -H @- "http://127.0.0.1:${PORT}/api/sync/status"

Read the full file on GitHub · 120 lines

Changes

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.

  1. today Changed · +27 lines 3995095e1dc9
  2. 21d ago Changed · +2 lines c4e21bd50b1c
  3. 2mo ago Changed · -17 lines a8941dcafd0c
  4. 3mo ago First seen · 108 lines · 64 tokens per session scan A 671a0723613c

Subscribe to this mod's changes

cloud-sync is a skill published in the GitHub repository thedotmack/claude-mem (121,614 stars, last pushed today), licensed Apache-2.0. It adds 64 tokens to every session and 1,482 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

cloud-sync compared with skills from other repositories

cloud-sync next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
cloud-syncthedotmack/claude-memSkill122ktodayApache-2.0A64Claude Code
hivemind-memoryactiveloopai/hivemindSkill1.7k22d agoApache-2.0A33Claude Code
hivemind-memoryactiveloopai/hivemindSkill1.7k22d agoApache-2.0A33Claude Code
hivemindactiveloopai/hivemindSkill1.7k22d agoApache-2.0A32Claude Code
dejavu-rulescmg8431/claude-dejavuSkill26mo agoMITA56Claude Code
dejavucmg8431/claude-dejavuSkill26mo agoMITA51Claude Code
dejavu-reportcmg8431/claude-dejavuSkill26mo agoMITA37Claude Code