Skip to content
On this page
On this page

Provider license

For providers2.2.02.1.0Updated

A license turns on branding, hiding, routing, app management and pushes in Wrabbit for subscriptions served from your domain. It's a signed wrab-license token: the panel returns it in the subscription response, and the client verifies it on its own, without contacting our servers.

#What the license includes

The features are written into the token itself. A license from the dashboard includes all five by default. What works without a license — where to start.

FeatureWhat it enablesIn 2.1.0
brandThe wrab-logo logo, the announce announcement, description, website (profile-web-page-url), account and support (support-url) buttons, Happ and INCY info and expiry bannersLogo, announcement, website and support buttons
hidehide-settings — server details without addresses, keys, QR codes or editing; hide-url — the subscription link can't be viewed or copied; hide-check — no “Subscription check” screenOnly hide-settings
routingThe Happ routing profile: routing, routing-enable, INCY autorouting, routing-geo-update-intervalrouting, routing-enable
appApp and network management: new-url, fallback-url, wrabbit-service-checks, auto-connect, ping and sorting, reminders, fragmentation-*, noises-*, mux-*, exclude-routes, include-all-networks-enable, DNSNo
pushPushes to your subscribers via the API and Remnawave webhooks — PushesNo

The client ignores a directive whose feature the token lacks; the rest of the subscription works as usual. “Subscription check” lists such directives under “Unverified directives”. All directives by feature are in Happ and INCY directives.

#How it works

A license is a signed token bound to the subscription domain and a term. Pass it in the wrab-license response header: in Remnawave, in the Wrabbit rule and, while the App Store has 2.1.0, in customResponseHeaders (setup steps 2 and 3). The client verifies the signature with built-in Ed25519 keys and doesn't contact our servers to do it.

A genuine, unexpired token for the responding domain enables its features. The license is checked when a subscription is fetched. A failed fetch or fallback without a trusted license keeps previous settings; expiry does not turn them off immediately. New directives are applied after a successful trusted update. Previously enabled hiding is preserved so the subscriber configuration is not exposed.

#Token as a body line2.2.0

If the panel can't set response headers, pass the token as a #wrab-license: line in the subscription body. The header wins over the body line. Body lines aren't read in a JSON response, and 2.1.0 takes the token only from the header.

Subscription bodytext
#wrab-license: <WRAB_LICENSE>
#profile-title: base64:RXhhbXBsZSBWUE4=
#support-url: https://t.me/YOUR_SUPPORT
vless://uuid@nl1.example.com:443?type=grpc&security=reality&pbk=KEY&sni=cloudflare.com#NL-1

#How to get a license

  1. #Sign in to the provider dashboard

    Open the provider dashboard. The main sign-in method is Telegram: start in your browser, open the bot and confirm its request. If the bot is not enabled, the form offers legacy email sign-in. A bot message opens an existing session or asks for a new sign-in confirmation; forwarding a link never changes the browser account.

  2. #Apply if the dashboard offers the new profile

    Admission to the new monthly refresh profile is reviewed manually. Submit your expected device count and wait for a response. No first invoice is issued before approval; after approval, the dashboard shows the agreed estimate and exact amount. This is not a count of already observed devices. Existing periods and issued invoices retain their terms.

  3. #Add the subscription domain

    Enter the domain the subscription is served from (SUB_PUBLIC_DOMAIN in Remnawave) without https://, a path or a port, for example sub.example.com. The license works only on this domain, and it can't be changed after payment. If the subscription answers from several hosts, see CDNs and mirrors.

  4. #Verify the domain with a TXT record

    The dashboard shows a record like _wrabbit-push.sub.example.com TXT "wrabbit-push=…". Publish it in DNS, and only then press the check. The same record verifies the domain for pushes and the API key; you can delete it after the check.

    A domain belongs to one provider. If the dashboard says it's taken by another provider but the domain is yours, contact support: transfers are done manually.

  5. #Pay for a term

    Check the calculation basis, amount and exact dates in the dashboard. The new profile's first invoice uses an agreed device estimate; later invoices use an eligible completed month. One shared provider period is paid: another verified domain joins it without a second charge. Do not repeat a payment already received. B2B payment through 2328 is cryptocurrency only; USD is the invoice nominal.

  6. #Take the token

    The “Подключение” (Connect) section shows a ready Wrabbit rule with the token and the lines for customResponseHeaders. Next — Set up Remnawave in 15 minutes.

