Before you start
- The server is running (any path from the self-hosting guide works; Windows direct-run is fastest).
- You have the space id and the enrollment secret — the two strings printed when the space was created.
- The desktop app is Novara 13.0 or later.
Pairing steps
- Open the pairing dialog
Novara desktop → hamburger menu → Tools → Encrypted sync → Pair.
- Fill the server address
The public address, e.g.
https://sync.example.com. Must be https; only loopback addresses may use http. - Fill the space id
The first string printed by the space-create command, pasted as-is.
- Fill the enrollment secret
The second string printed by the space-create command, pasted as-is.
- Leave the space key empty, click Pair
The local device name is free-form (used to recognize this machine in the device list). On success a dialog says "store the sync space key safely".
Why the space key stays empty
At the moment pairing succeeds, the desktop generates a 256-bit random SpaceKey, wraps it with this machine's vault password and uploads it (that is the keywrap record), then shows "store the sync space key safely". This key is the only credential for later devices to join — the server has only the ciphertext form and cannot recover the plaintext.
So the pairing dialog's rule is: empty = create the space (first device), filled = join an existing space (second and later). Two machines usually have different vault passwords and cannot unwrap each other's keywrap records, so the space key can only be read from the device that created it.
One easy trap: the same data directory
The space-create CLI writes credentials into the directory pointed to by the NOVARA_SYNC_DATA environment variable (when unset, data under the current working directory). It must be the same directory the server uses — otherwise the credentials land elsewhere, the server never sees the space, and pairing fails by construction.
The bundled 1-建空间.cmd and 2-启动服务端.cmd scripts already handle this: both point to %LOCALAPPDATA%\Novara\Server\data. On the Docker Compose path, docker compose run --rm novara-sync space create mounts the same ./data as the server.
After pairing
Once paired, the same encrypted-sync card can issue a read-only token and edit credentials for your phone (see "Read-only mobile access"), and this machine appears in the device center for management at any time (see "Add more devices"). The first sync round pushes the whole local vault up.