Pair a Host by scanning a code
Connect your iPhone or iPad to a Host over SSH by scanning a Pairing Code. Then monitor Claude Code, Codex, and other coding Agents from Heeler.
Show a Pairing Code on the machine and scan it in Heeler. The Host is added with its key and fingerprint already set up, no form to fill in.
Before you start
- Heeler installed on your iPhone or iPad.
- A Mac or Linux machine that runs Herdr 0.7.5 or newer, with Node.js 20 or newer. A machine that runs Herdr Core, Tmux, or Rex without Herdr pairs too, with one command: skip to Pair a machine without Herdr. Windows Hosts can't pair; add them by hand with Windows setup.
- Your iPhone or iPad on the same network as the machine, such as the same Wi-Fi, or connected to the same VPN. Pairing doesn't use the networks in Heeler's Settings > Overlay Networks; you can add those afterwards for use away from home.
- About two minutes: a Pairing Code works once and expires after two minutes.
1. Turn on SSH
Run on: Mac or Linux
On a Mac, turn on System Settings > General > Sharing > Remote Login and allow your account (Apple's guide). Keep the Mac awake.
On Linux, install and start the OpenSSH server. On Debian or Ubuntu:
sudo apt install openssh-server
sudo systemctl enable --now sshIf a firewall is on, allow SSH (port 22).
Then check the versions from Before you start:
herdr --version
node --version2. Install the Heeler plugin
Run on: Mac or Linux
herdr plugin install ZingerLittleBee/Heeler --ref plugin --yesHerdr downloads and builds the plugin. When the plugin is older than your version of Heeler expects, the Herdr TUI Server's page in Heeler (open the Host, then the Server) says so and can update it for you; running the same command on the Host also updates it.
3. Show a Pairing Code
Run on: Mac or Linux
Open Herdr (run herdr) as the account Heeler should sign in to, and make its window large: about 40 lines tall and 90 columns wide, so the whole QR code fits. In one of its panes, run:
herdr plugin action invoke heeler.pairThe Pairing Code opens in a popup over the Herdr window.
- The popup lists the machine's network addresses. Check each one your iPhone or iPad can reach, usually the machine's Wi-Fi or Ethernet address: use the arrow keys to move and Space to check or uncheck. Each checked address becomes a route of the Host, so checking more than one is fine. If none of them is one your iPhone or iPad can reach, see Pair through a port mapping.
- Press Enter. A QR code appears, along with the time it stops working.
Leave the popup open and don't press any keys while you scan. Any key except c closes it and cancels the code.
4. Scan it in Heeler
Run on: iPhone or iPad
-
Open Hosts and tap Scan to Pair (the QR code button next to +). On an iPad with the sidebar, open Hosts from the bottom of the sidebar.
-
Allow camera access and, if iOS asks, access to devices on your local network. Then point the camera at the QR code.
-
Pairing starts right away and Heeler shows each step as it completes. There is no fingerprint to compare: the code carries it.
-
When pairing finishes, Heeler looks at the machine and lists what it runs: Herdr TUI, and Herdr Core, each Tmux server, and Rex if the machine has them. Leave the ones you want checked, name the Host if you like, and tap Add Host with 1 Server (the number follows what you checked).
If you can't use the camera, press c in the popup. On a Mac this copies the code; get it onto your iPhone or iPad (for example with Universal Clipboard) and tap Paste Pairing Code in Scan to Pair. On Linux, c prints the code below the QR code instead: send it to your iPhone or iPad, for example in a note or message to yourself, then copy it there and paste it the same way.
Then run on: Mac or Linux
The popup shows Device paired and the key that was just added. If you didn't pair a device just now, press r to revoke it. Any other key closes the popup.
It worked if the popup shows Device paired, the Host appears in Hosts, and its Agents or Terminals load.
After pairing
- Open Agents to see coding Agents across your connected Hosts. Open one to use its terminal or Chat.
- The Host is named after your username and its address. To rename it, open it from Hosts and tap Edit.
- Heeler signs in with this device's Device Key. To pair another iPhone or iPad, repeat steps 3 and 4 on it.
- Pairing a machine that is already in Hosts under the same user and addresses adds nothing: the last step says so and turns on the Servers you check on that Host. With other addresses it becomes a second entry. Swipe left on the entry you no longer need and tap Remove.
- Pairing again also repairs a Host that says The host key changed, for example after the machine was reinstalled, or one that lost this device's key. The last step says when the key changed, and finishing it trusts the key from the new code and reconnects the Host.
- A Server you left unchecked, or one that starts later, has a switch on the Host's page.
- To get notifications on your iPhone or iPad when an Agent needs you (Blocked) or finishes (Done), go to Settings > Notifications, tap Enable Notifications, tap Continue, and allow notifications when iOS asks. Then turn on this Host's switch under Hosts.
Pair a machine without Herdr
Run on: Mac or Linux
A machine that runs Herdr Core, Tmux, or Rex and no Herdr has no plugin to show the code. Turn on SSH as in step 1, then run this in a terminal on the machine, as the account Heeler should sign in to. It needs Node.js 20 or newer and a Heeler version after 0.1.20:
npx -y heeler-pair@latestnpx downloads the command and runs it; nothing stays installed. It shows the same screens as the popup: check the addresses your iPhone or iPad can reach, press Enter, then scan the QR code as in step 4. Heeler lists the Servers it finds on the machine, such as Herdr Core and Tmux. One that isn't running yet can be turned on later from the Host's page.
Behind a port mapping, pass the address and port your iPhone or iPad reaches instead of writing pair.json:
npx -y heeler-pair@latest --port 2222 --address 192.168.1.10On Herdr Core, Tmux, and Rex Servers, Agent Notifications, Live Activity, and Usage need the Host Helper, which Heeler offers on each Server's page: see Connect Herdr Core, Connect Tmux, and Connect Rex. Rex needs Host Helper 0.5.14 or newer.
Use it away from home
A paired Host has only the addresses you checked, so it connects on the networks where those addresses answer. To reach it from cellular, set up an Overlay Network or a Jump Host, then add the Host's address there as another route: see Reach a Host on several routes. Heeler uses whichever route answers first.
Pair through a port mapping
Run on: Mac or Linux
The popup lists only the addresses on the machine's own network interfaces. When your iPhone or iPad reaches Herdr some other way, for example Herdr runs in a Docker container whose SSH is published on a port of a NAS, or the machine sits behind NAT, tell the plugin which address and port to put in the code. This needs Heeler plugin 0.6.2 or later; to update it, run the install command from step 2 again.
-
Find the plugin's config directory:
Terminalherdr plugin config-dir heeler -
In that directory, create
pair.jsonwith the addresses (IPs or host names) and the SSH port your iPhone or iPad reaches. For a container published as port 2222 of a NAS at 192.168.1.10:{"ssh_port": 2222, "addresses": ["192.168.1.10", "nas.example.com"]} -
Run
herdr plugin action invoke heeler.pairagain. The addresses frompair.jsoncome first in the popup and are already checked. The machine's own addresses follow, unchecked.
The port must lead to the OpenSSH server of the machine that runs Herdr, because the code carries the fingerprint of its host key under /etc/ssh. If the popup says it could not use pair.json, fix the file, press q, and run the command again. The plugin README describes every field.
Troubleshooting
| What you see | What to do |
|---|---|
| no Herdr server is running in the terminal | Run herdr first, then run the command in one of its panes. |
| The bottom of the QR code is cut off, or This terminal is too small for the Pairing Code. | Make the window larger, or zoom out the terminal. If the code doesn't appear by itself, press q and run the command again. |
| No SSH host key found under /etc/ssh. (popup) | Turn on Remote Login, or run sudo ssh-keygen -A, then run the command again. |
| No routable network address found. (popup) | Connect the machine to Wi-Fi, Ethernet, or a VPN, then run the command again. |
The popup lists no address your iPhone or iPad can reach, for example only a 172.17.x.x container address | Herdr is behind a port mapping or NAT. Add the address your iPhone or iPad reaches to pair.json, as Pair through a port mapping describes, then run the command again. |
| The Host did not answer at any of its addresses. | Put your iPhone or iPad on the same network or VPN as the machine, check that Heeler is allowed in iOS Settings > Privacy & Security > Local Network and that Remote Login is on, then tap Try Again. |
| This Pairing Code has expired., The Host rejected this Pairing Code., or The Host has no pairing in progress for this code. | Codes work once, for two minutes, and stop working when the popup closes. Press Enter in the popup for a new code, or run the command again, then tap Scan Again. |
| Enrollment did not complete, likely a network hiccup. or This device was enrolled, but the verifying reconnect did not get through. | Tap Try Again. |
| Tailscale SSH answers port 22… (popup or Heeler) | Pairing needs OpenSSH, and Tailscale SSH takes over port 22 on the Tailscale address. Uncheck that address and pair on the LAN address, or turn off Tailscale SSH on the machine. To pair over Tailscale anyway, set ssh_port in pair.json as the plugin README describes. Then show a new code and tap Scan Again. |
| The Host accepted this Pairing Code, but its pairing command ended without answering. | Run the install command again, and make sure the machine's own OpenSSH server (Remote Login) answers port 22. Then show a new code and tap Scan Again. |
| A message to update the app and the pairing plugin | If Try Again is shown, try once more. Otherwise update Heeler and run the install command again, then show a new code and tap Scan Again. |
| Camera Access Needed or Scanning Unavailable | Tap Open Settings and allow the camera, or use Paste Pairing Code. |
Pairing errors appear in the popup or in Heeler, not in Herdr's plugin log.
herdr-app / Herdr Core
Pairing lists every Server it finds on the machine. For Agents started in the Herdr desktop app, leave Herdr Core checked on the last step, or turn it on later on the Host's page. A machine with the desktop app and no herdr command pairs with heeler-pair. On Windows, add the Host over SSH.
Checked against Heeler plugin 0.6.0 on 2026-10-14.
