← ClaudeAtlas

xray-relay-deploylisted

Install and remotely operate the user's xray-relay one-click VLESS+REALITY relay script (superchaospc/xray-relay, xray_deploy.sh) on a VPS over SSH. Use whenever the user wants to deploy, set up, or manage a VLESS/REALITY relay or 中转节点 on a VPS; add/delete/rename relay nodes (residential SOCKS5 or VPS direct, single or batch); view relay status, traffic stats, or run diagnostics; change a node's port; update or restart Xray; configure monitoring/email alerts; or uninstall. Trigger on phrases like "在 <vps> 上装一下中转脚本", "给 japan 加几个直连节点", "看下 vps1 的流量", "部署 xray 中转", "批量加住宅节点", even when the script name isn't mentioned. This skill drives the script's interactive menu non-interactively via SSH; it does NOT reimplement the relay logic.
superchaospc/xray-relay-deploy · ★ 0 · DevOps & Infrastructure · score 72
Install: claude install-skill superchaospc/xray-relay-deploy
# xray-relay Deploy & Operate Install and operate the user's own relay script `xray_deploy.sh` (repo `superchaospc/xray-relay`, which the user maintains) on a remote VPS over SSH. The script is a single interactive bash menu with 16 functions. This skill installs it and drives any function **non-interactively** by feeding stdin over SSH. This is the user's own infrastructure and their own script — operating it on their VPS is authorized. Treat node deletion, port changes, and uninstall as the only sensitive parts (see Destructive operations). ## How the script behaves (the mechanism that makes this work) `xray_deploy.sh` loops a main menu forever, reading every answer through a `prompt_read` helper. The key fact: **when stdin hits EOF, `prompt_read` prints `输入流已结束,操作取消` and exits 0 cleanly.** So you can pipe a fixed sequence of answers; once they run out, the script exits on its own. There is no CLI/flag interface — stdin feeding is the only non-interactive path. The script **requires root** (it exits if `id -u != 0`) and **systemd**. SSH must land as root. The user's `~/.ssh/config` aliases generally log in as root; if a target logs in as a non-root user, wrap the remote command in `sudo` and confirm with the user first. ## Step 1 — Pick the VPS target Support both connection styles: - **Preferred — SSH config alias.** The user keeps aliases in `~/.ssh/config` (e.g. `japan`, `vps1`, `germany`, `jabbar`). When the user names one, use `ssh <alias> ...`. If they say "my