#Device billing and a shared period

The prepared monthly refresh profile has a base rate starting at USD 0.10 per counted device and a USD 150 provider minimum. Its base period formula is max(USD 150, USD 0.10 × N), including up to 1,500 devices in the minimum. The profile is enabled separately; updating this documentation does not change the current tariff. The dashboard shows your actual terms, calculation basis and saved invoice amount.

The new method counts a device after a successful subscription import or refresh with a valid license in a UTC calendar month, once per provider across all its domains. This does not measure VPN duration, traffic or paying subscribers. It relies on app self-reports after agreement and does not prove a complete device census.

Examples of the new profile's base formula
NPeriod amount
0USD 150
100USD 150
1,500USD 150
1,501USD 150.10
2,500USD 250
  • First admission uses an application and an agreed estimate N. A small provider's first invoice equals the minimum; a larger one follows the base formula using that agreed estimate. The dashboard labels it as an opening-period estimate, not an observed count. This is not a free trial month.
  • Later calculations use an eligible completed UTC calendar month under the new method. Current observations are shown separately and are not an invoice. Reports delayed offline across a month boundary are not moved into the new month or added to a closed calculation; devices may be missed.
  • The previous method — reports on at least two different days — and previous tariffs remain attached to saved calculations and invoices. Legacy reports are a separate reference, not an addition to N under the new method. Tokens without a signed provider identifier do not automatically become new-method reports.
  • Saved calculations and issued invoices do not change with new reports or tariffs. Charges above the minimum are reviewed before payment; the dashboard separates raw observations, approved billable count, amount and review status.
  • The new tariff buys one term at a time, with one paid calculation per month. A repeated request returns the existing invoice or an explanation instead of charging for the same devices twice.
  • One paid period lasts 30 days and covers every provider domain verified with TXT. Its exact dates and token expiry are shown separately from the observation month. Update each domain's token in its panel after renewal. A manual support license without payment does not create a shared paid entitlement.
  • If the count looks wrong, contact support before paying. Push registrations are a reference for review, not an exact device census: users may disable notifications.

#Domain matching

  • The host in the token must match the subscription host exactly: subdomains and suffixes don't count — a token for sub.example.com doesn't work for eu.sub.example.com. Case and port don't matter.
  • 2.2.0 matches the token against the host that answered after redirects, 2.1.0 against the host it requested. With a redirect to another domain, keep the original domain's token in wrab-license — 2.1.0 uses it — and pass the final host's token in wrab-license-alt.
  • The dashboard accepts a host without a scheme, path or port and converts internationalized domains to punycode. Only 2.2.0 understands a token with a path (a license for part of a host), and the dashboard doesn't issue those.

#CDNs, mirrors and a fallback domain2.2.0

If the subscription answers from several hosts, pass the tokens for the other hosts in the wrab-license-alt header — comma-separated, up to 4 tokens, header only. In Remnawave it's a line in the Wrabbit rule's headers:

Remnawave → Response Rules → Wrabbit rule → headersJSON
{ "key": "wrab-license-alt", "value": "<WRAB_LICENSE_CDN>, <WRAB_LICENSE_MIRROR>" },
  • Don't repeat wrab-license in wrab-license-alt: 2.1.0 reads wrab-license as a whole and doesn't know about alternatives.
  • The client takes the token that fits the host that answered: first from wrab-license, then from wrab-license-alt; among those that fit, the v2 format wins.
  • Each token belongs to one domain. On the device tariff, verify an extra domain with TXT and join the active shared period without a second payment. On the legacy tariff, contact support for CDN and mirror terms.
  • Without its own token, a fallback domain (fallback-url) delivers only servers, without branding or directives.
  • Moving to a new domain (new-url): issue a token for the new domain in advance — the old and new domains' tokens must belong to the same provider.

#Renewal

  • Renew the license in the dashboard: “Лицензия” (License) → “Продлить” (Renew). Remaining paid days are kept. The dashboard is in Russian, so section and button names are given as they appear there.
  • Every payment issues a new token. The previous one keeps working until its own expiry unless you replace it. Put the new one everywhere at once: the Wrabbit rule and, while the App Store has 2.1.0, customResponseHeaders and squads.
  • A token's term is the paid term plus the grace days shown in the dashboard. After expiry, the old token no longer verifies directives during a trusted subscription update. Previously saved settings may remain offline, and hiding is preserved in 2.2.0; expiry does not instantly turn off every feature for every subscriber. Replace the token in advance.

