/tunpilot:getting-startedfrom tunpilot
Guides users through deploying a TunPilot server via SSH, configuring the CLI or web admin, and verifying connectivity. Use when installing, updating, or setting up TunPilot for the first time.
Ships in tunpilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Guide the user from zero to a working TunPilot setup they can manage from either the web admin or the tunpilot CLI.
Ask the user what they need before jumping into deployment:
Ask the user for the target server — SSH destination (e.g. [email protected] or an alias from ~/.ssh/config). Must be Linux with root access.
Test SSH connectivity — the agent cannot enter passwords interactively:
ssh <server> "echo ok"
If this fails, stop and tell the user to set up SSH key-based login first.
Check firewall — ensure port 3000 is open:
ssh <server> "command -v ufw && ufw allow 3000/tcp || command -v firewall-cmd && firewall-cmd --add-port=3000/tcp --permanent && firewall-cmd --reload || echo 'no firewall detected'"
Run the one-command deploy script:
ssh <server> "curl -fsSL https://raw.githubusercontent.com/Buywatermelon/tunpilot/main/scripts/deploy.sh | bash"
The script automatically:
/opt/tunpilotTUNPILOT_AUTH_TOKEN and creates .envParse the script output. It should contain ✔ TunPilot deployed on http://<ip>:3000.
If it fails, diagnose:
ssh <server> "journalctl -u tunpilot --no-pager -n 50"
Common failures:
TUNPILOT_PORT in /opt/tunpilot/.env and restart.The deploy script is idempotent. It git pulls, rebuilds the web admin, and restarts — preserving .env and token:
ssh <server> "curl -fsSL https://raw.githubusercontent.com/Buywatermelon/tunpilot/main/scripts/deploy.sh | bash"
Before wiring up a client, confirm the server responds from the client side (run locally, not via SSH):
curl --max-time 5 http://<ip>:3000/health
Expected: {"status":"ok"}. If this fails:
nc -zv <ip> 3000 tests TCP reachability.journalctl -u tunpilot --no-pager -n 30.TunPilot exposes three equivalent entry points. Pick whichever fits the user's workflow — or use the CLI (what this skill standardizes on, because Agents operate through it).
Open http://<ip>:3000 in a browser and paste the token on the login screen. Done.
tunpilot CLI (what Agents use)Install the CLI on the user's local machine (not the server):
bun install -g github:Buywatermelon/tunpilot
If the user doesn't have Bun locally:
curl -fsSL https://bun.sh/install | bash
Configure the CLI:
tunpilot config set server http://<ip>:3000
tunpilot config set token <auth-token>
Config lives in ~/.config/tunpilot/config.json.
curl -H "Authorization: Bearer <token>" http://<ip>:3000/api/v1/nodes
Useful for scripting or integration.
Run a no-op list command to confirm auth and connectivity:
tunpilot node list
Expected: either a table of nodes, or a "no nodes yet" notice. Any HTTP error (401, 5xx, timeout) means the client config is wrong or the server is unreachable — debug using the checklist above.
The default deployment uses plain HTTP. The auth token is transmitted in cleartext. For production use, consider one of these mitigations:
Option A — SSH tunnel (simplest, no domain needed):
ssh -N -L 3000:localhost:3000 <server>
Then point the CLI at http://localhost:3000 and bind the server to loopback only (TUNPILOT_HOST=127.0.0.1 in .env).
Option B — Reverse proxy with TLS (requires domain):
Use Caddy or nginx in front of TunPilot with a TLS certificate. Update TUNPILOT_BASE_URL to the HTTPS URL (this also fixes subscription links for clients).
Option C — Firewall source IP restriction (quick hardening):
ssh <server> "ufw default deny incoming && ufw allow from <your-ip> to any port 3000 && ufw allow 22/tcp && ufw enable"
Restricts port 3000 to a single source IP.
With the CLI or web admin connected, use the deploying-hy2-nodes (Hysteria2) or deploying-xray-nodes (Trojan) skill to register your first proxy node. The Agent will drive those flows via tunpilot node add, tunpilot user create, and friends.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
4 skills in this plugin
/deploying-hy2-nodesDeploys UDP/QUIC Hysteria2 proxy nodes with Brutal or BBR congestion control, inline ACME (or self-signed EC P-256), HTTP masquerade, QUIC receive/send window tuning based on server memory, systemd hardening with CAP_NET_ADMIN, and HTTP auth callback registration in TunPilot. Use when deploying a new Hysteria2 node, choosing Brutal vs BBR, tuning QUIC windows, setting up masquerade, or switching between ACME and self-signed TLS. Not for Xray/Trojan — see deploying-xray-nodes./deploying-xray-nodesDeploys TCP Trojan proxy nodes on Xray-core with certbot Let's Encrypt or self-signed EC P-256 + SHA-256 certificate fingerprint pinning, TCP Fast Open kernel tuning with BBR, nginx-compatible fallback site, gRPC user sync (not HTTP auth callback), and systemd hardening with strict filesystem isolation. Use when deploying a Trojan node on Xray, pinning a self-signed cert fingerprint, configuring TCP Fast Open, or setting up the Xray gRPC stats API. Not for Hysteria2 — see deploying-hy2-nodes./testing-nodesRuns IP reputation checks (risk scores, streaming unlock, blacklists via 9 providers) and network performance tests (BGP, latency, speed, routing to 31 Chinese provinces) on proxy nodes via SSH. Generates structured health reports with actionable recommendations. Use when testing proxy node quality, checking IP risk scores, verifying streaming unlock status, running speed tests, diagnosing latency, or comparing multiple nodes side-by-side.npx claudepluginhub buywatermelon/tunpilot --plugin tunpilotOther plugins' skills for the same job