Skip to content
RepoGo Logo

Your computer

Host commands

Run these in a terminal on the computer where the host is installed. Installing puts repogo on your PATH (see Install the host); npx @repogo/host <command> works too. repogo help lists them all, and repogo help <command> shows one command's options.

CommandWhat it does
repogoInstall and start the host, then show a pairing code
repogo pairShow a pairing code for another device
repogo statusShow whether the host is running, and its version
repogo start / stop / restartStart, stop or restart the background host
repogo start --lanAlso let phones on the same Wi-Fi connect straight to this machine, skipping the relay. It stays on for whatever network the machine joins, a café's included, so anyone there can reach the port (but can't connect without pairing). --lan=false turns it off
repogo start --tailscale=falseStop serving phones on this machine's Tailscale address. On by default: phones on your tailnet connect straight to it. Turn it off on a shared or work tailnet, where every member can reach the port
repogo logsShow the host's logs
repogo updateUpdate to the latest version
repogo devicesList the paired devices
repogo devices revoke <id>Remove a device: its connections close and it can no longer reach the host
repogo devices revoke --allRemove every paired device, yours included, and end any reusable invite
repogo tunnelsList the public tunnels that are open
repogo tunnels close <slug>Close a tunnel; its URL stops working right away
repogo tlsShow the TLS key your phones pin
repogo tls rotateMake a new TLS key; every device pairs again
repogo keep-awake enableKeep a Mac awake with its lid closed while a device is paired
repogo uninstallRemove the background service and agent hooks
repogo versionPrint the host's version

uninstall, tls rotate and devices revoke --all ask before they act. Add --yes to skip the question, as a script must: run without a terminal, they refuse rather than wait.

Update#

bash
repogo update

The update waits for running work: it refuses while chats, terminals or actions are running. Add --now to stop them and update anyway.

Start over#

If a phone is lost, or something looks wrong, go one step at a time:

  1. Remove every device: repogo devices revoke --all. Their connections close, no old pairing link works, and you pair your own phone again with repogo pair.
  2. Make a new TLS key if you think the computer's key itself was copied: repogo tls rotate. Every device pairs again.
  3. As a last resort, if the host's own identity in ~/.repogo/device.json may have been copied, give the computer a new one: run repogo stop, delete ~/.repogo/device.json, ~/.repogo/tls-key.json and ~/.repogo/pair-reusable.json, then run repogo to start it and pair again. Your phones see it as a new environment.

Uninstall#

bash
repogo uninstall
rm -rf ~/.repogo

uninstall removes the background service, RepoGo's agent hooks and the repogo link in ~/.local/bin, and keeps your pairings and data in ~/.repogo. Delete that folder to remove everything.