#Updating the token automatically

A script fetches the current token with an API key and puts it into the panel. The dashboard issues the wpk_… key: “Лицензия” (License) → “Обновление токена без ручной замены” (token update without manual replacement) → “Выдать ключ” (Issue key). The key is issued for a domain verified with a TXT record and is shown once — keep it like a password. It's the same key as for the push API. Replacing the key disables the previous one immediately.

The domain's current tokenbash
curl -sS https://api.wrab.club/v1/provider/license \
  -H "Authorization: Bearer $WRAB_API_KEY"
ResponseJSON
{
  "dom": "sub.example.com",
  "token": "v1.<base64url(payload)>.<base64url(sig)>",
  "format": 1,
  "kid": "k1",
  "features": ["brand", "hide", "routing", "app", "push"],
  "issued_at": "2026-11-14T10:00:00Z",
  "expires_at": "2026-12-21T10:00:00Z",
  "paid_until": "2026-12-14T10:00:00Z",
  "header": { "key": "wrab-license", "value": "v1.<base64url(payload)>.<base64url(sig)>" },
  "next_check": 86400
}
  • header.value — the token to put into the rule; token has the same value.
  • The current token is the domain's unrevoked, unexpired token with the latest paid term.
  • next_check — in how many seconds to ask again: a day, or an hour when fewer than 8 days remain on the token.
  • The key can also be sent as an X-Wrab-Push-Key: wpk_… header.
  • Errors: 401 push_key_required and push_key_invalid — the key is missing or wrong, 403 provider_inactive, 404 license_not_found — the domain has no valid license, 429 rate_limited. All codes are in API.
Script for Remnawave: token from the API → rule and subscription settings

The script checks every wrab-license for its domain in Response Rules and customResponseHeaders, repairs partial updates and reads the settings back to verify them. Other domains and wrab-license-alt are preserved. A missing global header is added for an already configured domain; another domain's global token is preserved. It works with Remnawave 2.7.4–3.4.8 and needs bash, curl and jq. Run it hourly from cron.

  • WRAB_API_KEY — the wpk_… key from the dashboard.
  • PANEL_URL — the panel address, for example https://panel.example.com.
  • RW_API_TOKEN — a Remnawave panel API token allowed to change subscription settings.
update-wrab-license.shbash
#!/usr/bin/env bash
set -euo pipefail

# Do not enable shell tracing: these variables contain credentials.
test -n "$WRAB_API_KEY" && test -n "$RW_API_TOKEN"
case "$PANEL_URL" in https://*) ;; *) echo "PANEL_URL must use HTTPS" >&2; exit 1 ;; esac
PANEL_URL=$(printf '%s' "$PANEL_URL" | sed 's:/*$::')

