migrate for Openclaw

A robust utility for exporting and importing Clawdbot installations to facilitate seamless machine migrations, backups, and setup restoration.

mrgoodb
v1.0.0
Jan 30, 2026
0
2.5k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install migrate

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install migrate using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is migrate?

The migrate skill is a specialized utility designed to handle the portability of Clawdbot environments. By using this tool within the ecosystem of Openclaw Skills, users can create comprehensive, portable archives of their workspaces, configuration settings, and even live WhatsApp sessions. It ensures that moving your AI agent setup to a new machine or restoring from a failure is a frictionless process, preserving the context and settings that make your agent unique.

By encapsulating complex dependencies and session data, the skill reduces the overhead of manual setup. It is particularly effective for developers who need to replicate environments quickly or maintain stateful agent interactions without repetitive authentication steps, ensuring your Openclaw Skills remain functional across different hardware.

migrate Use Cases

  • Transferring a complete Clawdbot environment from an old computer to a new workstation.
  • Creating periodic backups of agent workspaces and configurations for disaster recovery.
  • Synchronizing complex agent environments across multiple development or production machines.
  • Restoring a previously exported WhatsApp session to avoid re-scanning QR codes during setup.

How migrate Works

  1. Initiate the export process on the source machine to bundle the workspace, config files, and managed skills into a compressed tarball.
  2. Transfer the generated archive (e.g., clawdbot-export-YYYYMMDD.tar.gz) to the destination system using your preferred file transfer method.
  3. Run the import script on the target system to unpack the environment into the specified workspace directory.
  4. Re-initialize the environment and start the gateway to resume AI agent operations immediately.

migrate Setup

To create a portable archive of your current installation, run the following command on your source machine:

bash scripts/export.sh -o ~/Desktop --include-sessions

To restore or import that setup on a new machine, first ensure Clawdbot is installed, then run:

npm install -g clawdbot
bash scripts/import.sh path/to/clawdbot-export-archive.tar.gz
cd ~/clawd && clawdbot gateway start

migrate Data Schema & Taxonomy

The skill organizes data into a structured archive. The following table describes how the migration handles various components:

Component Included by Default Optimization/Flag
Workspace (~/clawd) Yes Targeted via --workspace
Config (clawdbot.json) Yes Always included
Managed Skills Yes Always included
WhatsApp Sessions Yes Preserves login state
Session Transcripts No Enabled via --include-sessions
System Credentials No Enabled via --include-credentials

Note: This skill automatically excludes transient build artifacts such as node_modules, .next, and .git folders to keep Openclaw Skills archives lightweight and portable.

migrate Advanced Features

  • Credential Portability: Securely package API keys and sensitive credentials for private environment migrations.
  • Workspace Customization: Specify custom source or target paths to accommodate non-standard installation directories.
  • Session Preservation: Transfer live WhatsApp sessions to bypass QR code scanning on new devices.
  • Intelligent Exclusion: Automatically filters out bulky, rebuildable folders like dist, build, and node_modules to optimize transfer speeds.
  • Force Overwrite: Supports headless automation with a force flag to overwrite existing target configurations during import.

SKILL.md


Loading

METADATA

Github Stars: 0
forks: 0

Featured*