| 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
cd /Users/wangzhuc/proxy-fleet
Commands
All commands run from the project root:
python3 scripts/fleet.py init
python3 scripts/fleet.py status
python3 scripts/fleet.py deploy <host> [--name X --emoji ๐ฏ๐ต]
python3 scripts/fleet.py deploy <host> --nat 10000-10009
python3 scripts/fleet.py remove <host>
python3 scripts/fleet.py sync
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.