← Back to Skills Marketplace
hanxueyuan

Claw Migrate

by hanxueyuan · GitHub ↗ · v3.0.0 · MIT-0
cross-platform ✓ Security Clean
273
Downloads
0
Stars
0
Active Installs
17
Versions
Install in OpenClaw
/install claw-migrate
Description
OpenClaw workspace backup & restore - simple tar-based guide
README (SKILL.md)

claw-migrate - OpenClaw Backup & Restore Guide

Simple & Safe: No code, no automation, just clear instructions


🎯 What Is This?

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.


📁 Path 1: Backup

Quick Backup (Recommended)

# 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/

Full Backup (Include Skills)

# 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/

What to Backup ✅

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

What NOT to Backup ❌

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)

🔄 Path 2: Restore

Restore from Backup

# Extract backup to workspace
tar -xzf openclaw-backup-YYYYMMDD_HHMMSS.tar.gz \
  -C /workspace/projects/workspace/

Restore Steps

  1. Stop OpenClaw (if running)

    openclaw gateway stop
    
  2. Extract Backup

    tar -xzf your-backup.tar.gz -C /workspace/projects/workspace/
    
  3. Verify Files

    ls -la /workspace/projects/workspace/
    
  4. Re-pair Channels (required)

    openclaw pairing
    
  5. Restart OpenClaw

    openclaw gateway restart
    

Restore Notes ⚠️

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)

📤 Path 3: Share to ClawTalent

Prepare for Sharing

  1. Sanitize Sensitive Info

    # Remove .env, credentials, etc.
    rm -rf .env credentials/ identity/ devices/
    
  2. 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"]
    }
    
  3. Upload to GitHub

    git add .
    git commit -m "Share OpenClaw config"
    git push origin main
    

Share via ClawTalent Platform

Visit: https://clawtalent.shop

  1. Create account
  2. Upload sanitized config
  3. Get CT-XXXX ID
  4. Share ID with others

🔍 Path 4: Discover Configs

Browse ClawTalent

Visit: https://clawtalent.shop

Search for:

  • Multi-agent setups
  • Specific skills
  • Industry templates

Deploy from ClawTalent

# 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/

Verify Before Deploy

  1. Check OpenClaw version compatibility
  2. Review skills list
  3. Check agent configurations
  4. Verify no sensitive data included

🔐 Security Best Practices

Always ✅

  • Store backups in private GitHub repos
  • Use environment variables for API keys
  • Re-pair channels after restore
  • Sanitize before sharing

Never ❌

  • Share .env files
  • Commit API keys to Git
  • Share pairing tokens
  • Backup browser data (privacy)

📋 Quick Reference

Backup Commands

# 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/

Restore Commands

# Extract backup
tar -xzf backup.tar.gz -C /workspace/projects/workspace/

# Verify
ls -la /workspace/projects/workspace/

Storage Options

Option Command
Local cp backup.tar.gz ~/backups/
GitHub git push origin main
Cloud Upload to Google Drive / Dropbox

🆘 Troubleshooting

"Permission denied"

# Fix permissions
chmod -R 755 /workspace/projects/workspace/
chmod 600 /workspace/projects/workspace/.env

"Missing files after restore"

Check .gitignore - some files are excluded from backup by design.

"Channel not working after restore"

Re-pair channels:

openclaw pairing

"Skills not found"

Skills are in skills/ directory. Verify:

ls /workspace/projects/workspace/skills/

📚 Resources


📄 License

MIT License - Free to use and share (but sanitize first!)

