# VPS Ops for AI Agents — 10 Commands Cheat Sheet

## Make Any AI Coding Agent Manage Your VPS

### Install
```
# One-command installer
git clone https://github.com/digitalhustlerx/vps-ops-pack && cd vps-ops-pack && bash install.sh
```
Your agent can now run these commands by name.

---

### 10 Commands Your Agent Needs

| # | Command | What It Does | Usage |
|---|---------|-------------|-------|
| 1 | `vps-audit` | Full system recon: OS, kernel, CPU, RAM, disk, network, open ports, running services, Docker containers | Run on any new VPS to get a complete baseline |
| 2 | `vps-health` | Quick health check: uptime, load, memory, disk %, swap, top 5 processes by resource | Run before and after any operation |
| 3 | `vps-clean` | Deep cleanup: apt autoremove, journalctl vacuum, Docker prune (all), old log rotation, temp files | Run weekly or when disk is above 80% |
| 4 | `vps-secure` | Security baseline: SSH key-only + port change, UFW rules, fail2ban, unattended-upgrades, auditd | Run on every new VPS within 5 minutes |
| 5 | `vps-ssl-check` | Scan all nginx sites, verify cert expiry dates, report domains expiring within 30 days | Run daily via cron |
| 6 | `vps-deploy-spa` | Deploy a React/Vite/Angular/Next.js build behind nginx: SSL, proxying, cache headers, gzip | Run each time you push a fresh build |
| 7 | `vps-docker-ping` | Health of all Docker containers: status, restart count, port mappings, resource usage | Run before and after docker compose operations |
| 8 | `vps-logs-tail` | Tail recent lines from service logs with smart filtering: nginx, Docker, system, auth | Run when debugging failures |
| 9 | `vps-backup-run` | Run configured backup: database dump + files → S3/R2/Backblaze, with rotation | Run daily via cron |
| 10 | `vps-cert-renew` | Certbot renewal check + dry-run + force renew if needed, reload nginx | Run weekly (and check `vps-ssl-check` did report domain) |

---

### Pro Tips

- **Chain commands**: `vps-audit && vps-secure && vps-health` — run the complete VPS setup in one agent turn
- **Cron them**: `vps-clean` at 3am Sunday, `vps-ssl-check` at 6am daily, `vps-health` every 4 hours
- **Broken fix**: If `vps-health` shows disk >85%, tell the agent: "run vps-clean then vps-health again"
- **New VPS**: First 60 seconds: `vps-audit | grep security` then `vps-secure` — full baseline in <2 minutes

---

**Downloaded from Digital HustlerX — VPS Ops Agent Pack**
*15+ production-tested Hermes skills to make any AI coding agent manage your VPS. → [See plans]*
