Skip to content
Vaulthalla LogoVaulthalla

Paired Devices

Pair Vaulthalla Desktop with your account, approve it by number matching, manage and revoke devices, and control whether devices on other hosts may connect.

Vaulthalla Desktop (the native macOS app) talks to a node through the device listener, a separate endpoint the daemon serves itself on port 36972. A paired device acts as the account that approved it, with that account's permissions: there are no device-specific permissions to manage. Pairing never asks for a password and never uses a browser cookie; each side pins the other's key instead.

How the device listener works

  • It uses TLS 1.3 with a certificate on both sides. Both certificates are self-signed and both sides pin each other's key, so no certificate authority, nginx or Let's Encrypt is involved, and a renewed certificate for the same key changes nothing.
  • The daemon creates its key on first start and seals it like its other secrets (the TPM on Linux). The certificate lives next to them in the state directory (see Runtime Paths).
  • It listens on loopback only by default (127.0.0.1, and ::1 where the host has IPv6), so only a Desktop on the same machine can connect. Turn on remote connections (below) to let Macs on your network pair; the listener then accepts IPv4 and IPv6 on every interface (IPv4 only where IPv6 is disabled).
  • A connection is authorized once, when it connects, by the key it presents. A key that isn't a paired device can only ask to pair; everything else is refused.

Pair a device

Any signed-in user can pair devices to their own account, from the web console or the CLI.

In the web console

  1. Open Devices (in the navigation, or Your devices in the account menu) and click Pair a device. The dialog opens a pairing window for your account and counts down the time it stays open.
  2. In Vaulthalla Desktop, add this server and choose Pair. The Mac shows a six-digit code, for example 482 913.
  3. The dialog lists the Mac's request (its name, platform, app version and address) with three codes. Click the one the Mac shows. The dialog says Paired and the Mac appears in your list; Desktop finishes connecting on its own.

A wrong click declines the request ("That code didn't match, so the request was declined"); start pairing again on the Mac and it shows a new code. Deny declines a request you didn't start. Closing the dialog closes your pairing window. If another user is pairing on the node at that moment, the dialog says so; try again when they're done.

