nya understands all three 3x-ui subscription server formats. Just give the user the subscription link.
| 3x-ui format | Path | What nya does |
|---|---|---|
| Links (base64 or text) | subPath | VLESS, VMess, Trojan, Shadowsocks, Hysteria2, WireGuard servers. TUIC, AmneziaWG and MTProto are skipped |
| JSON (Xray) | subJsonPath | Full configs go to the core as is: a single object or an array, flat settings |
| Clash / Mihomo | subClashPath | Proxies, auto-select groups and rules, see Mihomo |
Headers
nya reads Subscription-Userinfo (traffic and term, for the term ring, the “Renew” button and reminders), Profile-Title, Profile-Update-Interval, Support-Url, Profile-Web-Page-Url and Announce.
Server names
By default 3x-ui names servers {{INBOUND}}-{{EMAIL}}|📊{{TRAFFIC_LEFT}}|⏳{{DAYS_LEFT}}D. nya shows only the inbound name: the client email and the traffic and term marks are removed, since the subscription card already shows them.
|: {{INBOUND}}|Fast. Segments starting with 📊, ⏳, ✅, 🚫 or ⛔ are not treated as captions.JSON and routing
3x-ui bakes its routing into the JSON subscription. nya ships trimmed rule files: geosite:private, category-ru, ru-available-only-inside, cn and geoip:private, ru, cn. Rules with other categories are removed before start; the rest work as intended. This keeps the core from failing with “Could not load routing rules”.
The “Happ” tab and Premium
3x-ui sends its “Happ” tab settings (banner, colors, per-app, TUN, autoconnect) only to the Happ client. nya still gets routing, Hide-Settings and the common headers. A Premium service sets everything else in the nya cabinet: parameters apply to the subscription without touching the panel.
Server settings are hidden by default
Users see the protocol, address and latency, but not the server editor or its link. To show them, send hide-settings: 0 in the subscription response, for example via nginx in front of the panel: add_header hide-settings 0 always;
Server description
New 3x-ui builds add the host description (?serverDescription=) only for some clients. If it is missing, append it to the name after “|”: Germany | 10 Gbps — nya shows the second part as a subtitle.
The “Renew” button
In 3x-ui “Subscription → Profile”, choose a profile page, built-in or your own site. Its address arrives in Profile-Web-Page-Url, and the “Renew” button leads there when there is no renew-url.
x-ui (alireza0, vaxilu)
Legacy x-ui serves Base64 links with Subscription-Userinfo — nya shows servers, traffic and term. These panels don't send names, routing or renew-url: add headers via nginx as for Marzban, or upgrade to 3x-ui.