VPS Command Runner
Execute commands across your VPS fleet simultaneously.
VPS Inventory
| Host | IP | Username | Services |
|---|---|---|---|
| Internal | [REDACTED] | [REDACTED] | Gateway, Nextcloud, Providers |
| VPS1 (DE) | [REDACTED] | [REDACTED] | Provider, Nextcloud |
| VPS2 (US) | [REDACTED] | [REDACTED] | WireGuard, Providers, Nextcloud |
Setup
Edit scripts to add your credentials:
# Set these variables in each script:
USER="your-username"
PASS="your-password"
# Or use SSH keys:
# Add keys to ~/.ssh/ and modify scripts to use key auth
Quick Usage
# Run command on all VPS
~/.openclaw/workspace/skills/vps-command-runner/scripts/run-all.sh "docker ps"
# Run command on specific VPS
~/.openclaw/workspace/skills/vps-command-runner/scripts/run.sh [IP] "systemctl status docker"
# Check provider status everywhere
~/.openclaw/workspace/skills/vps-command-runner/scripts/run-all.sh "docker ps --filter name=urnetwork --format \"{{.Names}}\" | wc -l"
# Update all providers
~/.openclaw/workspace/skills/vps-command-runner/scripts/run-all.sh "docker pull bringyour/community-provider:g4-latest"
Scripts
run-all.sh <command>— Execute on all VPSrun.sh <ip> <command>— Execute on specific VPSstatus.sh— Quick health check of all VPS
SSH Setup
Default: password authentication (edit scripts to change)
For key-based auth:
- Add keys to
~/.ssh/ - Modify scripts to use:
ssh -i ~/.ssh/key ...instead ofsshpass