license=$(curl --proto '=https' --connect-timeout 10 --max-time 30 -fsS \
  https://api.wrab.club/v1/provider/license -H "Authorization: Bearer $WRAB_API_KEY")

# Decode only to select this domain's headers. The API is trusted over HTTPS;
# the app independently verifies the cryptographic signature.
plan() {
  jq -ce --argjson license "$license" '
    def payload:
      split(".") as $p |
      (if ($p|length)==3 and $p[0]=="v1" then $p[1]
       elif ($p|length)==5 and $p[0]=="v2" then $p[3]
       else error("invalid license format") end) |
      gsub("-"; "+") | gsub("_"; "/") | @base64d | fromjson;
    def domain: try (payload | .dom | ascii_downcase) catch "";
    $license as $l |
    if ($l.dom|type)!="string" or ($l.token|type)!="string" or
       ($l.header.key|ascii_downcase)!="wrab-license" or
       $l.header.value!=$l.token or
       ($l.token|test("^(v1\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{86}|v2\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{86}\\.[A-Za-z0-9_-]+\\.[A-Za-z0-9_-]{86})$"))==false or
       ($l.token|domain)!=($l.dom|ascii_downcase) or
       ($l.token|payload|.exp|type)!="number" or ($l.token|payload|.exp)<=now
    then error("invalid license API response; panel left unchanged") else . end |
    if (.response|type)!="object" or (.response.uuid|type)!="string" or
       (.response.responseRules.rules|type)!="array" or
       ((.response.customResponseHeaders // {})|type)!="object"
    then error("unexpected panel settings; panel left unchanged") else .response end |
    . as $before | ($l.dom|ascii_downcase) as $dom |
    def ours: type=="string" and domain==$dom;
    ([.responseRules.rules[]?.responseModifications.headers[]? |
       select((.key|ascii_downcase)=="wrab-license" and (.value|ours))] | length) as $rules |
    ([((.customResponseHeaders // {})|to_entries[]) |
       select((.key|ascii_downcase)=="wrab-license" and (.value|ours))] | length) as $globals |
    if $rules+$globals==0 then error("configure this domain license in the panel first") else . end |
    .responseRules.rules |= map(
      if .responseModifications.headers then
        .responseModifications.headers |= map(
          if (.key|ascii_downcase)=="wrab-license" and (.value|ours)
          then .value=$l.token else . end)
      else . end) |
    .customResponseHeaders = ((.customResponseHeaders // {}) | with_entries(
      if (.key|ascii_downcase)=="wrab-license" and (.value|ours)
      then .value=$l.token else . end)) |
    # Add the compatibility header only when it cannot replace another domain.
    if ([.customResponseHeaders|keys[]|ascii_downcase|select(.=="wrab-license")]|length)==0
    then .customResponseHeaders["wrab-license"]=$l.token else . end |
    {changed: (.responseRules!=$before.responseRules or
       .customResponseHeaders!=($before.customResponseHeaders // {})),
     patch: {uuid, responseRules, customResponseHeaders}}
  '
}

get_settings() {
  curl --proto '=https' --connect-timeout 10 --max-time 30 -fsS \
    "$PANEL_URL/api/subscription-settings" -H "Authorization: Bearer $RW_API_TOKEN"
}

update=$(get_settings | plan)
if ! jq -e '.changed' >/dev/null <<<"$update"; then exit 0; fi
jq -c '.patch' <<<"$update" | curl --proto '=https' --connect-timeout 10 --max-time 30 -fsS \
  -X PATCH "$PANEL_URL/api/subscription-settings" \
  -H "Authorization: Bearer $RW_API_TOKEN" -H 'Content-Type: application/json' \
  --data-binary @- >/dev/null

verified=$(get_settings | plan)
if jq -e '.changed' >/dev/null <<<"$verified"; then
  echo "Panel did not retain all license updates; check its settings" >&2
  exit 1
fi
echo "wrab-license updated and verified"

The script doesn't touch squad headers: if the token is there too, update it separately. Try the script on a test panel first.

#Why the license didn't work

In 2.2.0, open “Subscription check” — the “Provider verification” section shows the token's status, domain, features and expiry. If the status is “Token present but failed verification”, the “Reason” row says why. The same reasons go to the fetch log as short codes.

“Reason” on screenIn the logWhat to do
“issued for X, subscription answers from Y”rejected domainThe token is for another host: a CDN, mirror or redirect. Pass that host's token in wrab-license-alt or get a token for this domain
“expired …”rejected expiredPut a new token from the dashboard and set up automatic updates
“revoked by Wrabbit”rejected revokedThe token or key was revoked. Contact support
“invalid term: no expiry or longer than the paid period”rejected lifetimeThe token has no expiry or an out-of-rules term. Take the token from the dashboard
“malformed token”, “signature mismatch”rejected format, rejected bad-signatureThe token is truncated or pasted with extra text, such as a leading wrab-license:. Copy it again
“unknown signing key (kid …)”rejected unknown-key …The token is signed with a key this app version doesn't know. Take the token from the dashboard or contact support
“signing key isn’t certified by a Wrabbit root”rejected certificateThe v2 token is signed with a key this app version doesn't trust. Take the token from the dashboard or contact support
“newer format than this version — please update the app”rejected criticalA newer token format: the subscriber needs to update the app
  • Status “None (the panel sent no verification)” — the response has no token. For 2.2.0 check the Wrabbit rule, for 2.1.0 — customResponseHeaders and squads.
  • An “Unverified directives” row means the token lacks a feature; most often it's a token from before 13.11.2026. Get a new one.
  • 2.1.0 has no check screen: compare the panel response with curl -A 'Wrabbit' — setup step 5.

How the token is built (v1 and v2 formats, fields, v1 valid no later than 31.12.2027) and how wrabbit-revocations revocation works — License format.

Updated November 15, 2026 · Found a mistake? →