Provides a unified interface to connect to a remote OpenClaw server via SSH, perform health checks, manage skills, and troubleshoot common issues like port conflicts.
SSH Access to the remote machine:
SkillHub on both local and remote (for skill sync)
Network connectivity (port 22 SSH)
bash
connect-openclaw --host <your-remote-host> --action status
Important: Replace <your-remote-host> with your actual remote server IP or domain (e.g., 192.168.1.100 or myserver.com). This is a required placeholder.
This will:
bash
connect-openclaw --host <your-remote-host> --action fix-port
Automatically:
bash
# See differences
connect-openclaw --host <your-remote-host> --action diff
# Install remote's missing skills to local
connect-openclaw --host <your-remote-host> --action sync-to-local
# Install local's missing skills to remote (if remote has SkillHub)
connect-openclaw --host <your-remote-host> --action sync-to-remote
bash
connect-openclaw --host <your-remote-host> --action send-qqbot \
--session "agent:main:qqbot:direct:..." \
--message "Hello from local OpenClaw"
CommandDescriptionstatusFull health check of remote OpenClawfix-portAuto-fix port 18790 conflictsdiffCompare local vs remote skillssync-to-localInstall remote-only skills to localsync-to-remotePush local-only skills to remotelist-skillsList all skills on remotelist-channelsList configured channelslist-sessionsShow active sessionstail-logsTail OpenClaw logs filtered by channeltest-connectionSimple SSH test
The skill uses these environment variables (optional):
VariablePurposeDefaultCONNECT_OPENCLAW_SSH_KEYPath to SSH private key~/.ssh/id_rsa``CONNECT_OPENCLAW_USERRemote usernameroot``CONNECT_OPENCLAW_PORTSSH port22``CONNECT_OPENCLAW_GATEWAY_PORTRemote OpenClaw port18790
You can also pass these as CLI flags:
bash
connect-openclaw --host example.com --user admin --key ~/.ssh/mykey.pem --action status
bash
connect-openclaw --host <your-remote-host> --action status
bash
connect-openclaw --host <your-remote-host> --action fix-port
bash
connect-openclaw --host <your-remote-host> --action diff
bash
connect-openclaw --host <your-remote-host> --action sync-to-local
If not already installed, run:
bash
skillhub install Connect_to_another_openclaw
Or clone this repository to ~/.openclaw/workspace/skills/Connect_to_another_openclaw/.
paramiko (Python SSH library) or native ssh commandProblemSolutionSSH connection failedCheck key permissions ( chmod 600), network, and authorized_keys``SkillHub not found on remoteInstall SkillHub on remote firstPermission deniedEnsure remote user has sudo/root and correct keyPort still in use after fixManually check with lsof -i :18790 and kill processes
--action test-connection firstfix-port will kill processes matching ssh -N.*18790 and voice-bridge-lightsync-to-remote prompts before each installation (use --yes to auto-confirm)Version: 1.0.0 Author: 小李 (基于 2026-03-28 实践经验) License: MIT