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.
- License 许可
- MIT
- 最近更新
- 2026-04-05
- Stars
- ★ 7
- Forks
- 1
01 前言 Front Matter
- name
- claw-sync
- tags
- [ "sync", "github", "memory", "skills", "disaster-recovery" ]
- files
- [ { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/SKILL.md", "name": "SKILL.md" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/README.md", "name": "README.md" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/index.js", "name": "index.js" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/package.json", "name": "package.json" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/config.example.env", "name": "config.example.env" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/scripts/push.js", "name": "scripts/push.js" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/scripts/pull.js", "name": "scripts/pull.js" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/scripts/status.js", "name": "scripts/status.js" }, { "url": "https://github.com/arakichanxd/Claw-Sync/blob/main/scripts/setup-cron.js", "name": "scripts/setup-cron.js" } ]
- author
- arakichanxd
- version
- 2.0.2
- commands
- [ { "run": "node skills/claw-sync/index.js sync", "name": "sync", "usage": "/sync [--dry-run]", "description": "Push memory and skills to remote repository" }, { "run": "node skills/claw-sync/index.js restore", "name": "restore", "usage": "/restore [latest|<version>] [--force]", "description": "Restore memory and skills from remote" }, { "run": "node skills/claw-sync/index.js status", "name": "sync-status", "usage": "/sync-status", "description": "Show sync configuration and local snapshots" }, { "run": "node skills/claw-sync/index.js list", "name": "sync-list", "usage": "/sync-list", "description": "List all available sync versions" } ]
- repository
- https://github.com/arakichanxd/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.
02 资源文件 9
- 其他.gitignore158 B
- 其他config.example.env387 B
- 脚本index.js3.3 KB
- 参考文档package.json679 B
- 参考文档README.md3.9 KB
- 脚本scripts/pull.js11.2 KB
- 脚本scripts/push.js8.0 KB
- 脚本scripts/setup-cron.js1.9 KB
- 脚本scripts/status.js3.8 KB
03 SKILL.md 正文
Claw Sync
Secure, versioned sync for OpenClaw memory and workspace to GitHub.
Repository: https://github.com/arakichanxd/Claw-Sync
File References
| 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 |
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
- Go to https://github.com/new
- Create a private repository (e.g.,
my-openclaw-sync) - Leave it empty (no README)
Step 3: Create a GitHub token
- Go to https://github.com/settings/tokens?type=beta
- Click "Generate new token"
- Name:
openclaw-sync - Repository access: Select your sync repository
- Permissions: Contents → Read and Write
- 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
| 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 |
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
04 同仓库更多 Skills
zyfai
Earn yield on any Ethereum wallet on Base, Arbitrum, and Plasma. Use when a user wants passive DeFi yield on their funds. Deploys a non-custodial subaccount (Safe) linked to their EOA, enables automated yield optimization, and lets them deposit/withdraw anytime.
zerion-api
暂无简介
zerion-api-skill
暂无简介
zerion-api-mcp
暂无简介
yahoo-finance-forex
Fetches real-time FOREX news and market data from Yahoo Finance for major currency pairs (EUR/USD, GBP/USD, USD/JPY, etc.). Analyzes sentiment and provides trading context.
yahoo-finance
This skill should be used when the user asks to "get stock prices", "check stock quotes", "look up earnings", "get financial data", "find trending stocks", or needs stock market data from Yahoo Finance.