Install
openclaw skills install claw-migrateOpenClaw workspace backup & restore - simple tar-based guide
openclaw skills install claw-migrateSimple & Safe: No code, no automation, just clear instructions
claw-migrate is a pure guidance skill - no installation needed, no code to run.
Just follow the instructions below to backup and restore your OpenClaw workspace.
# Backup core files only (fast)
tar -czf openclaw-backup-$(date +%Y%m%d_%H%M%S).tar.gz \
-C /workspace/projects/workspace \
AGENTS.md SOUL.md IDENTITY.md USER.md TOOLS.md HEARTBEAT.md \
memory/ .learnings/ docs/ scripts/ templates/
# Backup everything including skills
tar -czf openclaw-full-backup-$(date +%Y%m%d_%H%M%S).tar.gz \
-C /workspace/projects/workspace \
AGENTS.md SOUL.md IDENTITY.md USER.md TOOLS.md HEARTBEAT.md \
memory/ .learnings/ docs/ scripts/ templates/ skills/ agents/
| Category | Files | Backup? |
|---|---|---|
| Core Config | AGENTS.md, SOUL.md, IDENTITY.md, USER.md | ✅ Yes |
| Tools | TOOLS.md, HEARTBEAT.md | ✅ Yes |
| Memory | memory/*.md | ✅ Yes |
| Learnings | .learnings/*.md | ✅ Yes |
| Docs | docs/ | ✅ Yes |
| Scripts | scripts/ | ✅ Yes |
| Templates | templates/ | ✅ Yes |
| Skills | skills/ | ⚠️ Optional (large) |
| Agents | agents/ | ⚠️ Optional |
| Files | Reason |
|---|---|
.env | Contains API keys |
openclaw.json | Contains secrets |
credentials/ | Pairing tokens |
identity/ | Device auth |
devices/ | Paired devices |
feishu/ | Channel config |
browser/ | Browser data (large) |
# Extract backup to workspace
tar -xzf openclaw-backup-YYYYMMDD_HHMMSS.tar.gz \
-C /workspace/projects/workspace/
Stop OpenClaw (if running)
openclaw gateway stop
Extract Backup
tar -xzf your-backup.tar.gz -C /workspace/projects/workspace/
Verify Files
ls -la /workspace/projects/workspace/
Re-pair Channels (required)
openclaw pairing
Restart OpenClaw
openclaw gateway restart
| Item | Action |
|---|---|
| API Keys | Re-add to .env |
| Channel Pairing | Re-pair all channels |
| Device Auth | Re-authenticate devices |
| Memory Files | Merged automatically |
| Skills | Preserved (no re-install needed) |
Sanitize Sensitive Info
# Remove .env, credentials, etc.
rm -rf .env credentials/ identity/ devices/
Create Manifest
{
"name": "my-openclaw-config",
"version": "1.0.0",
"description": "My OpenClaw workspace config",
"openclaw_version": "2026.3.13",
"skills": ["coze-web-search", "agent-browser"],
"agents": ["main", "life", "work"]
}
Upload to GitHub
git add .
git commit -m "Share OpenClaw config"
git push origin main
Visit: https://clawtalent.shop
Visit: https://clawtalent.shop
Search for:
# Get config from CT-XXXX ID
git clone https://github.com/hanxueyuan/clawtalent-CT-XXXX.git
cd clawtalent-CT-XXXX
tar -xzf config.tar.gz -C /workspace/projects/workspace/
.env files# Quick backup (core files only)
tar -czf backup.tar.gz -C /workspace/projects/workspace \
AGENTS.md SOUL.md memory/ .learnings/
# Full backup (include skills)
tar -czf full-backup.tar.gz -C /workspace/projects/workspace \
AGENTS.md SOUL.md memory/ .learnings/ skills/ agents/
# Extract backup
tar -xzf backup.tar.gz -C /workspace/projects/workspace/
# Verify
ls -la /workspace/projects/workspace/
| Option | Command |
|---|---|
| Local | cp backup.tar.gz ~/backups/ |
| GitHub | git push origin main |
| Cloud | Upload to Google Drive / Dropbox |
# Fix permissions
chmod -R 755 /workspace/projects/workspace/
chmod 600 /workspace/projects/workspace/.env
Check .gitignore - some files are excluded from backup by design.
Re-pair channels:
openclaw pairing
Skills are in skills/ directory. Verify:
ls /workspace/projects/workspace/skills/
MIT License - Free to use and share (but sanitize first!)