Skip to main content

proxy-fleet

Manage multiple VPS proxy nodes: deploy 3x-ui + VLESS+Reality, generate Clash/Mihomo subscription URLs, and keep them in sync. Use this skill whenever the user mentions proxy servers, VPS deployment, 3x-ui, VLESS, Reality, Clash subscriptions, proxy fleet management, adding/removing proxy nodes, updating proxy rules, or checking proxy node status. Also trigger when the user says "部署代理", "代理节点", "订阅链接", "分流规则", or references their VPS proxy infrastructure in any way.

설치로 이동

소스 정보

저장소
imraywang/proxy-fleet
최근 소스 활동
2026년 6월 26일 08:34
감지된 SKILL.md 언어
영어
스타
173
포크
24

설치 방법

기본적으로 소스를 먼저 확인하는 Prompt가 선택됩니다. 직접 명령으로 전환하거나 로컬 사본을 다운로드할 수도 있습니다.

소스 파일 검토

설치 여부를 결정하기 전에 SKILL.md와 SkillsMP에 표시된 보조 파일을 읽어 보세요.

SKILL.md 표시 중

SKILL.md
소스 지침 · 읽기 전용 미리보기
name
proxy-fleet
description
Manage multiple VPS proxy nodes: deploy 3x-ui + VLESS+Reality, generate Clash/Mihomo subscription URLs, and keep them in sync. Use this skill whenever the user mentions proxy servers, VPS deployment, 3x-ui, VLESS, Reality, Clash subscriptions, proxy fleet management, adding/removing proxy nodes, updating proxy rules, or checking proxy node status. Also trigger when the user says "部署代理", "代理节点", "订阅链接", "分流规则", or references their VPS proxy infrastructure in any way.
# proxy-fleet Manage multiple VPS proxy nodes from a single command line. Deploy 3x-ui + VLESS+Reality and generate Clash/Mihomo subscription URLs that auto-sync when nodes change. ## Working Directory ```bash cd /Users/wangzhuc/proxy-fleet ``` ## Commands All commands run from the project root: ```bash python3 scripts/fleet.py init # First-time setup python3 scripts/fleet.py status # Parallel health check python3 scripts/fleet.py deploy <host> [--name X --emoji 🇯🇵] # One-click deploy python3 scripts/fleet.py deploy <host> --nat 10000-10009 # NAT machine python3 scripts/fleet.py remove <host> # Remove from subscription python3 scripts/fleet.py sync # Regenerate subscription YAML ``` ## When to Use Each Command | User says | Command | |-----------|---------| | "加台机器 / deploy / 部署代理" | `deploy <ssh-host>` | | "删掉这个节点 / remove" | `remove <ssh-host>` | | "节点状态 / 看下代理" | `status` | | "更新规则 / 加个 AI 域名" | Edit `templates/rules/*.yaml` → `sync` | | "刷新订阅 / 同步" | `sync` | ## Deploy Flow ``` SSH → scan ports (avoid conflicts) → pick available port → install 3x-ui → reset credentials via CLI → generate x25519 keys → create VLESS+Reality inbound via API → detect firewall (ufw/iptables) → open ports → verify connectivity → save to config.json → sync subscription ``` ## Key Files | File | Purpose | |------|---------| | `config.json` | Fleet state — credentials, nodes, subscription hosting (gitignored) | | `config.example.json` | Template for new users | | `scripts/fleet.py` | Main CLI — all operations | | `templates/rules/ai.yaml` | AI service routing rules (OpenAI, Claude, Gemini, etc.) | | `templates/rules/proxy.yaml` | Common proxy rules (Google, GitHub, Twitter, etc.) | | `templates/rules/streaming.yaml` | Streaming rules (YouTube, Netflix, etc.) | | `templates/rules/direct.yaml` | China-direct and LAN rules | ## Updating Rules Edit the relevant file in `templates/rules/`, then run `sync` to regenerate and upload the subscription. Users refresh in Clash Verge Rev to get changes. ## Technical Notes These matter when debugging or extending the skill: - **Xray v26+ key format**: `x25519` outputs `PrivateKey` / `Password` (= public key) / `Hash32`. Older versions use `Private key` / `Public key`. The script handles both. - **3x-ui install** is interactive — the script installs with defaults, then resets credentials via the `/usr/local/x-ui/x-ui setting` CLI. - **3x-ui API**: `POST /login` → session cookie → `/panel/api/inbounds/{add,update,del,list}`. - **Reality returns HTTP 400** to non-VLESS clients — the connectivity check treats 400 as alive. - **Port conflicts** are the #1 deploy failure cause — the script scans ports before configuring. - **xray binary** path is auto-detected via glob (`/usr/local/x-ui/bin/xray-linux-*`), works on both amd64 and arm64.
GitHub에서 보기