| Link | What it does |
|---|---|
nya://add/https://sub.example.com/abc | Adds a subscription |
nya://add/https%3A%2F%2Fsub.example.com%2Fabc | Same, encoded address |
nya://import/… | Same |
nya://install-config?url=… | Same |
nya://crypt1/… | Adds an encrypted subscription |
vless://…, vmess://…, trojan://…, ss://…, hysteria2://… | Adds a single server. On Android such links open in nya if the user picks it |
If the subscription already exists, the app offers to update it. Before the first download the user sees a data notice.
nya:// scheme works on Android and Windows. On Linux, show a copy button: the app can paste from the clipboard.Button with a fallback
Browsers may silently ignore the link if the app is not installed. Offer a download.
<a id="add" href="nya://add/https://sub.example.com/abc">Add to nya</a>
<a href="https://nyaclient.com/en/">Download nya</a>
<script>
document.getElementById("add").addEventListener("click", () => {
setTimeout(() => {
if (!document.hidden) location.href = "https://nyaclient.com/en/";
}, 1500);
});
</script>Direct file links
| File | Address |
|---|---|
| Android | https://nyaclient.com/dl/nya-arm64.apk |
| Android, older devices | https://nyaclient.com/dl/nya-armv7.apk |
| Windows | https://nyaclient.com/dl/nya-windows-setup.exe |
| Linux | https://nyaclient.com/dl/nya-linux-x64.tar.gz |
| Current versions | https://nyaclient.com/config.json, platforms field |
Send to TV
On a phone, the subscription card has a TV icon. On the TV, open nya, press plus and choose “Send from phone”: a QR code and a 9-character code appear. Scan it or type it on the phone. The devices can be on different networks.
The phone and the TV agree on a one-time key with SPAKE2 (RFC 9382, P-256) and the subscription is encrypted with AES-256-GCM. The code is a server address (3 characters) plus a password (6 characters); in the QR the password is 128 bits. The server never knows the password and cannot guess it from its data: each code accepts a single reply, and after a wrong reply the TV shows a new code right away. A code lives up to 10 minutes. Without internet the same exchange runs directly over the home network. Keys are discarded after the transfer. Hidden subscriptions are not sent. Desktop apps cannot send but can receive.
Control the VPN with a link
| Link | What it does |
|---|---|
nya://connect | Connect to the selected server |
nya://connect/London | Connect to a server by name |
nya://disconnect | Disconnect. A link from a website or another app asks for confirmation first: a page cannot silently turn the VPN off |
nya://toggle | Toggle. Turning off also asks for confirmation |
QR code
Encode the subscription address or a nya://add/… link. The scanner is behind the plus button in the app.