TopRank Skills

Home / Claw Skills / Git / GitHub / Openclaw Migrate 2
Official OpenClaw rules 54%

Openclaw Migrate 2

Agent Migration

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 Openclaw Migrate 2 技能。 若已安装,则直接安装 Openclaw Migrate 2 技能。

Overview

Skill Key
haha8d/openclaw-migrate-2
Author
haha8d
Source Repo
openclaw/skills
Version
-
Source Path
skills/haha8d/openclaw-migrate-2
Latest Commit SHA
7a6540504cf5911819005e96ef3fbb6ddeaaedde

Extracted Content

SKILL.md excerpt

# Agent Migration

Migrate OpenClaw agents across servers and platforms while preserving identity, memory, and configuration.

## When to Use

✅ **USE this skill when:**

- Moving agent from local machine to remote server
- Cloning agent configuration to multiple environments
- Backing up complete agent state for disaster recovery
- Syncing workspace changes between dev/prod
- Upgrading OpenClaw with full rollback capability

❌ **DON'T use when:**

- Simple file copy operations → use `cp`/`rsync` directly
- Database migrations → use database-specific tools
- Non-OpenClaw application deployment

## Core Concepts

### Agent State Components

```
Agent State = Identity + Memory + Config + Skills + Extensions
├── workspace/           # Core identity files
│   ├── IDENTITY.md      # Who the agent is
│   ├── USER.md          # Who they serve
│   ├── SOUL.md          # Personality
│   ├── MEMORY.md        # Long-term memory
│   ├── AGENTS.md        # Operational rules
│   ├── TOOLS.md         # Environment notes
│   └── memory/          # Daily logs
├── .openclaw/
│   ├── openclaw.json    # Gateway config
│   ├── agents/          # Session data
│   └── extensions/      # Custom plugins
└── skills/              # Custom skills (if any)
```

### Migration Workflows

#### 1. Export (Source Machine)

```bash
# Full agent export
./scripts/export-agent.sh [export-name]

# Creates:
# /tmp/agent-export-[name]/
#   ├── manifest.json      # Export metadata
#   ├── workspace.tar.gz   # Core files
#   ├── config.tar.gz      # OpenClaw config
#   └── restore.sh         # Self-contained restore
```

#### 2. Transfer

```bash
# Via SSH
scp -r /tmp/agent-export-[name] user@new-server:/tmp/

# Via GitHub (recommended for versioned deployments)
# Push to repo, clone on target
```

#### 3. Import (Target Machine)

```bash
# Run self-contained restore
cd /tmp/agent-export-[name] && ./restore.sh

# Or manual:
./scripts/import-agent.sh /tmp/agent-export-[name]
```

## Scripts

### Export Agen...

README excerpt

# agent-migrate

OpenClaw Agent 跨平台迁移工具

## 功能

- 导出 Agent 完整状态
- 同步到 GitHub 私有仓库
- 跨服务器迁移部署
- Docker 容器化支持

## 安装

```bash
# 克隆到本地 skills 目录
cd ~/.openclaw/skills
git clone https://github.com/YOUR_USERNAME/agent-migrate.git

# 或使用 .skill 文件
openclaw skills install agent-migrate.skill
```

## 使用

### 导出 Agent

```bash
./scripts/export-agent.sh [名称]
```

### 同步到 GitHub

```bash
./scripts/sync-github.sh git@github.com:username/repo.git --push
```

### 从 GitHub 恢复

```bash
./scripts/sync-github.sh git@github.com:username/repo.git --pull
```

## 许可证

MIT

Related Claw Skills