Connect from anywhere
Without extra setup, your phone can only reach your agent while both are on the same Wi-Fi. To reach it from anywhere, connect the machine to the Herald relay. The machine dials out, so you don't need to open ports or touch your router.
Set it up
Run these on the machine where Hermes runs:
python3 -m venv ~/.herald-relay
~/.herald-relay/bin/pip install -U herald-bridge
~/.herald-relay/bin/herald-tunnel setup
The relay gets its own Python environment, because recent Debian and Ubuntu
releases block pip install into the system Python. Herald Bridge is on PyPI as
herald-bridge.
setup registers the machine, saves its settings and starts a background
service. On a machine without systemd (a container, for example), it starts
the tunnel and adds a Hermes scheduled check that restarts it within a minute
whenever it is down, including after a reboot. That check runs no AI. Running it again keeps the same registration, so phones you've already
paired keep working.
Then run the pairing command again. It detects the relay and puts the relay address in the QR code, so the agent works on mobile data too.
Check it
~/.herald-relay/bin/herald-tunnel status
You should see OK for local Hermes, the relay and this machine's tunnel.
Updates
Herald Bridge keeps itself up to date. Every few hours it checks for a signed release, installs it next to the running copy, switches over only when nothing is in flight, and switches back by itself if the new version doesn't come up. You don't need to do anything.
It can only do this from ~/.herald-relay. If you installed it somewhere else
earlier (for example with pip install into Hermes' own environment), it moves
itself into ~/.herald-relay the next time it starts or you run setup, and
keeps your registration. To stay on the version you have, set
herald.auto_update: false in ~/.hermes/config.yaml.
herald-tunnel update --status shows the version and the last update result.
Keep it running after you log out
The background service stops when you log out unless you allow it to linger:
sudo loginctl enable-linger $USER
Commands
| Command | What it does |
|---|---|
herald-tunnel setup | Register this machine and start the service |
herald-tunnel setup --new-token | Register again with a fresh token (pair your phone again afterwards) |
herald-tunnel setup --no-systemd | Save settings only; run the tunnel yourself |
herald-tunnel run | Run the tunnel in the foreground |
herald-tunnel ensure | Start the tunnel in the background if it is not running |
herald-tunnel status | Check the connection end to end |
herald-tunnel update | Check for a Herald Bridge update now (it also does this by itself) |
herald-tunnel update --status | Show the version, whether it updates itself, and the last result |
herald-tunnel skills | Give your agent (and every Hermes profile) Herald's screen and saved-password skills again, for example after an update |
herald-tunnel passwords import --file <export.csv> --delete | Add a Chrome password export to your agent's vault, then delete the file. Your agent normally runs this for you |
herald-tunnel passwords count | How many logins your agent has saved |