Skip to content

Backend: subscription appearance and application settings

Verified against Apple, Android and Windows/Linux source on 2026-11-27. This reference covers metadata returned by the subscription route.

Compatibility and scope

The scoped s-actions/s-fonts/s-layout contract and restricted s-settings are supported by Android615+, Apple475+, Desktop387+. s-appearance start with Android619 / Apple479 / Desktop391. Builds618/478/390 do not include them. Distribution availability depends on the release channel and review; gate by the actual client build.

Return an active s-providerid with these headers on the subscription route only. HTTP overrides same-name #header: value body lines, including a whole-list Base64 subscription. Existing metadata encryption is supported; do not add a separate Base64 wrapper around JSON. Omit fields you do not intend to override.

s-providerid: YOUR_ACTIVE_PROVIDER_ID
s-appearance: {"glass":2,"connect-scale":85}
s-fonts: {"text":100,"subscription-name":90,"server-name":90,"protocol":95}
s-layout: {"density":"compact","card-padding-x":8,"info-gap":2,"server-gap":0}
s-actions: {"check":{"button":true,"scale":100,"size":0,"style":"glass"},"account":{"button":true,"size":0,"style":"glass"},"support":{"button":true,"size":0,"style":"glass"}}
s-settings: {"version":1,"settings":{"autoConnect":true,"launchAtLogin":true,"launchAtBoot":true}}

s-appearance

Field Type / allowed values Scope
glass integer 0 Off, 1 Moderate, 2 Strong Own subscription card and selected server's connection orb; navigation is unaffected
connect-scale number 75–125 percent, default100 Orb diameter and its layout space, not lists or action controls

Missing glass uses the local preference. Missing connect-scale uses100%. null means no override; glass0 explicitly disables it. Both fields are optional. Limit8192 UTF-8 bytes without CR/LF. Invalid known values reject the entire object; unknown fields are ignored. Two subscriptions from the same provider remain independent. Accessibility transparency/motion preferences retain priority. JSON Schema.

s-actions

Independent objects check, account and support each accept:

Field Type / range Meaning
button boolean true button, false original link
scale number75–150 percent Text size;110 means110%, not1.1
size integer0–2 Compact / Normal / Large; only with button:true
style glass / filled / outline Only with button:true

Defaults are local preferences (built-in link, scale100, size0, glass). Text scaling alone never enables a button. Account and Support use their own card; Check uses the selected server's subscription. Limit8192 UTF-8 bytes without CR/LF; invalid known fields reject the whole object.

s-fonts and s-layout

All four s-fonts fields are numeric percentages60–120: text, subscription-name, server-name, protocol. They override only the corresponding subscription text. Unknown or invalid individual fields are ignored.

s-layout field Type / range
density compact / normal / comfortable
card-padding-x number6–24
card-padding-y number0–16
info-gap number0–12
server-padding-y number2–16
server-gap number0–12
card-gap number0–24

Logical platform units (pt/dp/CSS px). Explicit values override density presets. Without density, local spacing supplies the base. Invalid individual values are ignored. Platform presets preserve native density.

s-settings: complete allowlist

Use {"version":1,"settings":{...}}. This provisions saved app preferences only from the selected subscription with an active Provider ID. It is not a reversible appearance overlay. Unsupported keys/platforms are ignored; an invalid known typed value rejects the command before writes. Limit32768 UTF-8 bytes without CR/LF. Missing/null values leave saved preferences untouched. Do not place action., layout., glassLevel, fonts, DNS, fragmentation or server endpoints here.

Key Type / allowed values Platforms
autoConnect boolean Apple, Android, Windows/Linux
autoConnectOnWifi boolean Apple, Android
autoConnectOnMobile boolean Apple, Android
launchAtLogin boolean Apple, Windows/Linux
liveActivityEnabled boolean Apple
silentReconnect boolean Apple, Android
enableTrafficStats boolean Apple, Android, Windows/Linux
appTextSize integer; -3…3 Apple
theme string: system, light, dark Apple, Android, Windows/Linux
subAutoRefresh boolean Apple, Android, Windows/Linux
subRefreshOnOpen boolean Apple, Android, Windows/Linux
collapsibleSubs boolean Apple, Android, Windows/Linux
showSpeed boolean Apple, Android, Windows/Linux
showSessionTraffic boolean Apple, Android, Windows/Linux
launchAtBoot boolean Android
autoConnectDelaySeconds integer; 0…300 Windows/Linux
appLanguage string: system, ru, en Apple, Android, Windows/Linux
showInMenuBar boolean Apple

Apple launchAtLogin is Mac Catalyst only; showInMenuBar is Mac only. OS registration/permissions may fail. Provisioning never bypasses manual disconnect, another VPN or OS consent, and does not force an immediate connection. Removing s-settings does not restore previous preferences. Android writes app preferences only from the UI process, not background :vpn.

Replacement and removal

Appearance headers are subscription-only overlays over local defaults. Missing fields, removed headers and inactive providers restore local appearance. Each JSON object replaces the previous object for that header; it is not JSON Merge Patch. HTTP response headers take priority over same-name subscription body lines. Saved app provisioning is different: s-settings values persist after removal. Keep personal URLs, HWID and keys outside public documentation.

On tvOS the main control is rectangular: its visual appearance scales while native remote-focus geometry is preserved.