| Scheme | Protocol |
|---|---|
vless:// | VLESS |
vmess:// | VMess, Base64 JSON |
trojan:// | Trojan |
ss:// | Shadowsocks |
hysteria2://, hy2:// | Hysteria2 |
wireguard://, wg:// | WireGuard |
socks://, socks5:// | SOCKS |
http://user:pass@host:port#Name, https://… | HTTP proxy. No path and an explicit port, otherwise it is a subscription URL |
tuic://uuid:password@host:port | TUIC v5: sni, alpn, congestion_control, udp_relay_mode — Mihomo core |
anytls://password@host:port | AnyTLS: sni, fp, insecure — Mihomo core |
hysteria://host:port | Hysteria v1: auth, peer, upmbps, downmbps, obfsParam — Mihomo core |
Common parameters
| Parameter | Value |
|---|---|
type | tcp, ws, httpupgrade, grpc, xhttp, kcp |
security | none, tls, reality |
sni, peer | Server name |
fp | TLS fingerprint. chrome by default for Reality |
alpn | Comma separated |
pcs, ech | Certificate pinning and ECH for TLS |
vcn, cs | Verify the certificate by another name and TLS cipher suites |
x_padding_bytes | XHTTP padding size, for example 100-1000 |
pbk, sid, spx, pqv | Reality parameters |
flow | xtls-rprx-vision |
host, path | WebSocket, HTTPUpgrade, XHTTP |
headerType | http for TCP, header type for mKCP |
serviceName, authority, mode | gRPC and XHTTP |
extra | XHTTP JSON |
fm | FinalMask JSON |
Hysteria2
| Parameter | Value |
|---|---|
obfs=salamander, obfs-password | Salamander obfuscation |
host:443,20000-50000 or mport | Port hopping: the core moves to another port from the list every 30 seconds. Set the interval with hop-interval |
up, down (upmbps, downmbps) | Link speed in Mbit/s: turns on Brutal congestion control |
sni, alpn, pinSHA256 | Server name, ALPN (h3 by default), certificate pinning |
insecure=1 does not work: Xray 26 removed unverified TLS. For a self-signed certificate pass pinSHA256.WireGuard
| Parameter | Value |
|---|---|
user part of the link or privatekey | Client private key |
publickey, presharedkey | Server keys |
address (ip) | Client addresses, comma-separated. Without a mask /32 or /128 is added |
reserved | Three bytes: a list 1,2,3 or a base64 string |
keepalive, mtu, allowedips | Keepalive in seconds, MTU, allowed networks |
XHTTP and multiplexing
Mux.Cool does not work with XHTTP, so with mux-enable or Mux on in settings nya gives XHTTP its own multiplexing, xmux: several requests over one connection. If the link has extra with xmux, your values are used.
Name and country
The name comes after #. A flag emoji sets the country icon. Without a flag, the country is guessed from the name.
A caption under the name can be set in two ways:
#🇳🇱 Netherlands|Fast
#🇳🇱 Netherlands?serverDescription=RmFzdA==Keep
fp=chrome unless you have a reason. Changing the fingerprint on every server at once can cut off whole mobile carriers. Test a new value on one server first.