skills$openclaw/claw-sync
arakichanxd4.4k

by arakichanxd

claw-sync – OpenClaw Skill

claw-sync is an OpenClaw Skills integration for coding workflows. Secure sync for OpenClaw memory and workspace. Use /sync to push, /restore to pull, /sync-status to check. Supports versioned snapshots and disaster recovery.

4.4k stars8.0k forksSecurity L1
Updated Feb 7, 2026Created Feb 7, 2026coding

Skill Snapshot

nameclaw-sync
descriptionSecure sync for OpenClaw memory and workspace. Use /sync to push, /restore to pull, /sync-status to check. Supports versioned snapshots and disaster recovery. OpenClaw Skills integration.
ownerarakichanxd
repositoryarakichanxd/claw-syncpath: claw-sync
languageMarkdown
licenseMIT
topics
securityL1
installopenclaw add @arakichanxd/claw-sync:claw-sync
last updatedFeb 7, 2026

Maintainer

arakichanxd

arakichanxd

Maintains claw-sync in the OpenClaw Skills directory.

View GitHub profile
File Explorer
11 files
claw-sync
scripts
pull.js
11.2 KB
push.js
8.0 KB
setup-cron.js
1.9 KB
status.js
3.8 KB
.gitignore
158 B
config.example.env
387 B
index.js
3.4 KB
package.json
679 B
README.md
3.9 KB
SKILL.md
5.8 KB
SKILL.md

name: claw-sync description: Secure sync for OpenClaw memory and workspace. Use /sync to push, /restore to pull, /sync-status to check. Supports versioned snapshots and disaster recovery. version: 2.0.2 author: arakichanxd repository: https://github.com/arakichanxd/Claw-Sync tags:


Claw Sync

Secure, versioned sync for OpenClaw memory and workspace to GitHub.

Repository: https://github.com/arakichanxd/Claw-Sync

File References

FileDescriptionLink
SKILL.mdAI agent instructionsView
README.mdUser documentationView
index.jsCommand routerView
package.jsonNPM configView
scripts/push.jsSync to remoteView
scripts/pull.jsRestore from remoteView
scripts/status.jsShow statusView
scripts/setup-cron.jsAuto-sync setupView

Installation

Step 1: Clone the skill

cd ~/.openclaw/workspace/skills
git clone https://github.com/arakichanxd/Claw-Sync.git claw-sync

Step 2: Create a GitHub repository

  1. Go to https://github.com/new
  2. Create a private repository (e.g., my-openclaw-sync)
  3. Leave it empty (no README)

Step 3: Create a GitHub token

  1. Go to https://github.com/settings/tokens?type=beta
  2. Click "Generate new token"
  3. Name: openclaw-sync
  4. Repository access: Select your sync repository
  5. Permissions: Contents → Read and Write
  6. Generate and copy the token

Step 4: Configure the skill

Create file ~/.openclaw/.backup.env:

BACKUP_REPO=https://github.com/YOUR_USERNAME/YOUR_REPO
BACKUP_TOKEN=ghp_YOUR_TOKEN_HERE

Step 5: Test the setup

/sync-status

If configured correctly, you'll see ✅ Configured.

Step 6: First sync

/sync

Commands

/sync

Push memory and skills to remote.

/sync              → Create versioned snapshot
/sync --dry-run    → Preview what would sync (no changes)

/restore

Restore from remote.

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

/sync-status

Show configuration and local snapshots.

/sync-list

List all available versions to restore.


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

Troubleshooting

"Sync not configured"

Create ~/.openclaw/.backup.env with BACKUP_REPO and BACKUP_TOKEN.

"Invalid repository URL"

URL must be HTTPS and from github.com, gitlab.com, or bitbucket.org.

"Token appears too short"

Token must be at least 20 characters. Get a new one from GitHub.

Clone failed

Check that your token has Contents read/write permission.


Disaster Recovery

Before every restore, a local backup is automatically saved to:

~/.openclaw/.local-backup/<timestamp>/

If something goes wrong, manually copy files from there.


Auto-Sync Setup

To sync automatically every 12 hours:

node skills/claw-sync/index.js setup

Features

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

Source Code

Full source: https://github.com/arakichanxd/Claw-Sync

README.md

Claw Sync

GitHub Version License

Secure, versioned sync for OpenClaw memory files and custom skills.

Features

  • 🏷️ Versioned: Each sync creates a tagged version you can restore
  • 💾 Disaster Recovery: Local backup created before every restore
  • 🔒 Secure: Config files NOT synced, URL validation, path protection
  • 🖥️ Cross-platform: Works on Windows, Mac, Linux

File References

FileDescriptionLink
SKILL.mdAI agent instructionsView
README.mdUser documentationView
index.jsCommand routerView
package.jsonNPM configView
config.example.envExample configView
scripts/push.jsSync to remoteView
scripts/pull.jsRestore from remoteView
scripts/status.jsShow statusView
scripts/setup-cron.jsAuto-sync setupView

Installation

From GitHub

cd ~/.openclaw/workspace/skills
git clone https://github.com/arakichanxd/Claw-Sync.git claw-sync

From ClawHub

Search for "claw-sync" in ClawHub and install.

Quick Start

/sync              # Push to remote
/restore           # Restore latest
/sync-list         # List versions
/sync-status       # Check status

What Gets Synced

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

NOT Synced (security)

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

Setup

Create ~/.openclaw/.backup.env:

BACKUP_REPO=https://github.com/yourusername/your-sync-repo
BACKUP_TOKEN=ghp_your_fine_grained_personal_access_token

All Commands

CommandDescription
/syncPush memory and skills to remote
/sync --dry-runPreview what would be synced
/restoreRestore latest version
/restore latestSame as above
/restore backup-20260202-1430Restore specific version
/restore --forceSkip confirmation
/sync-listList all available versions
/sync-statusShow config and local backups

CLI Usage

node index.js sync              # Push
node index.js sync --dry-run    # Preview
node index.js restore           # Restore latest
node index.js restore backup-20260202-1430   # Specific version
node index.js list              # List versions
node index.js status            # Check status

Disaster Recovery

Local backup automatically created before every restore at:

~/.openclaw/.local-backup/<timestamp>/

Security Features

  • No config sync (secrets never leave your machine)
  • URL validation (only GitHub/GitLab/Bitbucket)
  • Path protection (blocks directory traversal)
  • Token sanitization (never in error messages)
  • Version validation (strict format checking)

Contributing

GitHub: https://github.com/arakichanxd/Claw-Sync

License

MIT

Permissions & Security

Security level L1: Low-risk skills with minimal permissions. Review inputs and outputs before running in production.

Requirements

  • OpenClaw CLI installed and configured.
  • Language: Markdown
  • License: MIT
  • Topics:

FAQ

How do I install claw-sync?

Run openclaw add @arakichanxd/claw-sync:claw-sync in your terminal. This installs claw-sync into your OpenClaw Skills catalog.

Does this skill run locally or in the cloud?

OpenClaw Skills execute locally by default. Review the SKILL.md and permissions before running any skill.

Where can I verify the source code?

The source repository is available at https://github.com/openclaw/skills/tree/main/skills/arakichanxd/claw-sync. Review commits and README documentation before installing.