A router key is a set of VLESS lines that you create in your account and add to a proxy package on your router: Podkop or Passwall on OpenWrt, XKeen on Keenetic. Which traffic goes through the VPN, a whole device or only chosen sites, is up to the package's own settings; no app is needed on each device.
This article covers what a router key is, how to create it and where to add the lines in each of the three packages. If your router doesn't support these packages, see the general guide to a VPN on a router and the VPN for a router page.
What a router key is
A router key is a set of vless:// lines, one for each location you picked when creating the key. The key-creation screen shows how many locations you can pick. With several lines in Podkop («URLTest»), the router switches to a working location by itself if one doesn't answer.
- One place in your plan. Each key takes one device place, however many gadgets are connected to the router.
- An active VLESS subscription is needed. You create the key in the bot, in the mini app or on the website.
- Free plan. You can create a key if the VLESS place isn't taken by a phone or another key. The key then has only the free locations, and the router's traffic counts toward the monthly limit.
Don't forward the key's lines: anyone who has them can connect with your key. If the lines got into someone else's hands, delete the key and create a new one.
How to create a router key
Step 1. Open the keys section
- In the bot: «Profile» → «My subscriptions» → the VLESS subscription → «Router keys».
- In the mini app: «Home» → the VLESS card → «Router keys».
- On the website: «Connections» → the VLESS card → the «Router keys» section.
Step 2. Create the key
- Tap «Create a key».
- Tick the locations and tap «Done».
Step 3. Copy the lines
Copy the key's lines. If a location says «connecting…», wait a minute. You can open the lines again at any time: in the bot, with the key's button in the list; on the website, with «Show lines».
OpenWrt: Podkop
Podkop is a proxy package for OpenWrt. It needs OpenWrt 24.10 or newer and about 25 MB of free space: it won't fit on routers with 16 MB of flash.
Step 1. Install Podkop
Podkop isn't in the standard OpenWrt package list. It installs with one command, following the guide at podkop.net/docs/install.
Step 2. Add the key's lines
- In Podkop's settings, open a section and set «Connection Type» to «Proxy».
- For one line, set «Configuration Type» to «Connection URL»; for several, to «URLTest», and Podkop picks a working one itself.
- Paste the key's lines, save the settings and restart Podkop.
- Which traffic goes through the VPN is set by the lists in the section's settings. To send a whole device through the VPN, add its IP address to «Fully Routed IPs».
OpenWrt: Passwall
Passwall isn't in the standard OpenWrt package list either. Download the files for your OpenWrt version from the project's Releases page: github.com/Openwrt-Passwall/openwrt-passwall/releases. OpenWrt 23.05–24.10 needs the .ipk file, 25.12 and newer the .apk.
After installing, add each line of the key as a separate server, save the settings and restart Passwall.
Keenetic: XKeen
XKeen is for people comfortable with the router's command line. It needs a USB flash drive, so first check the model code on the router's label (KN-… or NC-…) and make sure it has a USB port for storage, not just for a modem.
XKeen can't be installed on models without a USB port for a flash drive. For those routers there's AmneziaWG — on Pro, with KeeneticOS 4.2 or newer, when a server is available. On phones and computers, a VLESS app works.
Step 1. Prepare the router
What you need before installing:
- A USB flash drive, formatted as EXT4.
- The «OPKG support» component and Entware installed.
- Encrypted DNS (DoT or DoH) set up on the router.
Step 2. Install XKeen
Connect to the router over SSH: the router's address, user root, port 222 if the «SSH server» component is installed, otherwise 22. The install commands are on the «Installation order» page of the XKeen wiki: github.com/jameszeroX/XKeen/wiki.
Step 3. Add the key
Under each line of the key there's an «XKeen file» button, in the bot, in the mini app and on the website. The file holds one location:
- Download the file
04_outbounds.json. - Copy it to the router into
/opt/etc/xray/configs/, replacing the old one. - Run
xkeen -xtest: the check should pass without errors. - Run
xkeen -restart.
What goes through the VPN is what XKeen's rules in 05_routing.json send there; the rest goes directly. For another location, take the file under its line and replace it.
On models with a mips or mipsel processor, such as the Giga KN-1010 and KN-1011, XKeen may run slowly.
When the key's lines change
The key's lines don't update on the router by themselves. When they change, for example because a server's address changed, we send the new lines in Telegram, or by e-mail if Telegram isn't linked. Delete this key's old lines on the router, add the new ones, save and restart the proxy.
If you get a message that one of the key's locations isn't answering, tap «Change locations» and pick another. The lines of the locations you keep stay the same, and new lines appear for the ones you add.
Frequently asked questions
How many places in my plan does a router key take?
One device place, no matter how many devices are connected to the router. If all places are taken, delete a device or key you don't need, or pick a plan with more devices.
Can I create a key on the free plan?
Yes, if the VLESS place isn't taken by a phone or another key. The key will have only the free locations, and the router's traffic counts toward the free plan's monthly limit.
How do I change the locations in a key?
Open the key, tap «Change locations», tick the ones you need and tap «Done». New lines appear for the added locations — add them to the router.
What if my router has no Podkop, Passwall or XKeen?
Connect the router through AmneziaWG (on Pro, when a server is available) if your firmware supports it — see AmneziaWG on a router in the docs and the general guide to a VPN on a router. Or install a VLESS app on the devices themselves.
Bottom line
A router key connects your home network to the VPN through Podkop, Passwall or XKeen with no app on each device, and you create it in a minute in the bot, the mini app or on the website.



