Skip to content

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.

FormatHow it is recognized
Xray JSONA JSON object or an array of objects with outbounds, whose elements have protocol
Clash / mihomo YAMLYAML with proxies:; anchors and merge keys are allowed here
Linksscheme://… 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.

SchemeProtocol
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.

WhatWhere it occurs
VMess, naive, mieru, Snell, SSH, TrustTunnellinks, Clash
ShadowsocksR, ShadowQUIC, GOST relay, ZeroTier, WireGuardClash, 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 transportslinks, Xray
Shadowsocks plugins other than obfs-local (obfs, simple-obfs) and v2ray-plugin in websocket mode; the Shadowsocks layer of trojan-goClash, links
Clash HTTP masquerading, layers that change the handshakeClash
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 TLSlinks, Clash
Options that point to files on this router (cert, ca)links
A uTLS fingerprint that does not exist, for REALITYall
A chain through a server that was skipped or is not in the subscriptionall

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 typerank
selectmanual
url-testdelay
fallbackorder
load-balanceorder with pick: all; spread by strategy: round-robin, sticky-sessions → sticky, otherwise hash
relaynot taken
Xray balancer (strategy.type)rank
leastPingdelay
leastLoadstable with pick = expected, samples = sampling, spread: random
roundRobinorder, pick: all, spread: round-robin
random and othersorder, 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.

GPL-3.0-or-later