← Back to Skills Marketplace
VPS Agent Migration
by
sparkingskin-tech
· GitHub ↗
· v1.0.0
437
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install vps-agent-migration
Description
将本地 OpenClaw 子 Agent 迁移到 VPS 上运行。包括:rsync 复制文件、配置 Discord Bot、添加 bindings 路由、禁用本地账号避免冲突。使用场景:当需要将本地的 creative/dev/qa/strategist/pojun 等子 Agent 迁移到远程 VPS 时使用此...
Usage Guidance
This skill appears to perform a legitimate agent migration, but it asks you (via its instructions) to handle highly sensitive secrets and to use insecure patterns. Before using it:
- Understand the sensitive files involved: ~/.openclaw/openclaw.json contains Discord bot tokens and should be treated as secret.
- Avoid sshpass/plaintext passwords: prefer SSH key-based auth (disable password login on the VPS if possible). Passing passwords on the command line exposes them to shell history and process listings.
- Do not paste tokens into single-line remote commands if you can avoid it; instead transfer files over an encrypted channel with correct permissions, or edit configs interactively on the VPS.
- Back up both local and remote openclaw.json before modifying. Verify file ownership and permissions after copying (restrict to the service user/root).
- After migration, rotate any tokens you moved (generate a new Discord bot token) to limit exposure if the transfer was observed.
- The skill manifest did not declare that it needs access to config paths or secrets — treat that omission as a red flag and confirm manually what will be read/changed before running any steps.
If you’re not comfortable handling tokens and root credentials directly, consider doing the migration interactively (SSH in, run commands with care) or hiring an administrator to perform the steps securely.
Capability Analysis
Type: OpenClaw Skill
Name: vps-agent-migration
Version: 1.0.0
The skill is classified as suspicious due to multiple severe vulnerabilities, primarily a critical Remote Code Execution (RCE) risk in `SKILL.md` (Step 3). The Python script executed on the remote VPS directly interpolates the `[Token]` placeholder into a string that is then executed, allowing for arbitrary Python code injection if a malicious token is provided. Additionally, the skill uses `sshpass` with plaintext passwords and disables `StrictHostKeyChecking`, exposing credentials and enabling potential Man-in-the-Middle attacks. Various other placeholders (`[agent名]`, `[Discord_ID]`, `[agentId]`) are directly inserted into shell commands without apparent sanitization, creating further shell injection vulnerabilities on both local and remote systems.
Capability Assessment
Purpose & Capability
The skill's described purpose (migrating a local sub-Agent to a VPS) aligns with the actions in SKILL.md (rsync files, update bindings, restart gateways). However the registry metadata declares no required config paths or credentials while the instructions explicitly require reading ~/.openclaw/openclaw.json and root SSH access on the VPS. This mismatch (declaring no sensitive inputs while instructing access to them) is incoherent and increases risk.
Instruction Scope
The SKILL.md tells the operator to read local openclaw.json to extract Discord bot tokens, run rsync to copy agent workspaces, and run remote commands that write tokens into /root/.openclaw/openclaw.json. It also recommends using sshpass with a plaintext password embedded in commands. These instructions access and move sensitive secrets (Discord tokens, root password) and instruct patterns (passwords on command line, token insertion in one-liners) that expose secrets to shell history and process lists; this is beyond simple file-copy scope and is risky.
Install Mechanism
This is an instruction-only skill with no install spec and no code files — there is nothing being downloaded or written by the skill itself. That minimizes installer risk.
Credentials
Although the manifest lists no required environment variables or config paths, the runtime instructions require access to highly sensitive items: the user's ~/.openclaw/openclaw.json (which contains Discord bot tokens) and the VPS root account/password. Requesting and moving these secrets is necessary for migration, but the omission from the declared requirements is a notable inconsistency and the requested handling (plaintext passwords, direct token copy) is disproportionate from a security-best-practices perspective.
Persistence & Privilege
The skill does not request always: true or persistent privileges. However the migration process as documented expects root-level changes on the VPS (editing /root/.openclaw/openclaw.json, restarting gateway) which legitimately require elevated privileges; running such steps increases impact if misused, but the skill does not itself request permanent agent presence or special platform privileges.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install vps-agent-migration - After installation, invoke the skill by name or use
/vps-agent-migration - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release - 迁移 OpenClaw 子 Agent 到 VPS
Metadata
Frequently Asked Questions
What is VPS Agent Migration?
将本地 OpenClaw 子 Agent 迁移到 VPS 上运行。包括:rsync 复制文件、配置 Discord Bot、添加 bindings 路由、禁用本地账号避免冲突。使用场景:当需要将本地的 creative/dev/qa/strategist/pojun 等子 Agent 迁移到远程 VPS 时使用此... It is an AI Agent Skill for Claude Code / OpenClaw, with 437 downloads so far.
How do I install VPS Agent Migration?
Run "/install vps-agent-migration" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is VPS Agent Migration free?
Yes, VPS Agent Migration is completely free (open-source). You can download, install and use it at no cost.
Which platforms does VPS Agent Migration support?
VPS Agent Migration is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created VPS Agent Migration?
It is built and maintained by sparkingskin-tech (@sparkingskin-tech); the current version is v1.0.0.
More Skills