Skip to content

Guide · Agent skill

How to use the Cloud Sync for claude-mem agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The cloud-sync skill is an agent skill for Claude that checks whether your claude-mem memory database is connected to the paid cmem.ai Pro cloud sync service, reports its status, and walks you through connecting it. It is written for people who already run claude-mem and have a cmem.ai Pro account. After this guide you will know how to install the skill, ask for a status check in plain language, and complete the connection safely.

Cloud Sync for claude-memthedotmack/claude-mem · Apache-2.0

Quick start

  1. 1Install claude-mem and its worker. Make sure claude-mem is installed and its worker is running locally before using this skill.
  2. 2Unzip the skill. Unzip the cloud-sync skill into ~/.claude/skills/ for personal use, or into a project's .claude/skills/ folder.
  3. 3Ask for a status check. Say something like "What is my sync status?" so the agent checks whether sync is configured and reachable.
  4. 4Run the installer yourself. When asked, run npx claude-mem install in your own terminal and choose CMEM Pro.
  5. 5Approve sign-in in the browser. Approve the device code shown in the browser so the installer can save your connection settings.
  6. 6Verify the result. Ask the agent to check status again and confirm the connection is reachable with no last error.

What the cloud-sync skill does

Agent skills are folders of instructions that Claude loads when a request matches them. This one covers claude-mem cloud sync with cmem.ai Pro. When triggered, the agent checks whether your memory database is configured for sync and reports the result, including pending items, the last upload, and any errors.

The agent does not handle your secret token. It asks you to run the official installer in your own terminal. The installer signs you in through the browser and saves the connection settings locally. Once connected, your memories are uploaded to your cmem.ai account.

  • Checks sync status: whether it is configured and whether the SyncHub connection is reachable
  • Reports device ID, pending counts, last successful flush, and any errors
  • Walks you through connecting through the installer

Install the cloud-sync skill

Download the cloud-sync ZIP from this page. Unzip it into one of two locations, depending on how you want to use it: your personal skills folder, or a single project's skills folder.

You can also upload the skill in the Claude apps under Settings → Capabilities → Skills.

  • Personal (all projects): unzip into ~/.claude/skills/
  • Single project: unzip into the project's .claude/skills/ folder
  • Claude apps: Settings → Capabilities → Skills, then upload the skill

Check what you need before you start

The skill assumes several things are already in place. It does not install claude-mem or create your cmem.ai account for you.

  • claude-mem installed, with its worker running locally
  • Node.js and npx, used to run the claude-mem installer
  • A cmem.ai Pro account, and a browser to approve the device sign-in
  • curl available in your shell

Trigger the skill with natural requests

You do not need a special command. Describe what you want in ordinary language. The skill is designed to respond to phrases such as the ones below.

  • "Set up cloud sync"
  • "Sync my memories"
  • "What is my sync status?"
  • "Back up my memory database to cmem.ai"
  • "Why does cloud sync show pending items?"

Connect sync through the installer

If sync is not configured, the agent will ask you to run the installer yourself in your own terminal. Run the command below and choose CMEM Pro when prompted. The installer opens a browser sign-in where you approve a device code. It then writes the connection settings to ~/.claude-mem/settings.json and restarts the worker.

Do not paste your sync token into the chat. The skill is built to never ask for it. If you cannot run the installer interactively, for example on a remote server or in CI, the skill points you to the headless setup guide at https://docs.claude-mem.ai/cmem-pro-headless and you apply its steps yourself.

  • Choose CMEM Pro when the installer asks
  • Approve the device code in your browser
  • The settings file is written with restricted permissions (mode 0600)
npx claude-mem install

Verify the connection and read the status

After the installer finishes, the agent polls the status route for up to 30 seconds. If the worker was not restarted, it restarts it first. A successful setup shows configured as true, the SyncHub connection as reachable, and no last error.

A zero pending count alone is not proof of success, because an empty queue performs no upload. Look for the reachable connection. If the connection is not reachable, the agent reports the error message and suggests running the installer again to refresh the connection.

  • Success: configured true, hub reachable true, lastError empty
  • Not verified: hub reachable false, even with zero pending items
  • Pending counts only include writes made after the SyncHub launch baseline; setup does not migrate older local data

Safety notes: scripts, network and secrets

This skill runs shell scripts and uses the network. It reads the worker port from your local settings, queries the local worker status route, and can send a restart request to the local worker. The agent is instructed never to print, log, or pass the sync token on the command line.

Before you use it, understand what leaves your machine. Cloud sync uploads your observation narratives and full prompt text to your cmem.ai account. If you do not want that content stored with a third-party service, do not connect sync.

  • Runs scripts: yes, shell commands in your terminal
  • Uses network: yes, to the local worker and to SyncHub through the worker
  • Secrets stay out of chat: the installer writes the token directly to your settings file

What people use it for

  • Checking why cloud sync shows errors or pending items
  • Setting up cmem.ai Pro sync on a machine where you already use claude-mem
  • Getting guided help with a headless server setup without pasting secrets into chat
  • Getting a plain-language report of device ID, last upload time and connection state

Frequently asked questions

Is the cloud-sync skill free?

The source does not state a price or licence terms for cmem.ai Pro. The skill itself is published under the Apache-2.0 licence. You need a cmem.ai Pro account for the setup flow to work.

What do I need to install the cloud-sync skill?

You need claude-mem installed with its worker running locally, Node.js and npx, a cmem.ai Pro account with browser access, and curl in your shell. The skill is then unzipped into ~/.claude/skills/ or a project's .claude/skills/ folder.

Does the agent set up cloud sync by itself?

No. The agent checks status and guides you, but you must run npx claude-mem install in your own terminal and approve the sign-in in your browser.

Will my memories be uploaded to the cloud?

Once sync is connected, yes. The source states that observation narratives and full prompt text are uploaded to your cmem.ai account. If you do not want that, do not connect sync.

Why does my sync show pending items or errors?

Ask the agent to check your sync status. It reports pending counts, the last successful flush, and any Hub or flush error. If the connection is unreachable, rerunning npx claude-mem install is the suggested fix.

Can I use cloud sync on a headless server?

Yes, with guidance. The skill points to the headless setup guide at docs.claude-mem.ai/cmem-pro-headless, and you apply its manual steps yourself rather than sharing secrets with the agent.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

Use this skill if you already run claude-mem, have a cmem.ai Pro account, and want your memories backed up and your sync problems diagnosed in plain language. Skip it if you do not want your prompt text and observation narratives uploaded to a third-party service, or if you have no cmem.ai Pro account, since the setup depends on it.

Download the skill