Register a remote host on a host
A host can keep a list of other hosts. Agents running on it use that list to find a remote host, list its workspaces, and start work there. This is separate from the hosts you add in Zekoder Desktop: the desktop list belongs to the app, and this list belongs to the daemon of the host you register it on.
This page calls the host that keeps the list host A, and the host it points to host B.
Before you start
- Host A and host B both run the Zekoder daemon, version 0.13 or newer.
- Host A can reach host B over the network, a VPN such as Tailscale, SSH, or a pairing link.
- Run the commands on a machine with the
zekoderCLI. Use--hostto choose host A.
Register host B
Run host add against host A and give it the address of host B:
zekoder --host localhost:6777 host add 100.78.212.30:6777 --label agentshome
--hostselects host A, the daemon that stores the entry. Uselocalhost:<port>when you run the command on host A itself. A daemon installed by Zekoder listens on port6777.- The address after
addis host B. It accepts:Form Example Host and port 100.78.212.30:6777WebSocket URL wss://host-b.example.comSSH to a running daemon ssh://deploy@build-boxRelay or pairing link the link from zekoder daemon pair --labelis a name for people. Use--meta key=valueto attach notes such asteam=infra.
If host B has a password, add ?password=... to an SSH address, or use a pairing link.
Check that it connected
zekoder --host localhost:6777 host ls
The entry shows online once host A reaches host B, and fills in host B's server ID. An unreachable host stays saved and retries on its own, so you can register it before it is up.
For details and recovery guidance, inspect it by its ID, not its label:
zekoder --host localhost:6777 host inspect <registration-id>
What host A can do with it
Agents on host A discover host B with list_hosts. They can then list and create workspaces there and see its agents in the parent's Subagents track. Registering a host gives host A access to host B. It does not give host B access back to host A. To let both find each other, register each on the other.
Credentials are stored on host A in a private file, and the CLI never prints them.
Change or remove an entry
zekoder --host localhost:6777 host update <registration-id> --meta team=tools
zekoder --host localhost:6777 host update <registration-id> --connection 'ssh://deploy@new-address'
zekoder --host localhost:6777 host disable <registration-id>
zekoder --host localhost:6777 host enable <registration-id>
zekoder --host localhost:6777 host rm <registration-id>
Changing the connection keeps host B's pinned identity. If host B really changed, verify it, then add --replace-identity. Removing an entry leaves agents and workspaces on host B running.
Troubleshooting
Cannot connect to daemon. The --host address is wrong. Check the port with zekoder status: a desktop-managed daemon uses 6777, not 6767.
Status stays connecting or failed. Host A cannot reach host B. Check the address, the VPN or firewall, and that host B's daemon listens on a non-loopback address. A daemon installed by Zekoder listens on 127.0.0.1 only, so reach it with SSH or a pairing link instead.
See Connect a host for adding a host in Zekoder Desktop.