Usage Guidance
This is a documentation-only skill for manual backup/restore — it does not install code or request credentials. Before following commands: 1) Confirm you're operating in the intended workspace directory to avoid accidental deletion (especially before running rm -rf). 2) Inspect any backup archive contents before pushing to remote repos; sanitize secrets (.env, credentials/) as advised. 3) Ensure the OpenClaw CLI exists and you understand 'openclaw pairing' and gateway restart effects. 4) When sharing, prefer private repositories or vetted community platforms and verify ClawTalent/trusted recipients. If you want automation rather than a manual guide, look for a different skill that explicitly provides secure, audited tooling.
Capability Analysis
Type: OpenClaw Skill Name: claw-migrate Version: 3.0.0 The claw-migrate skill is a documentation-only bundle (v3.0.0) that provides instructions and shell commands (tar, git) for backing up, restoring, and sharing OpenClaw workspace configurations. It explicitly includes security best practices, such as warnings to exclude sensitive files like .env and credentials, and contains no executable code or malicious prompt injections. The instructions are transparent and aligned with the stated purpose of workspace migration.
Capability Assessment
Purpose & Capability
Name/description promise a tar-based backup/restore guide and the skill is instruction-only with no installs, no env vars, and only the 'tar' binary required — this aligns with the stated purpose. The CHANGELOG's note about removing code is consistent with the current instruction-only state.
Instruction Scope
SKILL.md instructs running tar, OpenClaw CLI commands (openclaw gateway stop/restart, openclaw pairing), git operations, and some destructive cleanup (rm -rf .env credentials/ identity/ devices/). These actions are within a backup/restore/share workflow, but the destructive commands and git push steps require user caution (ensure you're in the correct repo and sanitized). The guide explicitly warns not to include secrets, which mitigates exfiltration risk.
Install Mechanism
No install spec (instruction-only), so nothing is downloaded or written to disk by the skill itself. This is the lowest-risk pattern and matches the guide's 'no code' claim.
Credentials
The skill declares no required environment variables, credentials, or config paths. SKILL.md does reference common local paths (/workspace/projects/workspace/) and mentions not to back up .env and other secret stores — all consistent and proportionate to its purpose.
Persistence & Privilege
The skill is not always-enabled and does not request persistent privileges. It is user-invocable and may be invoked autonomously per platform defaults, but it doesn't request additional system-wide configuration or credentials.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install claw-migrate
  3. After installation, invoke the skill by name or use /claw-migrate
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v3.0.0
v3.0.0: Complete redesign - pure guidance skill, no code (4613 lines removed). Zero maintenance, zero security risks, zero dependencies.
v2.8.2
claw-migrate 2.8.2 - Clarified two main use cases: Personal Migration (full, sensitive) vs. Community Sharing (sanitized). - Updated documentation to clearly distinguish `backup` (for private, full personal migration) and `share` (for ClawTalent/community, with auto-sanitization). - Added tables and guidance comparing security, storage, and included data for each mode. - Emphasized workflow safety: warns to use `backup` only with private repos, and guarantees sensitive info is removed during `share`. - Improved explanations of what is included/excluded, auto-sanitized, and how file types are handled. - Enhanced documentation for user confidence and correct usage.
v2.8.1
- Added support for restoring specific backup categories using the --categories flag (e.g., core, memory, skills). - The restore command now supports preview mode (--dry-run) for both full and category-specific restores. - Updated documentation to reflect new restore options and example usage. - Minor code and help text adjustments to support category-based selection and dry-run flows.
v2.8.0
**claw-migrate v2.8.0** - Major rewrite of documentation for clearer, automated backup & restore workflow. - New skill description emphasizes automation and user guidance. - Details added for sensitive data scanning, security exclusions, and confirmation prompts. - Expanded commands for backup, restore, share, deploy, and search with user-friendly CLI examples. - Enhanced setup and configuration instructions. - Lists all dependencies and required environment variables explicitly.
v2.7.8
**Expanded to support sharing/discovery via ClawTalent.** - Added instructions for sharing configurations to ClawTalent and discovering/deploying configs from ClawTalent. - SKILL.md overhauled: now includes four paths—Backup, Restore, Share, and Discover. - Step-by-step guides provided for manual and API-based sharing and deployment. - Backup/restore instructions remain, but are reorganized for clarity alongside new sharing options. - Updated descriptions across documentation to reflect ClawTalent integration and clearer workflow.
v2.7.7
**claw-migrate 2.7.7 Changelog** - Skill restructured: all code and automation removed; this version provides plain backup/restore instructions only. - Requirements cleared in metadata: no longer needs node, git, or environment variables. - Comprehensive documentation added with clear, step-by-step backup and restore guides. - Stronger warnings and checklists for privacy and accidental data disclosure. - All previous command-based features and automation references replaced by manual instructions and safety tips.
v2.7.6
- SKILL.md and README.md translated from Chinese to English for broader accessibility. - No code or feature changes; documentation only. - package.json updated to reflect new version 2.7.6. - Improved clarity and consistency in documentation for international users.
v2.7.5
- Documentation fully rewritten in Simplified Chinese for improved clarity and user experience. - README.md, SKILL.md, and package.json updated to reflect enhanced documentation, usage examples, and detailed feature explanations. - No functional changes to code; changelog is documentation-only.
v2.7.4
claw-migrate 2.7.4 - Updated dependencies and version in package.json. - No changes to documentation, features, or commands. - Maintenance release with no user-facing changes.
v2.7.3
claw-migrate 2.7.3 - Added a prominent Security Best Practices section to documentation, highlighting token handling, sensitive file warnings, and private repo recommendations. - Expanded details on token storage options and usage recommendations. - No code changes; this update improves and clarifies documentation only.
v2.7.2
- Minor update to improve internal code (deploy.js, github.js). - No user-facing changes or new features. - Documentation unchanged except for minor formatting or metadata tweaks.
v2.7.1
- Updated dependencies in package.json for improved stability. - No user-facing features or documentation changes. - Patch release focusing on maintenance.
v2.7.0
**New features for ClawTalent sharing, deployment, and search.** - Added `share`, `deploy`, and `search` commands for ClawTalent platform integration. - New usage scenarios and documentation for sharing, deploying, and searching configurations. - Three new source files: `src/deploy.js`, `src/search.js`, `src/share.js`. - Updated core docs (`SKILL.md`) and package info to reflect new features.
v2.6.0
Full English localization + bug fixes
v2.5.0
v2.5.0 brings a major redesign and upgrade, focusing on a new backup and restore workflow, with clearer configuration and improved usability. - Complete rewrite of documentation for easier onboarding and Chinese localization - Simplified usage: distinct commands for backup, restore, and config management (`backup`, `restore`, `config`) - New interactive setup wizard with content selection (20+ categories, full user control) - Improved backup strategies, supporting granular choice (core configs, skills, memory, learning, sensitive info, etc.) - Enhanced restore logic with intelligent merge, incremental sync, and deduplication - Added: `USAGE.md`, new restore logic in `src/restore-ai.js` - Removed: legacy and proposal documentation, outdated guides, and reports for a cleaner package
v1.0.1
- Documentation fully translated to English for broader accessibility. - Added release notes files for version v2.2.0 and v2.2.1. - Updated and clarified configuration migration strategies in documentation. - Improved examples and descriptions for usage and command options. - Enhanced troubleshooting and notes sections for easier onboarding.
v1.0.0
Initial release of claw-migrate. - Provides OpenClaw configuration migration between machines using a GitHub repository. - Supports smart merge without overwriting local settings; backs up before changes. - Allows selective migration of configs, skills, and memory with granular control. - Handles private repos with GITHUB_TOKEN and offers interactive and manual setup. - Excludes machine-specific and sensitive files from migration by default. - Includes dry-run, verbose output, and detailed error handling.
Metadata
Slug claw-migrate
Version 3.0.0
License MIT-0
All-time Installs 1
Active Installs 0
Total Versions 17
Frequently Asked Questions

What is Claw Migrate?

OpenClaw workspace backup & restore - simple tar-based guide. It is an AI Agent Skill for Claude Code / OpenClaw, with 273 downloads so far.

How do I install Claw Migrate?

Run "/install claw-migrate" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Claw Migrate free?

Yes, Claw Migrate is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Claw Migrate support?

Claw Migrate is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Claw Migrate?

It is built and maintained by hanxueyuan (@hanxueyuan); the current version is v3.0.0.

💬 Comments