Provider-controlled app settings¶
Corrected scope separation: Android615, Apple3.0.50(475), Windows/Linux2.0.35(387). Older clients may ignore keys they do not recognize. Store availability is independent of this contract.
s-settings is an optional subscription response header containing a JSON object. Every setting requires an active Provider ID supplied in the same response (s-providerid, compatible providerid). An unknown or inactive ID cannot change settings.
s-providerid: YOUR_PROVIDER_ID
s-settings: {"version":1,"settings":{"autoConnect":true,"launchAtLogin":true,"launchAtBoot":true,"autoConnectOnWifi":true,"autoConnectOnMobile":false,"theme":"dark"}}
Application and precedence¶
- The command applies when the selected subscription is loaded/refreshed; on a fresh installation without a selected server, the first subscription is eligible. Refreshing another subscription does not change global settings.
- This saves user preferences; it does not lock the settings interface. The user can edit them. The next response from the selected active provider can set explicitly listed values again. Deactivating the Provider ID blocks new writes but does not reset preferences already saved.
- An omitted header, omitted key or JSON
nullchanges nothing.false,0and a permitted empty string are explicit values. JSON booleans aretrue/false, not strings or numeric flags. - HTTP takes precedence over a same-name
#s-settings: {...}body line, including a whole-list Base64 subscription. Existing encrypted metadata valuescrypt1/…andcrypt2/…are supported. Do not Base64-wrap the JSON itself. - Limit: 32768 UTF-8 bytes after decryption, single-line JSON without CR/LF; strings are limited to 4096 bytes. Unknown keys are ignored. An invalid type or value of a known key rejects the entire command before preference writes. Settings unsupported by the platform are not applied.
- Core parameters take effect on the next connection. This does not bypass manual VPN disconnection or force an immediate reconnect. On Android the UI process writes settings; a background VPN-process subscription refresh alone does not apply
s-settings. - Autostart:
launchAtBootis Android-only;launchAtLoginis Windows/Linux/macOS. Starting an app at OS boot is unavailable on iOS/iPadOS/tvOS. VPN consent, login-item approval, notification permission and battery restrictions remain controlled by the OS. A failed system operation is not reported as successful autostart. s-settingschanges global preferences. Existings-fonts,s-layout,s-dns,s-fragmentand other subscription overrides retain their separate contracts and connection precedence. Routing and Android application lists use existing routing-/per-app-proxy headers. Servers, personal URLs, HWID, accounts, cryptographic keys, deletion and export commands are not settings in this command.
Complete registry¶
Only 18 app-wide behavior preferences belong in this list. Apple launchAtLogin and showInMenuBar apply to macOS only.
| Key | Type / accepted 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 |
Android advanced timing controls are available from build 614. An empty string restores the built-in timing; *Sec uses seconds, *Ms milliseconds and advLogSizeKb KB. Use a positive integer represented as a string.
Subscription appearance and connection metadata¶
Subscription appearance — s-fonts, s-layout, s-actions. These fields are removed from s-settings: they must not modify other subscriptions. DNS/bypass/reconnect/update interval use their dedicated headers.
Complete local-settings scope audit¶
All98 local preferences were classified:18 app-wide,41 subscription,39 local-only. A local or backup preference is not automatically a remote API. Device security, local proxies, diagnostics and connection-engine preferences without a dedicated subscription contract are not accepted by s-settings; they remain editable locally. Removed keys are ignored and never rewrite global preferences. Previously saved values are not reset automatically.
| Preference | Scope | Delivery |
|---|---|---|
autoConnect |
application | s-settings |
autoConnectOnWifi |
application | s-settings |
autoConnectOnMobile |
application | s-settings |
launchAtLogin |
application | s-settings |
liveActivityEnabled |
application | s-settings |
requireSignCheck |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
killSwitch |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
pingMode |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
pingUrl |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
pingMethod |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
silentReconnect |
application | s-settings |
enableTrafficStats |
application | s-settings |
textScale |
subscription | s-fonts: text |
subscriptionNameScale |
subscription | s-fonts: subscription-name |
serverNameScale |
subscription | s-fonts: server-name |
appTextSize |
application | s-settings |
theme |
application | s-settings |
mtu |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advCheckTimeoutMs |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
allowUntrustedSubscriptionTLS |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advLogSizeKb |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
neBufferKB |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
preferredIpType |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
socksEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
socksPort |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
socksUser |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
socksPassword |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
httpInboundEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
httpPort |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
proxyExternalBind |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
proxyBindAddress |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
localDnsEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
localDnsPort |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
dnsCapture |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
dohEnabled |
subscription | s-dns |
dohCascadeEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
dohUrl |
subscription | s-dns |
reconnectOnSubscriptionUpdate |
subscription | s-reconnect-on-update |
realityDisablePq |
subscription | s-reality-disable-pq |
fragmentEnabled |
subscription | s-fragment |
noiseEnabled |
subscription | s-noise |
noiseType |
subscription | s-noise |
noisePacket |
subscription | s-noise |
noiseDelay |
subscription | s-noise |
resolveAddressEnabled |
subscription | s-resolve |
resolveAddressDoh |
subscription | s-resolve |
resolveAddressBootstrapIP |
subscription | s-resolve |
fragmentPackets |
subscription | s-fragment |
fragmentLength |
subscription | s-fragment |
fragmentInterval |
subscription | s-fragment |
fragmentMaxSplit |
subscription | s-fragment |
muxEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
muxConcurrency |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
muxXudpConcurrency |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
muxXudpProxyUDP443 |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
xmuxEnabled |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
xmuxMaxConcurrency |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
xmuxMaxConnections |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
subAutoRefresh |
application | s-settings |
subRefreshIntervalHours |
subscription | profile-update-interval |
subRefreshOnOpen |
application | s-settings |
collapsibleSubs |
application | s-settings |
showSpeed |
application | s-settings |
showSessionTraffic |
application | s-settings |
pingProxyMode |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
runMode |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
launchAtBoot |
application | s-settings |
autoConnectDelaySeconds |
application | s-settings |
advDnsTimeoutMs |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
appLanguage |
application | s-settings |
devMode |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
showInMenuBar |
application | s-settings |
protocolScale |
subscription | s-fonts: protocol |
layoutDensity |
subscription | s-layout: density |
layout.card-padding-x |
subscription | s-layout: card-padding-x |
layout.card-padding-y |
subscription | s-layout: card-padding-y |
layout.info-gap |
subscription | s-layout: info-gap |
layout.server-padding-y |
subscription | s-layout: server-padding-y |
layout.server-gap |
subscription | s-layout: server-gap |
layout.card-gap |
subscription | s-layout: card-gap |
action.check.button |
subscription | s-actions: check.button |
action.check.scale |
subscription | s-actions: check.scale |
action.check.size |
subscription | s-actions: check.size |
action.check.style |
subscription | s-actions: check.style |
action.account.button |
subscription | s-actions: account.button |
action.account.scale |
subscription | s-actions: account.scale |
action.account.size |
subscription | s-actions: account.size |
action.account.style |
subscription | s-actions: account.style |
action.support.button |
subscription | s-actions: support.button |
action.support.scale |
subscription | s-actions: support.scale |
action.support.size |
subscription | s-actions: support.size |
action.support.style |
subscription | s-actions: support.style |
advWifiReturnSec |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advNetStableSec |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advLostRecheckSec |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advDupWindowSec |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
advCoreStartSec |
local-only | Local Settings; connection-specific options may be supplied in server configuration where supported. |
Complete backend reference: parameters, types and precedence.