Deep links
A deep link is a link that opens Wrabbit and hands it a subscription, servers or a routing profile right away. Providers put it in the button on the subscription page, in a bot or in an email. This page lists every link form, what it does and which app version understands it.
#Schemes
| Scheme | How it works | Version |
|---|---|---|
wrabbit:// | Registered with the system: tapping the link in Safari, Telegram or mail opens Wrabbit | 2.1.0 2.2.0 |
wrab:// | A synonym for wrabbit:// with the same commands | 2.1.0 2.2.0 |
happ://, incy:// | Not registered: tapping opens the Happ or INCY app. Wrabbit understands their links only when pasted on the “Import” screen or scanned as a QR code | 2.2.0+ |
In 2.2.0 the scheme and the command (add, import, routing) are case-insensitive. 2.2.0 also accepts a wrabbit://… link pasted on the “Import” screen or shown as a QR code — the result is the same as tapping it. 2.1.0 understands it only when tapped.
#The button on the subscription page
The most common case is an “Add to Wrabbit” button on a Remnawave subscription page. Use the import?sub= form in it: both 2.1.0 from the App Store and 2.2.0 understand it.
wrabbit://import?sub={{SUBSCRIPTION_LINK}}
{{SUBSCRIPTION_LINK}}is substituted by the Remnawave subscription page 7.x and 8.x, and only insubscriptionLinkandcopyButtonbuttons;externalbuttons get no substitution.- The Wrabbit entry is needed in both
platforms.ios.appsandplatforms.macos.apps: on a Mac the page shows the macOS section. The ready-made JSON entry is in Remnawave setup. - If the subscription link has its own
?and&, percent-encode it as a whole: in theimport?sub=form both versions cut an unencoded address at the first&. Only theadd/form in 2.2.0 accepts the address unencoded.
#Subscription
| Link | What it does | Version |
|---|---|---|
wrabbit://import?sub=<URL> | Adds a subscription. Parameter synonym: url= | 2.1.0 2.2.0 |
wrabbit://add/<URL> | Adds a subscription; the address is the link tail | 2.2.0+ |
wrabbit://import/<URL> | Same as add/ | 2.2.0+ |
wrabbit://crypt4/<base64url> | A subscription with a hidden address: the address is encrypted with the Wrabbit key | 2.1.0 2.2.0 |
wrabbit://import?crypt=<base64url> | Same as crypt4/, as a parameter | 2.1.0 2.2.0 |
happ://add/<URL>, incy://add/<URL>, incy://import/<URL> | Like wrabbit://add/ — paste and QR only | 2.2.0+ |
wrabbit://import?sub=https://YOUR-DOMAIN/<SHORT_UUID>
wrabbit://add/https://YOUR-DOMAIN/<SHORT_UUID>
wrabbit://import/https://YOUR-DOMAIN/<SHORT_UUID>
wrabbit://add/https%3A%2F%2FYOUR-DOMAIN%2F<SHORT_UUID>
wrabbit://add/<base64url(https://YOUR-DOMAIN/<SHORT_UUID>)>
- The subscription address must be
http://orhttps://with a host. - In the
add/andimport/tail 2.2.0 accepts the address as is (with?and&inside), percent-encoded — including double-encoded — and in base64 (standard or URL-safe, with or without trailing=). - 2.2.0 repairs a collapsed
https:/host(some browsers normalize the link that way) on its own. - How to encrypt the address for
crypt4— Encrypted links. - Wrabbit cannot open encrypted
happ://crypt…andincy://crypt…links: only Happ and INCY have their keys. The user is asked to get a regular link orwrabbit://crypt4from the provider.
#What the user sees2.2.0
- A new subscription is first loaded without saving. The confirmation dialog shows the provider name, the domain, the number of servers and the subscriber login if the provider sends it; the subscription is saved only with the “Add” button. Details — Import.
- The dialog does not show the domain for
crypt4and for a subscription whose provider hides the address under its license (hide). - Tapping the same link again creates no duplicate: the subscription is updated and the server list opens.
- While the confirmation dialog is open, a second deep link is not accepted: “Please answer the add-subscription prompt first.”
#Standalone servers2.2.0+
Instead of a subscription address, the add/ and import/ tail can carry server links: vless://, vmess://, trojan://, ss://, hysteria2://, hy2:// — one, or a list in base64. The servers are added separately from subscriptions and only after the “Add servers?” dialog with the number of servers, their names and addresses.
wrabbit://add/vless://uuid@nl1.example.com:443?type=tcp&security=reality&pbk=KEY&sni=example.com#NL-1
wrabbit://add/<base64(server links, one per line)>
The same works with incy://add/vless://… via paste and QR. Which server link parameters Wrabbit understands — Protocols.
#Routing profile2.2.0+
The link adds a routing rule set to the user from a Happ profile (the routing.happ.su builder format). Schemes: wrabbit://, wrab://, and via paste and QR also happ:// and incy://. Before saving, the user sees a dialog listing the “direct” rules.
wrabbit://routing/add/<base64(JSON)>
wrabbit://routing/onadd/<base64(JSON)>
wrabbit://routing/add?data=<base64(JSON)>
wrabbit://routing/onadd/https://YOUR-DOMAIN/routing.json
wrabbit://autorouting/onadd/https://YOUR-DOMAIN/routing.json
| Form | What it does |
|---|---|
routing/add/<base64> | Adds the rule set turned off |
routing/onadd/<base64> | Adds it and turns it on right away |
routing/add?data=<base64> | The INCY form, same as routing/add/ |
routing/{add|onadd}/<https link>, onadd/<https link> | The profile is downloaded from the link once |
autorouting/{add|onadd}/<https link> | Accepted for INCY compatibility. From a deep link the profile is downloaded once, like routing/…/<https link>, with no auto-update. autorouting with auto-update works only in the subscription body or header — Provider routing |
routing/off | Not imported: users turn their own sets on and off in Settings → Routing |
<base64>is the profile JSON in standard or URL-safe base64, percent-encoding allowed. The profile is limited to 512 KB.- A profile by link must be
https://. - Which rules are accepted, what is checked and why a profile can be rejected — Routing. A profile for every subscriber is delivered not by a deep link but with the
routingheader — Provider routing.
#Links from push notifications2.2.0+push
In the push url field a provider can pass an https://… link or one of the navigation links. They only open a screen and change no settings.
wrabbit://open
wrabbit://subscriptions
wrabbit://settings
wrabbit://subscription?dom=YOUR-DOMAIN&sub_hash=<SUB_HASH>
| Link | What it opens |
|---|---|
wrabbit://open | The app |
wrabbit://subscriptions | The server list |
wrabbit://settings | Settings |
wrabbit://subscription?dom=…&sub_hash=… | The server list on that subscription; only subscriptions of the domain that sent the push |
- Navigation links work only from a push: opened from a browser or pasted on the “Import” screen they do nothing.
- Links that change configuration (
add,import,crypt4,routing) are rejected by the backend for pushes, and the app does not open them from a push. - How
sub_hashis computed and what opens withouturl— Push notifications.
#Support by version
| Link | 2.1.0 | 2.2.0 |
|---|---|---|
wrabbit://import?sub=, ?url= | Yes, no dialog | Yes, with a confirmation dialog |
wrabbit://crypt4/…, import?crypt= | Yes, no dialog | Yes, with a confirmation dialog |
wrabbit://add/<URL>, import/<URL> | No | Yes |
wrabbit://add/vless://… | No | Yes |
wrabbit://routing/…, autorouting/… | No | Yes |
happ://add/, incy://add/, incy://import/ (paste, QR) | No | Yes |
happ://crypt…, incy://crypt… | No | No — a clear message |
| Navigation from a push | No | Yes |
The full table of version differences — Versions.
How the app parses a link
- The scheme before
://is taken. If it is notwrabbit,wrab,happorincy, this is not a deep link: it is parsed as a subscription or servers. - The
routing/,autorouting/,onadd/commands are a routing profile. If it cannot be parsed — “Couldn’t recognize the subscription link”. happ://crypt…andincy://crypt…— a message about foreign encryption.crypt4/<blob>— the subscription address is decrypted; the blob is taken up to?or#and percent-decoded.add/<tail>andimport/<tail>: first anhttp(s)://address is looked for (as is, decoded, from base64), then server links. Neither — “Couldn’t recognize the subscription link”.- For
wrabbit://andwrab://only: thecryptparameter, thensub(orurl). Parameter names are case-insensitive.
Errors the user sees and what to do about them — Troubleshooting.