# Vps Command Runner

> Run commands across multiple VPS simultaneously. Execute SSH commands, deploy updates, check logs, and manage services across all your servers from one place. Use when managing multiple VPS, running commands across all hosts, checking status of distributed services, or deploying changes to multiple servers.

- Skill: `dvcrn/vps-command-runner` (Agent Skill, multi-file: 4 files)
- Install (CLI): `npx skillmds@latest add dvcrn/vps-command-runner`
- Raw SKILL.md: https://api.skillmd.com/api/skills/dvcrn/vps-command-runner/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: dvcrn (https://skillmd.com/u/dvcrn)
- Updated: 2026-09-08
- Page: https://skillmd.com/skills/dvcrn/vps-command-runner

---


# 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:

```bash
# 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

```bash
# 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 VPS
- `run.sh <ip> <command>` — Execute on specific VPS
- `status.sh` — Quick health check of all VPS

## SSH Setup

Default: password authentication (edit scripts to change)

For key-based auth:
1. Add keys to `~/.ssh/`
2. Modify scripts to use: `ssh -i ~/.ssh/key ...` instead of `sshpass`
