RU

Premium parameters

Headers and body lines for services with a Provider ID.

Pass them as headers or #name: value lines in the body. Headers take priority. Flags: 1 or true turns on, other values turn off, a missing parameter keeps the user's choice.

Free for every subscription: the Transport, Noises, Per-app routing and Server address via DoH sections, plus routing-enable, ping-type, check-url-via-proxy, subscriptions-sort-type. Everything else needs a Provider ID.

Look and messages

ParameterValueWhat it does
sub-info-texttext, base64:Banner above servers
sub-info-color#d9a26aBanner border color
sub-info-button-text, sub-info-button-linktext, URLBanner button
sub-expire, sub-expire-button-linkflag, URLBanner 3 days before expiry
notification-subs-expireflagReminders 3 days, 1 day, 12 hours and 1 hour before expiry. 0 turns them off
premium-urlURLPremium button on the subscription card
color-profileJSON, base64:, resetcolorsApp colors, see Themes below

Subscription address

ParameterValueWhat it does
fallback-urlURLBackup address if the main one fails
new-urlURLReplace the subscription address for the user
new-domaindomainReplace only the domain
hide-settingsflagServer settings and links are hidden by default. 0 shows them to users (works without a Provider ID). See hidden subscriptions

App behavior

ParameterValueWhat it does
subscription-always-hwid-enableflagForbid turning HWID off
subscription-autoconnectflagConnect on launch
subscription-autoconnect-typelastused, lowestdelay, randomWhich server to pick. lowestdelay and random pick only from your subscription, even if the user has several. lastused keeps the last server and turns off moving to a faster one. A server the user tapped holds until they disconnect
subscription-ping-onopen-enabledflagTest ping on launch
subscription-auto-update-enable0Turn off update on launch and by timer
subscriptions-sort-typeping, alphabet, withoutServer order
ping-typeproxy, tcpPing method
check-url-via-proxyURLURL for the proxy ping
change-user-agentstringUser-Agent for subscription requests
routing-enable0Turn routing off: all traffic through the server
sniffing-enableflagDomain sniffing

Transport

ParameterValueWhat it does
fragmentation-enableflagTLS fragmentation
fragmentation-packetstlshello, 1-3Which packets to split
fragmentation-length10-20Fragment length, bytes
fragmentation-interval0, 10-20Delay, ms
mux-enable, mux-tcp-connections, mux-xudp-connectionsflag, numberMux. Not applied with XTLS Vision and XHTTP
no-limit-enabledflag4 MB connection buffer for all servers
no-limit-xhttp-enabledflagSame, XHTTP only
No Limit uses memory. The buffer is allocated per connection. Start with no-limit-xhttp-enabled and test on low-end phones.

Noises

ParameterValueWhat it does
noises-enableflagSend noise packets
noises-typerand, str, hex, base64Data type
noises-packet-typearray, str, hex, base64Same, alternative name
noises-packetstringData. Several values separated by commas. For rand: length 1-1024
noises-rand1-1024Add random data of this length
noises-delay10-20Delay between packets, ms
The Xray core sends noises only for UDP: Hysteria2, mKCP and WireGuard servers. On TCP with Reality the parameter does not change traffic.

Per-app routing

ParameterValuePlatform
per-app-proxy-modeon, proxy, bypass, offAndroid
per-app-proxy-listcom.a,com.bAndroid
per-app-proxy-enable0 turns offAndroid
per-app-proxy-mode-windows, …-linux, …-macosas aboveDesktop
per-app-proxy-list-windows-set, …-linux-set, …-macos-setdiscord.exeDesktop
per-app-proxy-list-windows-add, …-linux-add, …-macos-addfirefoxDesktop

on and proxy send only the listed apps through the VPN, bypass takes the listed apps out of it. While the parameter is set, it overrides the user's choice.

App screen

ParameterValueWhat it does
lite-modeflagSimple screen: a big button, the selected server and links
logo-urlhttps URLYour logo instead of nya in the header
bot-url, channel-urlURLButtons on the simple screen
admin-hwidscomma-separated HWIDsThese devices see hidden settings and the subscription address

Settings from the cabinet

Any parameter can be turned on in the cabinet instead of subscription headers. It reaches apps within about an hour and overrides the header, so you can change settings for all users without touching your panel.

Routes and network

ParameterValueWhat it does
autoroutinghttps URLRoutes from a URL: JSON or Base64, updated with the subscription
exclude-routesaddresses and subnetsGo outside the VPN
resolve-address, host-headerIP, domainDomain fronting for the subscription request when the main address fails. Premium
tun-enable, proxy-enableflagDesktop mode: VPN or local proxy
socks-auth-mode, socks-auth-user, socks-auth-passwordmanualLocal SOCKS login and password
http-auth-mode, http-auth-user, http-auth-passwordmanualLocal HTTP proxy login and password
custom-tunnel-configJSONXray tunnel settings on desktop

hide-vpn-icon is accepted but has no effect: Android and Windows do not allow hiding the VPN icon.

Server address via DoH

ParameterValueWhat it does
server-address-resolve-enableflagResolve the server address through DoH before connecting
server-address-resolve-dns-domainURLDoH server, RFC 8484
server-address-resolve-dns-ipIPDoH server IP, to avoid asking the system for its address

If several addresses come back, the fastest one is used. The domain stays in SNI. Not applied to JSON subscriptions. If DoH fails, the connection goes as usual.

HTTP
server-address-resolve-enable: 1
server-address-resolve-dns-domain: https://common.dot.dns.yandex.net/dns-query
server-address-resolve-dns-ip: 77.88.8.8

Themes

color-profile sets colors while the subscription is the main one. Common key names are understood.

KeyAliasColors
accentbuttonColorButton and accents
onAccentbuttonTextColorText on accent
backgroundbackgroundColors[0]Background
surface, cardserverRowBackgroundColorCards
textPrimaryserverRowTitleTextColorMain text
textSecondaryserverRowSubTitleTextColorCaptions
HTTP
color-profile: {"accent":"#FF6B6B","background":"#0F0F14","surface":"#1A1A22","textPrimary":"#FFFFFF","textSecondary":"#9A9AA5"}

Color: #RRGGBB or #RRGGBBAA. resetcolors restores the default colors.

Full example

HTTP
providerid: nya3fa94c0d1e22
sub-info-text: base64:U2FsZSAyMCU=
sub-info-button-text: Open
sub-info-button-link: https://example.com/sale
fallback-url: https://backup.example.com/sub/abc
per-app-proxy-mode: bypass
per-app-proxy-list: com.bank.app
fragmentation-enable: 1
fragmentation-length: 10-20
hide-settings: 1

The full list is on the compatibility page.