vps-deploy

vps-deploy is a command for Claude Code from rahmanef63/control-room. It costs 0 tokens per session (797 once invoked), scanned B, original, MIT.

A deployment and troubleshooting guide for systemd services, which are background programs managed by Linux. It covers installing, building, configuring, and starting the project's frontend, agent, and Convex database.

In plain words
What is it for?
Use it for first-time deployment, code redeployment, systemd service management, Convex schema deployment, and diagnosing service problems.
Why use it?
It turns deployment and service recovery into a documented sequence with the required dependencies, permissions, environment settings, and commands.

Command for Claude Code

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/rahmanef63/control-room/vps-deploy
Clone the repo
git clone --depth 1 https://github.com/rahmanef63/control-room

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for vps-deploy

README.md
[![agentmods](https://agentmods.dev/badge/commands/rahmanef63/control-room/vps-deploy.svg)](https://agentmods.dev/commands/rahmanef63/control-room/vps-deploy)
Your own site
<a href="https://agentmods.dev/commands/rahmanef63/control-room/vps-deploy"><img src="https://agentmods.dev/badge/commands/rahmanef63/control-room/vps-deploy.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 797 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.00797
Opus 5 $0.00000 $0.00398
Sonnet 5 $0.00000 $0.00159
Haiku 4.5 $0.00000 $0.00080

Measured 4d ago against content hash 1f7345501714, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

vps-deploy scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Asks for rootmediumPrivilege escalation

A mod that escalates privileges can change anything on the machine, not only the project.

sudo usermod -aG docker "$USER"

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl http://127.0.0.1:4000/api/health # frontend
.claude/commands/vps-deploy.md · 116 lines

How it starts

The opening of the file, as written. The whole thing — 116 lines — stays where its author put it; the contents beside it link to each section on GitHub.

VPS Control Room — Deploy Workflow

Gunakan skill ini saat deploy, redeploy, atau troubleshoot systemd services.

Deploy Pertama Kali

# Set REPO_DIR to your actual repo path
REPO_DIR="<your-repo-path>"
cd "$REPO_DIR"

# 1. Install dependencies
bun install --cwd frontend
bun install --cwd agent

# 2. Setup env
cp .env.example .env.local
# Edit .env.local — isi semua secrets

# 3. Build
bun run --cwd frontend build
bun run --cwd agent build

# 4. Deploy Convex schema
bunx convex deploy

# 5. Setup permissions
sudo usermod -aG docker "$USER"
# Buat sudoers file
sudo tee /etc/sudoers.d/vps-control-room << 'SUDOERS'
# Replace <your-user> with your actual username
<your-user> ALL=(ALL) NOPASSWD: /usr/bin/systemctl restart vps-control-room-*
<your-user> ALL=(ALL) NOPASSWD: /usr/bin/fail2ban-client set sshd unbanip *
SUDOERS
sudo chmod 440 /etc/sudoers.d/vps-control-room

# 6. Install systemd units (auto-detects user and repo path)
sudo bash scripts/install-systemd.sh

# 7. Enable dan start
sudo systemctl enable --now vps-control-room-frontend
sudo systemctl enable --now vps-control-room-agent

Redeploy (Update Kode)

cd <your-repo-path>
git pull origin main

# Build ulang
bun install --cwd frontend && bun run --cwd frontend build
bun install --cwd agent && bun run --cwd agent build

# Deploy Convex (jika schema/functions berubah)
bunx convex deploy

# Restart services
sudo systemctl restart vps-control-room-frontend
sudo systemctl restart vps-control-room-agent

Atau jalankan: bash scripts/deploy.sh

Troubleshooting

# Cek status service
sudo systemctl status vps-control-room-frontend
sudo systemctl status vps-control-room-agent

# Lihat logs
sudo journalctl -u vps-control-room-frontend -f --no-pager
sudo journalctl -u vps-control-room-agent -f --no-pager

# Cek health endpoints
curl http://127.0.0.1:4000/api/health    # frontend
curl http://127.0.0.1:4001/health        # agent

# Restart manual jika perlu
sudo systemctl restart vps-control-room-frontend
sudo systemctl restart vps-control-room-agent

# Cek apakah port sudah listen
ss -tlnp | grep -E "4000|4001"

# Cek env loaded
sudo systemctl show vps-control-room-agent --property=Environment

Read the full file on GitHub · 116 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 116 lines · 0 tokens per session scan B 1f7345501714

Subscribe to this mod's changes

vps-deploy is a command published in the GitHub repository rahmanef63/control-room (19 stars, last pushed 4d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 797 tokens. A static security scan graded it B with 2 findings (asks for root, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.