claw-migrate

OpenClaw configuration migration tool. Use when users mention pulling configuration from GitHub, migrating OpenClaw configuration, syncing configuration, restoring configuration, or cloning configuration to a new machine. Supports pulling team configuration, skills, memory, etc. from GitHub private repositories, intelligently merging without overwriting local configuration.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "claw-migrate" with this command: npx skills add hanxueyuan/claw-migrate

claw-migrate - OpenClaw Configuration Migration Tool

Features

Pull OpenClaw configuration from GitHub private repository to local, supports intelligent merging, preserves existing local configuration.

Usage

🎯 Automatic Configuration After Installation

When you first install the claw-migrate skill, it will automatically trigger the configuration wizard to guide you through setting up your backup strategy.

# Install skill
openclaw skill install claw-migrate

# Automatically trigger configuration wizard
🎉 claw-migrate installation complete!

📋 Detected this is first-time installation, start configuring backup now?
   1. Yes, configure immediately (Recommended)
   2. No, configure manually later

Manual Configuration

If you skipped automatic configuration, you can manually start anytime:

# Start configuration wizard
openclaw skill run claw-migrate setup

# View current configuration
openclaw skill run claw-migrate config

# Modify configuration
openclaw skill run claw-migrate config --edit

File Migration Strategy

Configuration Categories

Configuration TypeFile ExamplesMigration Strategy
General ConfigurationAGENTS.md, SOUL.md, USER.mdIntelligent merge
Skillsskills/**/SKILL.mdIncremental sync (add missing only)
Memory/LearningMEMORY.md, .learnings/*.mdMerge/Append
Channel Configurationfeishu/*.jsonPreserve local (machine-specific)
Pairing Informationfeishu/pairing/*.json❌ Do not migrate (machine-specific)
Sensitive Information.env, sessions/*.jsonl❌ Do not migrate

Detailed Description

File TypeStrategyDescription
AGENTS.md, SOUL.md, IDENTITY.md, USER.mdIntelligent mergePreserve local customization
TOOLS.md, HEARTBEAT.mdIntelligent mergePreserve local customization
skills/Incremental syncOnly add skills that exist remotely but not locally
MEMORY.md, memory/MergePreserve local, append remote additions
.learnings/Append with deduplicationAppend remote additions
.env❌ Do not migratePreserve local (API keys, etc.)
feishu/dedup/*.json❌ Do not migrateMessage deduplication IDs (machine-specific)
feishu/pairing/*.json❌ Do not migratePairing information (machine-specific)
openclaw.jsonField-level mergePreserve machine-specific fields like browser.executablePath

Command Arguments

openclaw skill run claw-migrate --repo <owner>/<repo> [options]

Options

ParameterShortRequiredDescription
--repo-rGitHub repository (format: owner/repo)
--branch-bBranch name (default: main)
--path-pPath within repository (default: root directory)
--type-tMigration type: all (default) config memory learnings skills
--dry-runPreview mode, do not actually write files
--no-backupDo not create backup (default creates backup)
--verbose-vVerbose output

Usage Examples

Pull Configuration from GitHub Repository

# Basic usage
openclaw skill run claw-migrate --repo hanxueyuan/lisa

# Specify branch and path
openclaw skill run claw-migrate \
  --repo hanxueyuan/lisa \
  --branch main \
  --path workspace/projects/workspace

# Pull skills only
openclaw skill run claw-migrate \
  --repo hanxueyuan/lisa \
  --type skills

# Preview mode
openclaw skill run claw-migrate \
  --repo hanxueyuan/lisa \
  --dry-run

Notes

  1. GitHub Token: Token required to access private repositories
  2. Backup: Automatically creates backup to .migrate-backup/<timestamp>/ before migration
  3. Memory Index: May need to run openclaw memory rebuild after migration
  4. Sensitive Information: .env file preserved if already exists locally

Troubleshooting

ErrorCauseSolution
404 Not FoundRepository name incorrect or no permissionCheck repository name, confirm token permissions
401 UnauthorizedInvalid tokenRegenerate token
Rate limit exceededAPI request limit exceededWait and retry, or use authenticated token

Related Files

  • src/index.js - Main entry point
  • src/github.js - GitHub API access
  • src/merger.js - Merger engine
  • src/writer.js - File writing and backup

License

MIT License

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

PinchTab Browser Ops

Browser automation via PinchTab CLI (nav/snap/find/click/fill/press/text) with low-token accessibility-tree flow. Use when the user asks to operate websites,...

Registry SourceRecently Updated
Coding

Aigames

Create a mini HTML game, organize files in a new folder, and upload it to the brianclan/aigames GitHub repo for www.thenext.games.

Registry SourceRecently Updated
Coding

Api Tester Cn

API请求构造、curl命令生成、Mock数据、API文档、HTTP状态码速查、Headers说明。API request builder, curl generator, mock data, API documentation, HTTP status codes, headers reference. Us...

Registry SourceRecently Updated
Coding

Miaoda App Builder

Create, modify, generate, and deploy websites, web apps, dashboards, SaaS products, internal tools, interactive web pages, Weixin mini program , games on the...

Registry SourceRecently Updated
claw-migrate | V50.AI