Claw Sync

Secure sync for OpenClaw memory and workspace. Use /sync to push, /restore to pull, /sync-status to check. Supports versioned backups and disaster recovery.

arakichanxd

@arakichanxd

What This Skill Does

Versioned backup and restore tool for OpenClaw agent memory and workspace files. Pushes local memory, user profile, agent persona, skills, and daily logs to a remote Git repository via /sync, and pulls them back with /restore, supporting specific version selection and dry-run previews.

Replaces manual file copying and unversioned backups by providing automated, versioned sync with disaster recovery and local backup before each restore.

When to Use It

  • Back up your OpenClaw agent's memory and skills before making major changes
  • Restore a previous version of your agent's memory after accidental data loss
  • Preview what files would be synced without actually pushing changes
  • List all available backup versions to find a specific restore point
  • Migrate your agent's workspace to a new machine or environment
  • Create a disaster recovery snapshot of your agent's identity and tools

Install

$ openclaw skills install @arakichanxd/claw-sync

Claw Sync

Secure, versioned sync for OpenClaw memory and workspace.

Commands

/sync

Push your memory and skills to the remote repository.

/sync              → Push and create versioned backup
/sync --dry-run    → Preview what would be synced

/restore

Restore memory and skills from the remote repository.

/restore                        → Restore latest version
/restore latest                 → Same as above
/restore backup-20260202-1430   → Restore specific version
/restore latest --force         → Skip confirmation

/sync-status

Show sync configuration and local backup info.

/sync-status

/sync-list

List all available backup versions.

/sync-list

What Gets Synced

FileDescription
MEMORY.mdLong-term memory
USER.mdUser profile
SOUL.mdAgent persona
IDENTITY.mdAgent identity
TOOLS.mdTool configs
AGENTS.mdWorkspace rules
memory/*.mdDaily logs
skills/*Custom skills

NOT Synced (security)

  • openclaw.json - Contains API keys
  • .env - Contains secrets

Setup Required

Create ~/.openclaw/.backup.env:

BACKUP_REPO=https://github.com/username/your-repo
BACKUP_TOKEN=ghp_your_token

Features

  • 🏷️ Versioned - Each sync creates a restorable version
  • 💾 Disaster Recovery - Local backup before every restore
  • 🔒 Secure - No config files synced, token sanitization
  • 🖥️ Cross-platform - Windows, Mac, Linux

Top skills in this category