Launcher Configuration Reference
The runtime launcher (qar-runtime-launcher.exe) is configured by one JSON object. This page lists every key it reads.
Where the configuration comes from
| Started by | Configuration used |
|---|---|
| Launcher alone, empty input | qar-runtime-launcher.jsonc next to the launcher executable. |
Tray (qaros.exe <config-path>) | The file given as the tray's first argument. |
| Tray, no argument | qar-runtime-launcher.jsonc next to the launcher executable. |
- Every config file may contain
//and/* */comments. - A file that cannot be parsed is reported and the Hub does not start on defaults: fix the file.
The tray always adds startupTarget and startupTargetPath (see Hub interconnect) and sets prewarmVisualizer: true unless the file sets it.
- Unknown keys are ignored.
- "Default" below is the value used when the key is omitted. The shipped
qar-runtime-launcher.jsoncsets some keys differently; those are noted.
Starting a background Hub without the visualizer
Applications that start the tray supervisor without opening or prewarming the visualizer must set all three flags in a dedicated configuration file:
{
"schema_version": 3,
"autoLaunchVisualizer": false,
"openVisualizerOnStartup": false,
"prewarmVisualizer": false
}
autoLaunchVisualizer controls the launcher's visible window, openVisualizerOnStartup controls the tray's separate startup request, and prewarmVisualizer controls the hidden visualizer process. Turning off only the first flag does not override the tray's other defaults.
Pass the file's absolute path as the tray's first argument; do not modify the installed, shared configuration:
$qarosInstall = (Get-ItemProperty -LiteralPath 'HKLM:\SOFTWARE\Quaternar\QAROS').InstallFolder
$configPath = 'C:\MyApp\qaros-background.jsonc'
& (Join-Path $qarosInstall 'bin\qaros.exe') $configPath
Leave an existing Hub for the same Windows user and data root running. Starting the tray again with that root replaces it; supplying a background configuration does not reconfigure an already running Hub in place. See Running several Hubs before deliberately starting another root. The user can still open the visualizer from the tray later.
Schema version
| Key | Type | Default | Effect |
|---|---|---|---|
schema_version | integer | - | Config schema version. Current: 3. Older versions are migrated on load; a newer version is rejected. _sv is accepted as an alias; schema_version wins if both are set. |
Migrations applied on load:
| From | Change |
|---|---|
| 1 -> 2 | onboardingInviteIntervalSec renamed to codeRotationSec. maxAutoPipelines and handleSourceAppLaunchRequests removed. |
| 2 -> 3 | targetApps entries with deviceType: "ZedCamera" dropped (a ZED is a source app, not a target). |
Identity and logging
| Key | Type | Default | Effect |
|---|---|---|---|
hubCommonName | string | "hub.qaros.local" | Common name of the Hub's mTLS identity. Give federated Hubs distinct names. |
logSeverity | string or integer | "debug" | Log level for the launcher and the processes it spawns. trace, debug, info, warn (or warning), error, fatal, or 0-5 in the same order. |
zenohRustLogLevel | string | "info" | Log level of the message-router (Zenoh) crates; other Rust crates stay at warn. One of trace, debug, info, warn, error, off. Any other value fails startup. |
peerId | string (UUID) | - | Overrides the Hub's peer id. Omit it: the Hub keeps a durable id in its own store. |
{ "hubCommonName": "hub.lab2.qaros.local", "logSeverity": "info", "zenohRustLogLevel": "warn" }
Paths
Paths default to the data root or the log root (Installation: Where data and logs live).
| Key | Type | Default | Effect |
|---|---|---|---|
caDir | path | <data root>/hub-ca | Hub certificate authority directory. |
runtimeStorageRoot | path | <data root> | Root of identity store, trust store and launcher session state, and of the encrypted secure-store that holds the licence. Must be an absolute path: an empty or relative value stops the launcher at start. qaros-license.exe reads this key from the same config file, so it activates the licence this Hub checks. An installed QAROS keeps the licence once for the PC instead, whatever this key says. |
logFolder | path | <log root>/qar-launcher-default/<session-id> | Log folder. The default folder is emptied on every start; a configured one is not. |
startupTargetPath | path | - | File the launcher writes the Hub-interconnect target to after connecting to another Hub. Without it the interconnect is not restored on the next start. Set by the tray to startup-target.json: next to the config file passed as the tray's first argument, otherwise in the tray's log folder (<log root>/qaros-hub-service). |
{ "caDir": "C:/ProgramData/Quaternar/hub-ca", "logFolder": "C:/ProgramData/Quaternar/logs/runtime-launcher" }
Networking
| Key | Type | Default | Effect |
|---|---|---|---|
routerPort | integer | - | Fixed message-router port. Omit it: the Hub takes the first port in the range below free on both TCP and UDP, so several local Hubs coexist. Pin it only for a firewalled deployment. |
routerPortRangeStart | integer | 19120 | First port searched when routerPort is unset. The onboarding listener (discovery, pairing, shared-password onboarding) takes its port from the same range, skipping the router port, unless discoveryPort / onboardingPakePort pins it. |
routerPortRangeEnd | integer | 19199 | Last port searched when routerPort is unset, and for the onboarding listener. |
memberRouterPort | integer | 0 | Member Hubs only: port of the member's local message router. The member's devices and apps connect to it first, then to the primary, so their traffic stays on the member PC and keeps flowing while the primary is down. 0 takes the first port of the router range free on TCP and UDP (the onboarding listener skips it) and the Hub reuses that port at its next start while it is free. Nonzero pins it, for a firewalled deployment. A primary Hub ignores it. On a member, sessionEndpoints name this router. |
sessionEndpoints | array of locator strings or address objects | - | Endpoints put into invites sent to devices. Omit (or leave empty) to derive them from the router's listening address. Must be an array (a bare string is rejected). Each entry is either a locator string "<protocol>/<host>:<port>" (IPv6 host in brackets) or {"Protocol": "tcp", "Hostname": "<ip-or-host>", "Port": <1-65535>} with all three fields; both forms may be mixed. A malformed entry stops the launcher with an error message. |
discoveryHost | string | "" | Host name or IP advertised in the discovery beacon as the discovery server address. |
discoveryPort | integer | 0 | TCP port of the onboarding listener (discovery requests, pairing, shared-password onboarding). 0 takes the first free port of the router range. Nonzero pins it: that port, or the Hub does not start. Same listener as onboardingPakePort; if both are set they must match. The UDP multicast beacon stays on 7445. |
discoveryDisplayName | string | - | Overrides the Hub name shown in discovery. Omit it: the Hub keeps its persisted name (initially "QAROS Hub"). |
hubRoomName | string | - | Overrides the Hub's room name. Omit it: the Hub keeps its persisted room. |
{
"routerPort": 19120,
"sessionEndpoints": [ "tcp/192.168.1.20:19120", { "Protocol": "tcp", "Hostname": "hub.lab2.local", "Port": 19120 } ]
}
See Networking & Federation for firewall rules.
Onboarding
| Key | Type | Default | Effect |
|---|---|---|---|
onboardingPakePort | integer | 0 | Same listener as discoveryPort, kept for older configs. 0 takes the first free port of the router range; nonzero pins it, or the Hub does not start. |
codeRotationSec | integer | 8 | No longer rotates codes: the Hub mints a pairing code only when the Visualizer shows one, and every code the Visualizer shows lives 60 s. The key only sets the shortest lifetime, in seconds, of a code minted without a lifetime of its own: at least 10 s, or this value if larger. |
pakeCodeLength | integer | 8 | Characters in the human-entered pairing code. |
certLifetimeHours | integer | CA default | Lifetime of certificates issued to onboarded devices, capped at 24 h. A paired headset player always gets 30 days. |
{ "codeRotationSec": 8, "pakeCodeLength": 8, "certLifetimeHours": 168 }
See Security Model and Managing Devices.
Visualizer
| Key | Type | Default | Effect |
|---|---|---|---|
autoLaunchVisualizer | boolean | false (shipped file: true) | Open the single control visualizer when the Hub starts. A launcher an application starts through the C API without this key opens no window. |
prewarmVisualizer | boolean | false (tray: true) | When autoLaunchVisualizer is off, start the visualizer hidden so opening it later is instant. |
openVisualizerOnStartup | boolean | true | Read by the tray, not the launcher: show the visualizer once the Hub has started. |
Pipeline behaviour
| Key | Type | Default | Effect |
|---|---|---|---|
enableMixer | boolean | true | Insert the mixer between source apps and targets. See The Mixer. |
unifyTargetAppWithMixer | boolean | false | Run the mixer inside the target's process where the target supports it, instead of as its own process. Only with enableMixer. |
applyDeterministicIds | boolean | true | Keep launcher-assigned peer ids stable across restarts, so child processes reuse their onboarding identities instead of re-enrolling. |
targetAppOverride | string | "None" | Launch this target app for every target request instead of the one matching the device. None, StreamVisualizer, HoloLens, StereoKit. AndroidStreamer is ignored with a warning. |
handleInvites | boolean | true | Answer session-invite requests. |
detectConnectedPeers | boolean | true | Track peers connecting to the session. |
replyToServiceExists | boolean | true | Answer service-existence probes. |
Source apps (sourceApps[])
Each enabled entry is a source application added to every new target pipeline, with its app volume registered at startup. A missing or empty array means no source apps.
| Key | Type | Default | Effect |
|---|---|---|---|
enabled | boolean | true | false skips the entry. |
type | string | "StereoKit" | Source app kind: StereoKit, CpuRenderer, Ogre, ZedCamera, VRGB, OpenXr. |
appVolumeCommonName | string | required | Stable name of the app volume (get-or-create key, not a UUID). Use a reverse-domain name unique across Hubs, e.g. slot0.hub1.example.com. An empty or missing name fails startup. Alias: appVolumeId. |
appVolumeDisplayName | string | "AppVolume_<index>" | Name shown in the UI. Alias: displayName. |
appVolumePose | object | placed on a diagonal by index | position [x,y,z] and orientation [x,y,z,w] (or {x,y,z[,w]} objects). Each field optional. |
appVolumeSize | [x,y,z] or object | [1.5,1.5,1.5] | Volume size in metres. Alias: size. |
Entries must be objects; bare type strings are rejected.
"sourceApps": [
{
"enabled": true,
"type": "StereoKit",
"appVolumeCommonName": "slot0.hub1.example.com",
"appVolumeDisplayName": "StereoKit Source",
"appVolumePose": { "position": [0.2, 0.0, 0.2], "orientation": [0, 0, 0, 1] },
"appVolumeSize": [1.5, 1.5, 1.5]
}
]
Target apps (targetApps[])
Each enabled entry is a HoloLens the Hub invites into the session at startup. Startup waits for each invite to be accepted.
| Key | Type | Default | Effect |
|---|---|---|---|
enabled | boolean | true | false skips the entry. |
hostname | string | "" | Host name or IP of the device. |
deviceType | string | "Visualizer" | HoloLens (old name HoloLensARHeadset), streamed to by qar-openxr-desktop. Android headsets are not invited: an entry with Headset, Android, AndroidStreamer or a headset model (MetaQuest, Metalens, ...) is skipped with a warning. Pair those headsets once instead (Pair a Headset); they join the session by themselves. Visualizer is ignored with a warning: use autoLaunchVisualizer instead. A camera is never a target app. |
configOverrides | object | {} | Passed into the launched app's config (e.g. roomTag). Aliases: specialKeys, config. |
"targetApps": [
{ "enabled": true, "hostname": "192.168.1.42", "deviceType": "HoloLens", "configOverrides": { "roomTag": "default" } }
]
Hub interconnect (startupTarget)
Selects whether the launcher hosts a local Hub or rejoins another Hub at startup. Normally written by the tray from startup-target.json; you rarely set it by hand. See Networking & Federation.
| Key | Type | Default | Effect |
|---|---|---|---|
type | string | "auto" | "local" or "auto". Any other value means "auto". |
hubConnectionId | string | - | Id of a saved connection to another Hub. When set, the launcher rejoins that Hub instead of hosting a local one. |
trustedHubCaBundles | array | [] | CA bundles of other Hubs to trust. Each entry: HubId, CaBundlePem, CertificateFingerprints[]. A malformed array is ignored with a warning. |
"startupTarget": { "type": "auto" }