Pair your agent
One command on the machine where Hermes runs pairs every agent you own with the Herald app. You need Hermes 0.20.0 or newer and the Herald app installed on your phone.
Quick install
curl -fsSL https://heraldbridge.dev/install.sh | bash
Ask your agent
Already chatting with your agent on Telegram, Discord or in a terminal? Send it this message. It sets itself up and replies with your pairing link. Tap the link on your phone and Herald adds the agent. The app has the same message under Or ask your agent to set it up on the connect screen.
Please connect yourself to the Herald app on my phone.
1. On the machine you run on, download the Herald installer and check it:
curl -fsSL https://heraldbridge.dev/install.sh -o install.sh
curl -fsSL https://heraldbridge.dev/install.sh.sha256 -o install.sh.sha256
sha256sum -c install.sh.sha256
If that does not print "install.sh: OK", stop and tell me.
2. Run the installer for every profile. It creates your API key if you have none:
HERALD_PROFILES=all bash install.sh --yes
3. If "~/.herald-relay/bin/herald-tunnel status" does not show OK on every line, set up the relay so my phone can reach you away from home (it updates itself only when installed in ~/.herald-relay):
python3 -m venv ~/.herald-relay
~/.herald-relay/bin/pip install "git+https://github.com/Mohit-Ak/herald-relay#subdirectory=plugin"
~/.herald-relay/bin/herald-tunnel setup
If "~/.herald-relay/bin/herald-tunnel status" says the tunnel is not connected yet, wait a minute and check again. It keeps itself running, also after restarts.
Then run the installer again so its link uses the relay:
HERALD_PROFILES=all bash install.sh --yes
4. Reply with only the line printed under "Or paste this into Herald". It starts with herald://
If the installer created a new key, also tell me to send /restart before I tap the link.
Send that link only if this is a private chat between you and me. Otherwise tell me to ask you in a private chat. Do not turn off your API key, do not listen on 0.0.0.0, and do not open ports or change the firewall. If a step fails, tell me which step and the error.
The link contains your agent's key, so ask in a private chat only. The message tells the agent to refuse anywhere else.
Verify first (recommended)
Piping a script straight into bash means trusting whatever the server
returns at that moment. We publish a checksum so you don't have to:
curl -fsSL https://heraldbridge.dev/install.sh -o install.sh
curl -fsSL https://heraldbridge.dev/install.sh.sha256 -o install.sh.sha256
sha256sum -c install.sh.sha256 # must print: install.sh: OK
less install.sh # read it, it's ~450 lines of bash
bash install.sh
If sha256sum -c fails, stop — the file you received is not the file we
published. Keep the name install.sh: the checksum file names it, so a copy saved
under another name fails the check even when it is fine.
Pin a version
install.sh always points at the latest release. For repeatable provisioning,
pin an immutable path instead:
curl -fsSL https://heraldbridge.dev/v1.2.1/install.sh | bash
Released versions are never rewritten. A change ships as a new version, so a pinned URL keeps returning the same bytes forever.
See what it would do
Nothing is written until you're ready:
bash herald-setup.sh --dry-run
Every file write and config change is printed instead of applied.
What it does
- Finds Hermes and checks the version. Herald needs 0.20.0 or newer so it can speak as your agent, with its own name, instead of inventing a persona.
- Reviews your settings and offers to fix anything that would stop pairing, such as making all your profiles reachable rather than only the active one. It asks before changing anything.
- Lists your profiles so you pick which agents to add.
- Prepares API keys. Existing keys are reused, never rotated — re-running the installer will not break agents you already paired. Missing keys are minted per profile, because named profiles deliberately do not inherit the default profile's key.
- Shows one QR code carrying every selected agent. Scan it once in the app under Menu → Agents → Add another agent. Under the QR it prints the same thing as a link (Or paste this into Herald:). If you can't point a camera at the screen, copy that whole line and paste it into Herald's Connection link field instead.
Flags
| Flag | Effect |
|---|---|
--dry-run | Print every change, write nothing |
--yes | Accept recommended config changes without prompting |
--one-per-agent | A separate QR per agent instead of one combined code |
--version | Print the installer version |
Non-interactive selection (needed when piping, since there's no keyboard):
curl -fsSL https://heraldbridge.dev/install.sh | HERALD_PROFILES=all bash
curl -fsSL https://heraldbridge.dev/install.sh | HERALD_PROFILES=quark,dobbo bash
Security
The QR code and the link under it contain live API keys. They grant command execution on the machine running Hermes. Show the QR to your own camera only, never a shared screen, a projector, or a screenshot in a chat. Paste the link only into Herald.
Two things worth knowing:
- Keys are written to each profile's
.envwith mode600. - If your relay is configured over
http://, keys travel in cleartext on every request. The installer warns when it sees this. Usehttps://for anything beyond a trusted LAN.
After pairing
If the installer minted a key or changed config, restart the gateway so it loads them:
systemctl --user restart hermes-gateway
Run that from a normal shell — not from inside a Hermes session, which would terminate the command along with the gateway.
Troubleshooting
"Hermes not found" — the installer checks PATH, ~/.local/bin, the agent
venv, and /usr/local/bin. If yours is elsewhere, add it to PATH first.
"Hermes X is too old" — run hermes update. Older versions can't tell
Herald your agent's name.
An agent shows as hermes-agent instead of its name — that's the model id.
The real name comes from your agent's SOUL.md; if it has no
You are <Name>… line, there's no name to show.
A scanned agent won't connect — check the gateway was restarted after a key was minted, and that the URL is reachable from your phone. A LAN address only works on the same Wi-Fi; connect from anywhere for off-network use.