xray-xhttp-relay-deploylisted
Install: claude install-skill superchaospc/xray-xhttp-relay-deploy
# xray-xhttp-relay Deploy & Operate
Install and operate the user's own relay script `xray_deploy.sh` (repo `superchaospc/xray-xhttp-relay`, which the user maintains) on a remote VPS over SSH. It is a derivative of `xray-relay` v2.2.20 with every VLESS inbound moved from TCP+XTLS-Vision to **XHTTP+REALITY**; the menu, node management, and operating flow are otherwise identical. 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).
**Which skill for which script:** this one is the **XHTTP** variant (`xray-xhttp-relay`). The TCP+XTLS-Vision variant (`xray-relay`) is driven by the separate `xray-relay-deploy` skill. They are different repos and not interchangeable on a live server — XHTTP clients need `type=xhttp` and won't connect to a Vision inbound. If the user is ambiguous about which transport they want, ask.
## 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 n