The dialog shows the address and port to enter in Desktop, how long the pairing window stays open (by the node's clock), and a warning when remote connections are off. On servers that advertise their addresses it also lists them (with a copy button) and offers Open in Vaulthalla Desktop, a vaulthalla://pair link that fills in Desktop's Add Node sheet with those addresses and the server key. The link only saves typing: the code match is still the proof (see Pairing Links).

With the CLI

  1. On the node, open a pairing window (it lasts 10 minutes):

    1vh device pair
  2. In Vaulthalla Desktop, add the node (its address and port 36972). The Mac shows a six-digit code, for example 482 913.

  3. vh device pair lists the request with the Mac's name, platform and address, and offers three codes. Pick the one the Mac shows. A wrong pick denies the request; the Mac then starts over with a new code.

1Pairing request 7f3a9c1d2e4b6a80 from "Studio Mac" (macOS 1.0.0) at 192.168.1.422Which code does the device show?  [1] 019 337   [2] 482 913   [3] 760 001

Without a terminal (scripts, --non-interactive), vh device pair only opens the window. Then:

1vh device pending                                  # the requests and their three codes2vh device approve 7f3a9c1d2e4b6a80 --code 482913   # the code the Mac shows3vh device deny 7f3a9c1d2e4b6a804vh device pair --close                             # close your window early

Only one pairing window is open on a node at a time; while another user's window is open, vh device pair says until when. A super admin can close it early with vh device pair --close --any.

Compare the codes, every time

The code is what proves the Mac is talking to this node and not to something in between. Never approve a request you didn't start, and never pick a code the Mac isn't showing.

This Mac pairs on its own

When Vaulthalla Desktop runs on the same Mac as the server, it sets that server up by itself: at launch, or as soon as a server is installed while it runs. The valkyrianlabs/tap/vaulthalla cask installs both and opens Desktop once, so the install ends with this Mac's server already in Desktop. There is no code to compare and nothing to click.

The trust comes from your macOS account. Desktop runs vh as you, over the daemon's local socket, where the daemon recognizes your account from the kernel and acts as the Vaulthalla user bound to it (the person who installed the server is bound to admin; see CLI access). Nothing on the network is trusted more than before: it is the pairing you could run in Terminal, done for you.

  1. vh device pair --json opens your pairing window and returns the device listener's port, the node id and the server key.
  2. Desktop saves the node at 127.0.0.1 and that port, and connects pinned to that key, so another server is refused before anything is sent.
  3. Desktop confirms with vh device pending --json that the request carries this Mac's key and code, approves it with vh device approve <request> --code <code>, and closes the window.

The device then appears in your list like any other and is managed and revoked the same way. Desktop doesn't do this if your account isn't enrolled for vh (it isn't in the _vaulthalla group, or no Vaulthalla user is bound to it), after you removed this Mac's server from Desktop, or with Keep me signed in on this Mac off.

What a paired device can reach

Over its connection to the device listener, a paired device can use the web console's operations (as its account), download, preview and upload files (the same permission checks as the web console; share links are not offered there) and, for AI agents on the Mac, remote MCP at /mcp: the same tools, limits and confirmations as vh mcp (see AI Agents And MCP). An agent can never approve pairing requests, turn remote connections on or off, or export keys or secrets.

Manage devices

Devices in the web console lists your devices: name, platform, app version, when it was paired and last seen, its last address and its device id (the short form; the copy button copies all of it). Use the pencil to rename a device and the revoke button to unpair it. Revoked devices stay in the list behind Show revoked. Super admins also get Devices → All devices, which lists every user's devices with their owner.

From the CLI:

1vh device list                      # your devices, revoked ones included2vh device list --all                # every user's devices (super admins)3vh device rename 3 "Studio Mac"4vh device revoke 3                  # or the first 8+ characters of its device id

Revoking is final: the device's open connections close at once and its key is never accepted again. To use that Mac again, pair it again (Desktop creates a new key). A user can revoke their own devices, a super admin can revoke anyone's, and Desktop can unpair itself.

A device follows its account:

  • Permission and role changes apply to its open connections on the next request.
  • Deactivating the account refuses the device's requests; reactivating it restores them.
  • A password reset, role change or deactivation closes the device's open connections, which then reconnect.
  • Deleting the account deletes its devices.
  • Resetting the account's MFA or signing in with a recovery code revokes the devices' key-backup grants; the devices stay paired.

Approvals And Key-Backup Grants

A paired Mac proves which device is connecting, never that a person is there. Sync, file access and transfers never ask for anything. A few actions need a person's approval, and the Mac asks for it in one of two ways:

  • Touch ID on the Mac, through a separate key Desktop keeps in the Secure Enclave (its approval key). It approves only vault-key operations and approving another device, one action and one target each, and expires after two minutes.
  • A passkey in the web console. Anything else Desktop asks for appears for every console tab you are signed in to, and only a passkey approves it. An authenticator code or a password can't. Without a passkey, do the action in the console or with vh.

A new Mac can be approved from a Mac you already paired, with Touch ID, instead of from the console. Pairing from the console or with vh device pair works as before, and the local CLI never asks for an approval.

Key backup. Automatic 1Password key backup is a key-backup grant: it lets one paired Mac back up the keys of the vaults it names, with no prompt, on every reconnect and after every key rotation. Any other key export from that Mac (another vault, a manual export) needs your approval each time. Devices › My devices has a Key backup column to confirm or turn off a grant.

  • Every Mac that was paired before grants existed kept backing up: it got a migrated grant over exactly the vaults its account could export at upgrade time. Confirm it or turn it off. A Mac paired later asks once, when you turn backup on, and a new vault is added deliberately, never automatically.
  • More than 60 vault key exports in an hour pauses the grant and notifies you; confirm it to resume.
  • A grant ends when the Mac is unpaired, the account is deactivated, deleted or loses the export permission, its MFA is reset, someone signs in with a recovery code, or the Mac hasn't connected for 90 days. After a recovery-code sign-in the same Mac can turn backup back on with Touch ID during the cooldown, for the same vaults only.
  • Grant changes and backups are in the audit trail: vh audit list --action keys.backup. (approvals: --action device.approval. and --action auth.approval.).

The Desktop side (the prompts, turning backup on per vault) ships in Vaulthalla Desktop. See Multi-Factor Sign-In and the protocol in Device Approvals.

Remote connections

Remote connections are a node setting, changed by super admins. In the web console, Devices → All devices → Remote connections shows whether the listener is listening, its address and port, its open connections, any bind error and the server key fingerprint (the pin Desktop records), with an Allow remote connections switch. Off, only this machine can pair and connect; on, Macs on your network can pair and reconnect. Settings → Device listener links there. From the CLI:

1vh device remote status    # where the listener listens, and the node's key fingerprint (the pin)2vh device remote enable    # every interface: Macs on the network can pair and connect3vh device remote disable   # back to loopback; connections from other hosts close

The listener moves at once, without restarting the daemon. The choice is saved in config.yaml (device_server.remote) and kept across restarts and upgrades. Before enabling it, decide who should reach port 36972/tcp and set the firewall to match: networks you trust only, or the internet through a router port forward. Every connection needs a client certificate, and only paired keys get past pairing. Connecting from outside your network (direct WAN, a TLS passthrough on 443, firewall commands, DNS and Cloudflare) is covered in Direct Device Connections.

Where devices are told to connect

A paired Mac asks the node where else it can be reached and picks the best route on its own: this machine, the local network, a VPN such as Tailscale or WireGuard, the internet, then a TLS passthrough. The node lists its interface addresses (classified by range; container and bridge interfaces are left out), <hostname>.local where an mDNS responder runs (always on macOS, avahi on Linux), and the names you add under device_server.advertise in config.yaml. It never asks an outside service for its public address, so list port forwards, tunnels and TLS passthroughs there yourself:

1device_server:2  advertise:3    hostnames: ["nas.home.arpa"]4    public:5      - {host: device.example.com, port: 36972}6      - {host: device.example.com, port: 443, kind: passthrough}

passthrough marks an SNI router on 443 in front of the listener (nginx example). Any name a device reaches from outside must be a DNS-only record, never a Cloudflare-proxied one. Restart the daemon after editing config.yaml.

vh device remote status and the web console's Remote connections card show where the listener is bound. Super admins also see, through the ws device.remote.status diagnostics, the addresses devices are told, what the host firewall looks like (read from its configuration only; "unknown" when it can't be told without root) and when a device last connected from a public address. These checks look at the node only and can't prove that it is reachable through a router: a Desktop connecting from outside is the proof (see Check That It Works).

Troubleshooting

  • vh device remote status says it is not listening: the reason follows (usually the port is in use by another program). The daemon keeps retrying every 30 seconds; nothing else is affected.
  • Desktop says the node's identity changed: the node's key was replaced (the state directory was restored without its sealed secrets, or a super admin ran vh secret device-identity rotate, which also revokes every paired device: Rotate The Device Identity). Pair again; the old pin can't be trusted automatically.
  • Desktop says this Mac was unpaired: the device was revoked, or its account deleted. Pair again.
  • Desktop connects on the LAN but not from outside, or a route shows an error: see the symptom table in Direct Device Connections.