# Send VPS Agent Migration to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "vps-agent-migration",
    "name": "VPS Agent Migration",
    "source": "tencent",
    "type": "skill",
    "category": "通讯协作",
    "sourceUrl": "https://clawhub.ai/sparkingskin-tech/vps-agent-migration",
    "canonicalUrl": "https://clawhub.ai/sparkingskin-tech/vps-agent-migration",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/vps-agent-migration",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vps-agent-migration",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "vps-agent-migration",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-01T16:04:47.301Z",
      "expiresAt": "2026-05-08T16:04:47.301Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vps-agent-migration",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=vps-agent-migration",
        "contentDisposition": "attachment; filename=\"vps-agent-migration-1.0.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "vps-agent-migration"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/vps-agent-migration"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/vps-agent-migration",
    "downloadUrl": "https://openagent3.xyz/downloads/vps-agent-migration",
    "agentUrl": "https://openagent3.xyz/skills/vps-agent-migration/agent",
    "manifestUrl": "https://openagent3.xyz/skills/vps-agent-migration/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/vps-agent-migration/agent.md"
  }
}
```
## Documentation

### VPS Agent Migration

将本地 OpenClaw Agent 迁移到 VPS 上运行。

### 前提条件

VPS 已安装 OpenClaw
本地已配置好要迁移的 Agent（workspace、SOUL.md 等）
需要迁移的 Agent 名称（如 creative, dev, qa 等）
SSH 访问 VPS（sshpass 或配置 SSH key）

### Step 1: 连接 VPS 并复制文件

# 连接 VPS
sshpass -p 'VPS密码' ssh -o StrictHostKeyChecking=no root@VPS_IP

# 复制 Agent 文件（排除 sessions、.DS_Store、memory.md）
rsync -avz --exclude='sessions' --exclude='.DS_Store' --exclude='memory.md' \\
  ~/.openclaw/agents/[agent名]/ root@VPS_IP:/root/.openclaw/agents/[agent名]/

### Step 2: 获取本地 Discord Token

从本地 ~/.openclaw/openclaw.json 中查找对应 Agent 的 token：

cat ~/.openclaw/openclaw.json | grep -A5 '"[Discord_ID]":'

### Step 3: 在 VPS 上添加 Discord 账号

在 VPS 上使用 Python 更新配置：

sshpass -p 'VPS密码' ssh -o StrictHostKeyChecking=no root@VPS_IP 'python3 -c "
import json
with open(\\"/root/.openclaw/openclaw.json\\") as f:
    data = json.load(f)
data[\\"channels\\"][\\"discord\\"][\\"accounts\\"][\\"[Discord_ID]\\"] = {
    \\"name\\": \\"[Agent名字]\\",
    \\"enabled\\": True,
    \\"token\\": \\"[Token]\\",
    \\"groupPolicy\\": \\"allowlist\\",
    \\"streaming\\": \\"off\\"
}
with open(\\"/root/.openclaw/openclaw.json\\", \\"w\\") as f:
    json.dump(data, f, indent=2)
"'

### Step 4: 更新 Bindings

sshpass -p 'VPS密码' ssh -o StrictHostKeyChecking=no root@VPS_IP 'openclaw config set bindings \\"[{\\\\\\"agentId\\\\\\":\\\\\\"[agentId]\\\\\\",\\\\\\"match\\\\\\":{\\\\\\"channel\\\\\\":\\\\\\"discord\\\\\\",\\\\\\"accountId\\\\\\":\\\\\\"[Discord_ID]\\\\\\"}}]\\"'

### Step 5: 重启 VPS Gateway

sshpass -p 'VPS密码' ssh -o StrictHostKeyChecking=no root@VPS_IP "openclaw gateway restart"

### Step 6: 禁用本地账号

# 禁用本地账号
openclaw config patch --json '{"channels": {"discord": {"accounts": {"[Discord_ID]": {"enabled": false}}}}}'

# 重启本地 Gateway
openclaw gateway restart

### 关键坑点

requireMention: 默认 true 会导致 Agent 不自动回复，需要在 guilds 中设为 false
多账号配置: channels.discord.token 是默认账号，channels.discord.accounts[id].token 是多账号模式
SSH 连接: 偶尔会断开，多试几次即可
Token 获取: Discord Bot Token 在 openclaw.json 的 channels.discord.accounts[id].token 中

### 常见 Discord ID 格式

频道 ID: 18位数字（如 1475374006226915434）
用户/Bot ID: 18位数字（如 1475676302215221278）
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: sparkingskin-tech
- Version: 1.0.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-01T16:04:47.301Z
- Expires at: 2026-05-08T16:04:47.301Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/vps-agent-migration)
- [Send to Agent page](https://openagent3.xyz/skills/vps-agent-migration/agent)
- [JSON manifest](https://openagent3.xyz/skills/vps-agent-migration/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/vps-agent-migration/agent.md)
- [Download page](https://openagent3.xyz/downloads/vps-agent-migration)