计划执行与检查节点
executing-plans
按既定实施计划完成工作,保持过程检查和反馈。
claw-sync【效率与协作】Secure sync for OpenClaw memory and workspace. Use /sync to push, /restore to pull, /sync-status to check. Supports versioned snapshots and disaster recovery.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
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:
Secure, versioned sync for OpenClaw memory and workspace to GitHub.
Repository: https://github.com/arakichanxd/Claw-Sync
| File | Description | Link |
|---|---|---|
SKILL.md | AI agent instructions | View |
README.md | User documentation | View |
index.js | Command router | View |
package.json | NPM config | View |
scripts/push.js | Sync to remote | View |
scripts/pull.js | Restore from remote | View |
scripts/status.js | Show status | View |
scripts/setup-cron.js | Auto-sync setup | View |
cd ~/.openclaw/workspace/skills
git clone https://github.com/arakichanxd/Claw-Sync.git claw-sync
my-openclaw-sync)openclaw-syncCreate file ~/.openclaw/.backup.env:
BACKUP_REPO=https://github.com/YOUR_USERNAME/YOUR_REPO
BACKUP_TOKEN=ghp_YOUR_TOKEN_HERE
/sync-status
If configured correctly, you'll see ✅ Configured.
/sync
Push memory and skills to remote.
/sync → Create versioned snapshot
/sync --dry-run → Preview what would sync (no changes)
Restore from remote.
/restore → Restore latest
/restore latest → Same as above
/restore backup-20260202-1430 → Restore specific version
/restore --force → Skip confirmation
Show configuration and local snapshots.
List all available versions to restore.
| File | Description |
|---|---|
MEMORY.md | Long-term memory |
USER.md | User profile |
SOUL.md | Agent persona |
IDENTITY.md | Agent identity |
TOOLS.md | Tool configs |
AGENTS.md | Workspace rules |
memory/*.md | Daily logs |
skills/* | Custom skills |
openclaw.json - Contains API keys.env - Contains secretsCreate ~/.openclaw/.backup.env with BACKUP_REPO and BACKUP_TOKEN.
URL must be HTTPS and from github.com, gitlab.com, or bitbucket.org.
Token must be at least 20 characters. Get a new one from GitHub.
Check that your token has Contents read/write permission.
Before every restore, a local backup is automatically saved to:
~/.openclaw/.local-backup/<timestamp>/
If something goes wrong, manually copy files from there.
To sync automatically every 12 hours:
node skills/claw-sync/index.js setup
Full source: https://github.com/arakichanxd/Claw-Sync