Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

xray

БесплатноБез исполняемых скриптовНе проверен

Deploy and configure Xray proxy servers. Use when a user asks to set up VLESS, VMess, Trojan, or Shadowsocks proxies, configure Reality or TLS transport…

TerminalSkillsот TerminalSkills★ 221 звезда на GitHub

Об этом скилле

Xray

Overview

Deploy and configure Xray-core — the advanced proxy platform supporting VLESS, VMess, Trojan, and Shadowsocks protocols with modern transports like Reality, XTLS-Vision, WebSocket, gRPC, and HTTP/2. This skill covers server deployment, protocol selection, TLS/Reality configuration, traffic routing, multi-user management, CDN integration, client configuration, and monitoring.

Instructions

Step 1: Installation

Download the release archive and verify it against the published digest before installing (replace the version with the latest from the Xray-core releases page; the digest file sits next to each archive):

V=v26.10.21
cd /tmp && curl -fLO https://github.com/XTLS/Xray-core/releases/download/$V/Xray-linux-64.zip
curl -fL https://github.com/XTLS/Xray-core/releases/download/$V/Xray-linux-64.zip.dgst | grep SHA2-256
sha256sum Xray-linux-64.zip        # must match the SHA2-256 line above
unzip Xray-linux-64.zip xray geoip.dat geosite.dat
sudo install -m 755 xray /usr/local/bin/xray
sudo install -d /usr/local/share/xray /usr/local/etc/xray
sudo install -m 644 geoip.dat geosite.dat /usr/local/share/xray/
xray version

geoip: and geosite: rules in the examples below need those two .dat files next to the binary or in /usr/local/share/xray/; without them the config fails to load. The project's Xray-install script (systemd unit, dedicated xray user, update-geodata) is an alternative: download install-release.sh from the XTLS/Xray-install repository, read it, then run it. Since October 2026 it runs the service as the xray user, so config files must be readable by that user (root:xray, mode 0640).

Generate identifiers:

xray uuid      # client id
xray x25519    # PrivateKey goes into the server config, "Password (PublicKey)" into client links as pbk

Step 2: VLESS + Reality (Recommended)

The most secure setup. Reality mimics a real HTTPS website's TLS handshake, eliminating the need for a domain or TLS certificate.

Server config (/usr/local/etc/xray/config.json):

{
  "log": { "loglevel": "warning" },
  "inbounds": [{
    "tag": "vless-in",
    "listen": "0.0.0.0",
    "port": 443,
    "protocol": "vless",
    "settings": {
      "clients": [
        { "id": "YOUR-UUID", "flow": "xtls-rprx-vision", "email": "user1@proxy" }
      ],
      "decryption": "none"
    },
    "streamSettings": {
      "network": "tcp",
      "security": "reality",
      "realitySettings": {
        "target": "www.microsoft.com:443",
        "serverNames": ["www.microsoft.com", "microsoft.com"],
        "privateKey": "YOUR-PRIVATE-KEY",
        "shortIds": ["0123456789abcdef"]
      }
    },
    "sniffing": { "enabled": true, "destOverride": ["http", "tls", "quic"] }
  }],
  "outbounds": [
    { "protocol": "freedom", "tag": "direct" },
    { "protocol": "blackhole", "tag": "block" }
  ],
  "routing": {
    "rules": [{ "ip": ["geoip:private"], "outboundTag": "block" }]
  }
}

Check the config before starting: xray run -test -c /usr/local/etc/xray/config.json prints Configuration OK. Check the camouflage target with xray tls ping www.microsoft.com (it must answer TLS 1.3; a target that supports X25519MLKEM768 also gives post-quantum key exchange). Reality forwards unauthenticated traffic to the target, so never choose a site behind a CDN you do not control as a shared forwarder; limit abuse with limitFallbackUpload/limitFallbackDownload or a filtering proxy in front.

Client share link:

vless://UUID@SERVER_IP:443?encryption=none&flow=xtls-rprx-vision&security=reality&sni=www.microsoft.com&fp=chrome&pbk=PUBLIC_KEY&sid=0123456789abcdef&type=tcp#MyProxy
sudo systemctl enable --now xray

On the client side the Reality block uses serverName, fingerprint, password (the public key from xray x25519) and shortId; apps that import vless:// links fill these from the sni, fp, pbk and sid parameters. The mldsa65 commands add optional post-quantum signature verification for Reality.

Step 3: VLESS + WebSocket + TLS (CDN-Compatible)

For routing through Cloudflare CDN to hide the server IP. Requires a domain with Cloudflare proxying and a TLS certificate. The Xray docs now recommend XHTTP over WebSocket because WebSocket's http/1.1 ALPN is an easy fingerprint; the WebSocket setup below still loads and works.

sudo apt install -y certbot
sudo certbot certonly --standalone -d proxy.yourdomain.com
{
  "inbounds": [
    {
      "port": 443, "protocol": "vless",
      "settings": {
        "clients": [{ "id": "YOUR-UUID" }],
        "decryption": "none",
        "fallbacks": [
          { "dest": 8080 },
          { "path": "/ws-path", "dest": 8443, "xver": 1 }
        ]
      },
      "streamSettings": {
        "network": "tcp", "security": "tls",
        "tlsSettings": {
          "certificates": [{
            "certificateFile": "/etc/letsencrypt/live/proxy.yourdomain.com/fullch
Полный SKILL.md на GitHub

Установить xray в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

_scores.json

FAQ

Что делает скилл xray?

Deploy and configure Xray proxy servers. Use when a user asks to set up VLESS, VMess, Trojan, or Shadowsocks proxies, configure Reality or TLS transport, deploy Xray with XTLS, set up fallback routing, manage multi-user access, configure traffic routing rules, set up CDN-based tunneling, build subscription links for client apps, monitor Xray traffic, or bypass network restrictions. Covers all major Xray protocols, transports, and deployment patterns.

Как установить скилл xray?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл xray запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить xray с