English
Subscription formats
The format is determined by the content, not by the headers and not by User-Agent. Any format may additionally be encoded in base64.
| Format | How it is recognized |
|---|---|
| Xray JSON | A JSON object or an array of objects with outbounds, whose elements have protocol |
| Clash / mihomo YAML | YAML with proxies:; anchors and merge keys are allowed here |
| Links | scheme://… strings, one per line |
The sing-box JSON format and SIP008 are not read: such a subscription gives a "format not recognized" error. An empty answer ("", [], {}) is a "no servers" error; the previous servers stay in that case.
Protocols
Servers become outbounds of the vless, trojan, shadowsocks, socks, http, anytls, hysteria, hysteria2, tuic protocols. A server of a protocol that is not in this build is skipped with the reason protocol … is not built in.
Links
| Scheme | Protocol |
|---|---|
vless:// | VLESS |
trojan:// | Trojan |
ss:// | Shadowsocks (including with an Xray transport) |
socks://, socks4://, socks4a://, socks5://, socks5h:// | SOCKS |
http://, https:// | HTTP proxy |
hysteria://, hy:// | Hysteria |
hysteria2://, hy2:// | Hysteria 2 |
tuic:// | TUIC v5 |
anytls:// | AnyTLS |
For REALITY, pbk, sid and pqv in links become public_key, short_id and mldsa65_verify of the reality block.
Clash / mihomo
proxies of the types ss, vless, trojan, hysteria, hysteria2, tuic, anytls, socks5, http. A dialer-proxy to another server of the same subscription is kept as a chain.
Xray JSON
outbounds with protocol vless, trojan, shadowsocks, socks, http, hysteria (Hysteria 2 in Xray). The service ones freedom, blackhole, dns, loopback do not count as servers. proxySettings.tag / dialerProxy to a server of the same document are kept as a chain. realitySettings.mldsa65Verify becomes mldsa65_verify of the REALITY block.
What is skipped
A server that cannot be expressed is skipped with the reason; the other servers of the subscription are taken. What was skipped is visible in the log (subscription …: skipped …), in check --fetch and in the dashboard.
| What | Where it occurs |
|---|---|
| VMess, naive, mieru, Snell, SSH, TrustTunnel | links, Clash |
| ShadowsocksR, ShadowQUIC, GOST relay, ZeroTier, WireGuard | Clash, links (SSR) |
A VLESS flow other than xtls-rprx-vision (xtls-rprx-vision-udp443 is read as xtls-rprx-vision) | all |
The QUIC transport (V2Ray), the TCP http header over TLS, unknown transports | links, Xray |
Shadowsocks plugins other than obfs-local (obfs, simple-obfs) and v2ray-plugin in websocket mode; the Shadowsocks layer of trojan-go | Clash, links |
| Clash HTTP masquerading, layers that change the handshake | Clash |
Clash XHTTP download-settings (the mihomo form) | Clash |
Xray finalmask entries that change the exchange (sudoku, header-custom, salamander outside Hysteria 2) | Xray, links |
| TUIC v4, SOCKS over TLS | links, Clash |
Options that point to files on this router (cert, ca) | links |
| A uTLS fingerprint that does not exist, for REALITY | all |
| A chain through a server that was skipped or is not in the subscription | all |
fragment and noise from Xray finalmask do not change the exchange with the server and are simply ignored. salamander for Hysteria 2 becomes obfs: with packetSize, gecko with those sizes, without it, salamander. obfs=gecko in a link and obfs: gecko in Clash are gecko too.
The provider's groups
Groups from a subscription become groups <subscription>/<name> (see import_groups in Subscriptions). The way of choosing is translated like this:
Clash type | rank |
|---|---|
select | manual |
url-test | delay |
fallback | order |
load-balance | order with pick: all; spread by strategy: round-robin, sticky-sessions → sticky, otherwise hash |
relay | not taken |
Xray balancer (strategy.type) | rank |
|---|---|
leastPing | delay |
leastLoad | stable with pick = expected, samples = sampling, spread: random |
roundRobin | order, pick: all, spread: round-robin |
random and others | order, pick: all, spread: random |
The probe URL and interval are taken from the Clash group (url, interval, tolerance) or from Xray observatory/burstObservatory. An interval longer than 30 minutes also sets idle_timeout.
A member that is missing after the filters drops out of the group; a group without members is not created. DIRECT, REJECT and similar built-in names do not become members.