Codex + Claude Code skill for deploying a self-hosted Xray VLESS REALITY Vision node on an Ubuntu VPS, including key generation, server config, UFW checks, share URI, QR code, mihomo YAML, and verification.
This skill turns a hardened Ubuntu VPS into a direct-IP Xray REALITY proxy node. It is designed for a single VPS where you do not want to depend on a domain name, Cloudflare, or nginx.
It keeps the repeatable pieces in one checklist: install Xray, generate fresh Reality keys and UUIDs, write config.json, open the firewall port, generate client artifacts, and verify the node.
Use only on servers you own or are authorized to administer, and only where self-hosted proxy services are lawful and allowed by your provider.
Use it when you ask Codex or Claude Code to:
- deploy Xray on a new Ubuntu VPS
- create a VLESS + REALITY + Vision node
- generate a share URI, QR code, or mihomo YAML
- audit an existing Xray REALITY config
- verify Xray, UFW, and client connectivity
- Preflight variables
- Xray installation with the official installer
- Reality key, UUID, and short ID generation
- Server
config.json - UFW public port check
- Client URI, QR code, and mihomo YAML
- Verification and common failure notes
# Codex mkdir -p ~/.codex/skills cp -r vps-xray-reality ~/.codex/skills/ # Claude Code mkdir -p ~/.claude/skills cp -r vps-xray-reality ~/.claude/skills/
Invoke explicitly:
Use $vps-xray-reality to deploy a VLESS REALITY node on my Ubuntu VPS. VPS_IP=203.0.113.10 NODE_NAME=my-reality-node.
Claude Code can also use /vps-xray-reality when installed in its skill directory.
- Ubuntu 22.04 / 24.04
- Direct-IP Xray REALITY node
- Single VPS, single inbound
- No domain, no Cloudflare, no nginx
MIT. See LICENSE.
这个 skill 把一台已经完成基础加固的 Ubuntu VPS 部署成直连 IP 的 Xray REALITY 代理节点。它适合不想依赖域名、Cloudflare 或 nginx 的单机节点。
它把重复步骤固化成一份清单:安装 Xray,生成新的 Reality 密钥和 UUID,写入 config.json,放行防火墙端口,生成客户端链接/二维码/mihomo YAML,并完成验证。
请只在你拥有或被授权管理的服务器上使用,并确保自建代理服务符合当地法律和服务商条款。
当你让 Codex 或 Claude Code 做这些事时使用:
- 在新的 Ubuntu VPS 上部署 Xray
- 创建 VLESS + REALITY + Vision 节点
- 生成分享链接、二维码或 mihomo YAML
- 审计已有 Xray REALITY 配置
- 验证 Xray、UFW 和客户端连通性
- 预检变量
- 使用官方安装脚本安装 Xray
- 生成 Reality 密钥、UUID 和 short ID
- 服务端
config.json - UFW 公网端口检查
- 客户端 URI、二维码和 mihomo YAML
- 验证命令和常见坑
# Codex mkdir -p ~/.codex/skills cp -r vps-xray-reality ~/.codex/skills/ # Claude Code mkdir -p ~/.claude/skills cp -r vps-xray-reality ~/.claude/skills/
显式调用示例:
Use $vps-xray-reality to deploy a VLESS REALITY node on my Ubuntu VPS. VPS_IP=203.0.113.10 NODE_NAME=my-reality-node.
装到 Claude Code 的 skill 目录后,也可以用 /vps-xray-reality 调用。
- Ubuntu 22.04 / 24.04
- 直连 IP 的 Xray REALITY 节点
- 单台 VPS、单个 inbound
- 不需要域名、Cloudflare 或 nginx
MIT,见 LICENSE。