Marzban, 3x-ui or Remnawave subscription: how to add it to a VPN client

Marzban, 3x-ui and Remnawave are panels that run Xray servers: the admin creates a user, and the panel gives that user one personal https:// subscription link. Paste it into a VPN client as a subscription, not as a single server. The client downloads the server list, refreshes it by itself and, if the panel sends them, shows the traffic used and the days left.

Updated

On this page

What these panels are

Marzban, 3x-ui and Remnawave are free, open-source web panels for Xray, the server program behind VLESS, VMess, Trojan and Shadowsocks. The admin sets up the protocols on the servers and creates users, each with a traffic limit and an expiry date. The panel then gives every user a personal subscription link with all the servers that user may connect to. Other panels work the same way.

Many VPN sellers run their service on one of these panels: if you bought access in a Telegram bot and got a link that starts with https://, it most likely came from one. You never open the panel itself; the link is all you need.

What the link looks like

  • Marzban — https://domain/sub/ followed by a long token.
  • 3x-ui — the panel's subscription service, by default on port 2096: https://domain:2096/sub/ followed by the client's subscription ID. Without a certificate the address starts with http://.
  • Remnawave — the domain the admin set for subscriptions, followed by the user's short ID.
  • Bot buttons — “Add to Happ”, “Add to Hiddify” and the like wrap the same https:// address for one particular app.
  • It is personal — whoever has the link uses your traffic and your device slots. Don't post it in chats.

What the link returns

The same address answers differently depending on who asks. A client app gets the list of servers: most often vless://, vmess://, trojan:// and ss:// links packed in base64, the format v2rayN and v2rayNG read. Some panels give a Clash or sing-box config to apps that ask for one, or an Xray JSON. A browser often gets a web page instead, with the user's traffic, the expiry date and “Add to…” buttons for popular apps.

Along with the list, panels send headers that a client can show. subscription-userinfo carries the traffic and the term, profile-update-interval says how often to refresh, in hours, and some panels also send the subscription's name, a support link and a message for users. The traffic header holds four numbers:

  • upload and download — the bytes sent and received so far.
  • total — the plan's traffic limit in bytes; 0 means no limit.
  • expire — the end of the term as a Unix time; 0 or no value means no end date.

Where to find your link

  1. 1

    In the bot or chat where you bought access

    Sellers usually send the subscription link right after payment, often with a QR code, and keep it under a button for your subscription in their bot.

  2. 2

    On the subscription page

    If you were given a page rather than a bare link, open it: it shows your traffic and term and has a button that copies the subscription link. That is the address for the app; often it is the same address the page opened on.

  3. 3

    In the panel, if you are the admin

    In Marzban, the user's row has buttons that copy the subscription link and show its QR code. In 3x-ui, check that the subscription service is on in the panel settings; then the client's info shows its subscription link and QR. In Remnawave the link is on the user's card.

How to add it to a client

  1. 1

    Copy the whole link

    From https:// to the very end, with no spaces or line breaks.

  2. 2

    Add it as a subscription

    Some clients recognise a subscription by themselves. In others, look for an item for subscriptions rather than adding a single server. The client downloads the list, and you pick a server or let the client find the fastest.

  3. 3

    Leave the refreshing to the client

    It downloads the list again on a schedule, the panel's or your own. When the admin adds or removes a server, your list changes by itself.

Look inside a subscription yourself

To see what a panel gives an app, ask for it as a v2ray client would, for example with -A "v2rayN/7.0": many panels pick the format by the User-Agent. Put your link in place of SUBSCRIPTION_URL.

Windows (PowerShell)
curl.exe -s -D - -o NUL -A "v2rayN/7.0" "SUBSCRIPTION_URL"

Prints only the headers. Look for subscription-userinfo and profile-update-interval.

Linux (terminal)
curl -s -A "v2rayN/7.0" "SUBSCRIPTION_URL" | base64 -d

Prints the server list, one link per line. If base64 says the input is invalid, the panel already sent plain text: run the command without | base64 -d.

  • Another format — the subscription converter at /tools/subscription/ turns links, base64, Clash / mihomo and sing-box JSON into each other, right in the browser. It doesn't download anything by address: paste the content the command printed.
  • A converted copy doesn't refresh — when the admin changes servers, it goes stale. Wherever you can, add the link itself to a client that reads the panel's format.

If it won't add or stops updating

  • A web page instead of servers, or an error that the link opened a web page

    CauseThe address of a page or of the panel itself was copied, not the subscription

    What to doOn the subscription page, copy the subscription link with its button and paste that

  • Error 404, or no subscription found at this link

    CauseThe admin reset the link or removed the user

    What to doAsk the seller or admin for a fresh link

  • A message that the device limit is used up

    CauseThe panel counts devices, as Remnawave can

    What to doRemove an old device in the bot or on the account page, then refresh

  • The address starts with http://

    CauseThe subscription service runs without a certificate, which happens on 3x-ui

    What to doAsk the admin for an https:// address: over http the server list travels in the open

  • 0 days left or the traffic used up, servers stop connecting

    CauseThe term or the traffic of the plan is over, and the panel turned the user off

    What to doRenew with the seller; the link usually stays the same

  • An encrypted happ://crypt… link

    CauseThe link is made for one app only

    What to doTake the plain https:// link from the subscription page

In Veli

A panel subscription is a group in Profiles

In Veli: Profiles → Add, paste the link and press the button under the field, or choose “Provider subscription”. Marzban, 3x-ui and Remnawave links go in as they are: plain link lists, base64, Clash / mihomo, Xray JSON and “Add to…” button links are all read. The servers become a separate group in Profiles. Only https:// addresses are taken: a server list should not travel in the open.

If the panel reports them, the group header shows the traffic used and the days left, the panel's message shows under the header, and its page and support are in the “⋯” menu. The list refreshes as often as the panel asks or as set in “Subscription settings”; the refresh icon in the header does it at once. For panels with a device limit the app sends a random number for this installation, never the computer's name.

FAQ

Where do I find my Marzban subscription link?

In the bot or chat where you bought access, or on your subscription page. If you run the panel yourself, the user's row has buttons that copy the link and show its QR code.

Why does the client show traffic and days left?

The panel sends them in the subscription-userinfo header with every download. The client shows only what the panel reports, so if the numbers are missing, the panel doesn't send them.

Will new servers from the admin appear by themselves?

Yes, with the next refresh. Servers that disappeared from the panel are removed, and in Veli the ones with the same name and address keep your favorite mark and groups.

I run a panel myself. Do my users need anything special?

No, they add the same subscription link. Veli also has its own panel for providers that can take over clients from Marzban, 3x-ui and Remnawave, but nothing here requires it.

Paste the panel link once

Veli reads Marzban, 3x-ui and Remnawave subscriptions, shows traffic and days left in the group header and refreshes the list as often as the panel asks.