Remnawave is the main panel nya is tested with. The subscription works with no setup. Here is how to make it perfect.
1. Subscription settings
| Remnawave field | Header | In nya |
|---|---|---|
| Profile Title | profile-title | Subscription name in the card and list |
| Update Interval | profile-update-interval | Auto-update period, hours |
| Support Link | support-url | Support button and link on placeholder messages |
| Profile Web Page URL (toggle) | profile-web-page-url | Subscription page: website button and fallback target of “Renew” |
| Happ Announce | announce | Announcement above the server list, shown in full |
| Happ Routing | routing | “As in subscription” routing mode |
| — (computed) | subscription-userinfo | Traffic, term, Renew button 3 days before the end, reminders at 3 days / 1 day / 12 h / 1 h |
| Custom Response Headers | any | Your own headers: renew-url, hide-settings, providerid… |
2. Response Rules
nya isn't in Remnawave's built-in client list, so without rules it gets Base64 links (XRAY_BASE64) — the recommended option. To control the response or add nya-only headers, create a rule in Subscription → Response Rules:
{
"name": "nya",
"enabled": true,
"operator": "AND",
"conditions": [
{ "headerName": "user-agent", "operator": "STARTS_WITH", "value": "nya/", "caseSensitive": false }
],
"responseType": "XRAY_BASE64",
"responseModifications": {
"applyHeadersToEnd": true,
"headers": [
{ "key": "renew-url", "value": "https://t.me/my_vpn_bot?start=renew" },
{ "key": "hide-settings", "value": "1" }
]
}
}- Rules are evaluated top to bottom; put the nya rule above catch-all rules such as “everything else — BROWSER”.
applyHeadersToEnd: truekeeps your headers from being overwritten by External Squads.- Use
XRAY_JSONonly if you need custom Xray templates for nya. Unknown geosite/geoip categories are removed before start. Avoid big geo lists in templates: the iPhone tunnel has a memory cap. MIHOMO/CLASHalso work; servers Xray lacks run through the Mihomo core on Android and desktop.
3. Balancers and JSON
In link subscriptions Remnawave replaces balancers with a domainless stub. nya detects it and fetches …/json itself, keeping headers from the main response. Nothing to configure.
4. Device limit (HWID)
nya always sends x-hwid, x-device-os, x-ver-os, x-device-model; users can't disable or change them. Enable HWID Device Limit; when the limit is reached Remnawave sends x-hwid-max-devices-reached: true and nya shows “Device limit reached” instead of servers.
5. Hosts and names
The host remark is the server name; leading flag emoji become nya's country icon. Add a subtitle after “|”: Germany | 10 Gbps. Hosts at 0.0.0.0/127.0.0.1 are placeholders shown as message rows that open support-url.
6. Renew button
Shown 3 days before the end or at 90 % traffic. Target: renew-url, else profile-web-page-url, else support-url.
7. Check
curl -sS -D - -o body.txt \
-A "nya/2.8.5/Android/722837263881" \
-H "x-hwid: 0123456789abcdef0123456789abcdef" \
-H "x-device-os: Android" -H "x-ver-os: 14" -H "x-device-model: Pixel 8" \
https://sub.example.com/sub/abc123Expect 200, profile-title, subscription-userinfo and Base64 or JSON in the body. HTML means a BROWSER rule matched first. See checking a subscription.