Skip to content
GitHubSupport

Subscription page and apps

A subscription link opened in a browser, or in Telegram as a Mini App, shows the subscription page: expiry, traffic, the “Separate limits” block (server groups with a limit of their own), devices and the “Connect a device” section. The platform is detected automatically, the first app in the tab is marked “Recommended”, and the “Add” button opens the subscription straight in the app.

Further down the page: a step-by-step “How to connect” guide, the link itself and a QR code for another device, the “Contact support” button (the link is set in Settings → Subscription → Support), “Open in Telegram”, and a “My devices” section if device binding is on: there a device can be unbound or given a name of its own.

Platform Apps on the page
iPhone Happ, INCY, Streisand, v2RayTun
Android Mikan, Happ, ClashFest, INCY, v2RayTun, Hiddify
Windows Kabosu, Koala Clash, SlothClash, Hiddify, Clash Verge Rev
Mac Kabosu, Clash Verge Rev, SlothClash, Happ, Hiddify
Linux Kabosu, SlothClash, Clash Verge Rev, Hiddify

The subscription recognizes the app by its User-Agent header and serves the matching format:

  • Clash apps on mihomo (Mikan, Kabosu, Koala Clash, Clash Verge, FlClash, ClashFest, SlothClash and others) and Stash get a Clash YAML profile with groups and routes.
  • Xray apps (Happ, v2RayTun, INCY, v2rayNG) and sing-box apps (Hiddify, Karing) get a list of links.
  • A browser gets the subscription page.

Each app gets only the protocols it can run, see the table in presets. You can also set the format by hand with the parameter ?format=clash, uri or html.

Apps refresh the subscription hourly, which is how new ports and keys reach clients on their own.

Settings → Subscription:

  • Service name: your brand on the subscription page and in apps.
  • Main group (default “VPN”) and Auto select (“Auto”): group names in Clash apps.
  • Default TLS fingerprint for all protocols.
  • Support: a Telegram or website link.
  • Devices: binding a subscription to devices, see Plans and users.
  • Subscription port: see Domain and certificates.
  • A domain of its own for subscriptions (since 0.5.2.0): see A domain of its own for subscriptions.
  • When a subscription does not work (since 0.5.2.0): an entry in place of the servers, see below.

The Subscription name in apps field sets the profile name that Happ, v2RayTun and Hiddify show. Clash apps (Koala Clash, Clash Verge, FlClash) use it to name the profile. Empty: the service name is used. You can insert variables into the field:

Variable What it becomes
{brand} the service name
{name} the user’s name
{date} expiry date, DD.MM.YYYY in Moscow time; ∞ if unlimited
{days} days left; ∞ if unlimited
{used} traffic used
{left} traffic left; ∞ if unlimited
{total} traffic limit including packages; ∞ if unlimited
{devices} how many devices are bound, “2/3” with a limit
{tariff} the user’s plan name; empty if there is no plan (since 0.5.2.0)

For example, {brand} · until {date} becomes “mikan · until 10.11.2026”. An unknown word in curly braces is left as is, and the result is capped at 200 characters.

The Announcement and Announcement link (https:// or tg://) are shown inside Happ, v2RayTun and ClashFest. The variables from the table above work here too.

When the term or traffic is over or the subscription is turned off, an app used to show every server, but none of them connected. Now Settings → Subscription has a When a subscription does not work card. The Show a notice in place of the servers switch replaces the list of servers with one entry that explains what happened and what to do.

While the switch is off, the client sees every server, as before. On, it gives an entry by the reason:

  • the term is over: the subscription must be renewed in the bot;
  • the traffic is used up: buy more traffic or renew in the bot;
  • the subscription is turned off: write to support.

The Own text field replaces these words with yours. Empty: the words by the reason. The variables from the table above work in the text, for example {tariff}, up to 120 characters. An example: ⛔ Plan {tariff} has ended, renew in @your_bot. The subscription page in a browser does not change: it still shows the term, traffic and devices.

The {tariff} variable works in the subscription name and the announcement too, not only in the notice.

Subscription links can be built on a separate domain with its own certificate, see A domain of its own for subscriptions.

The Your brand in the apps switch: ClashFest (Android) and SlothClash (Windows, macOS, Linux) show your name, the user’s name, your logo and color, plus links to support, the bot and renewal. The logo is an https link to a square PNG, WebP or JPEG image, 256×256, up to 512 KB. Other apps don’t read these fields.