Skip to main content

herald-bridge (Herald Bridge)

Connect your local Hermes AI agent to Herald — voice-first conversations on mobile.

Full guide: https://heraldbridge.dev/docs/setup.

Install (it keeps itself up to date)

Install into its own venv at ~/.herald-relay, the only place Herald Bridge can update itself. It is published on PyPI as herald-bridge:

python3 -m venv ~/.herald-relay
~/.herald-relay/bin/pip install -U herald-bridge
~/.herald-relay/bin/herald-tunnel setup     # registers this machine, installs the service
~/.herald-relay/bin/herald-tunnel status    # local Hermes → relay → this tunnel, end to end

setup writes the herald: block of ~/.hermes/config.yaml for you:

herald:
  relay_url: https://herald-api.eventhorizonlabs.xyz
  device_token: <registered by setup>
  # auto_update: false   # pin this version

(Older docs said plugins.herald-relay and wss://relay.herald.app. Nothing reads that key, and that host never existed.)

Installed somewhere else? A bridge installed with pip install into Hermes' own venv, with pip --user, or into any other venv moves itself into ~/.herald-relay: herald-tunnel setup does it before writing anything, and a running tunnel does it in the background once nothing is in flight (herald_relay/migrate.py). It installs the release named by the signed manifest, rewrites only the ExecStart line of the systemd user unit (and the keepalive script and skills), and re-execs from there. The device token and settings live in ~/.hermes/config.yaml, so pairing is unchanged. Not moved: developer checkouts (pip install -e), HERALD_BRIDGE_MIGRATE=0, automatic updates turned off, or a tunnel for a non-default HERMES_HOME.

How it works

The plugin dials OUT from your machine to Herald Cloud. No port forwarding needed.
Hermes works normally; Herald notifies you on mobile when it needs you or finishes a task.

Configuration

Key (herald: in ~/.hermes/config.yaml) Default Description
relay_url https://herald-api.eventhorizonlabs.xyz Herald relay this machine dials out to
device_token registered by setup Identifies this machine at the relay
auto_update true false pins this version

Environment variables

  • HERALD_RELAY_URL, HERALD_DEVICE_TOKEN — fallbacks if the herald: block is missing
  • HERALD_LOCAL_HERMES_URL — override local Hermes URL (default: http://127.0.0.1:8642)
  • HERALD_BRIDGE_AUTO_UPDATE=0 — turn automatic updates off (or herald.auto_update: false in ~/.hermes/config.yaml). Also refuses "update now" from the app.
  • HERALD_BRIDGE_MIGRATE=0 — don't move a bridge installed elsewhere into ~/.herald-relay.

Automatic updates (0.8.0+)

herald-tunnel run keeps Herald Bridge up to date by itself (herald_relay/bridge_update.py):

  1. On start, every 6 h (± 30 min jitter), when the relay hints a newer release on connect, and when the app or an operator asks ("update now"), it fetches GET <relay>/relay/plugin/manifest: a DSSE envelope signed offline with Ed25519 (scripts/release_plugin.py; the public key is compiled into the plugin). Expired manifests and versions not newer than the running one are refused.
  2. Machines in the release's rollout_percent slice (stable per machine) download the wheel (size-capped, sha256-checked) and install it into a NEW venv, ~/.herald-relay-versions/<version>, which must pass herald-tunnel selfcheck.
  3. When nothing has been in flight for 20 s (no run, no forwarded request, no approval), the stable path ~/.herald-relay is flipped to the new venv with one rename(2) and the tunnel re-execs itself. systemd, the keepalive and skills keep using ~/.herald-relay.
  4. The new version is on probation until it registers with the relay. If it crash-loops (3 starts) or cannot register while the relay is reachable, ~/.herald-relay is flipped back, the version is marked bad and the previous build restarts.

Only a venv Herald owns is updated: ~/.herald-relay, ~/.herald/venv (Herald Cloud), or HERALD_BRIDGE_ROOT. A bridge installed anywhere else moves itself into ~/.herald-relay first (see "Installed somewhere else?" above). herald-tunnel update asks for an update now; herald-tunnel update --status shows the last result. Machines on 0.7.x and older have no updater: they need one manual pip install -U to reach 0.8.0 (0.8.1+ when installed outside ~/.herald-relay, so the move kicks in).

Releasing: python scripts/release_plugin.py --rollout 10 (builds, attaches the wheel to GitHub release plugin-v<version>, signs with Secret Manager herald-relay-signing-key, writes backend/release/plugin-manifest.json), merge that file, then --resign --rollout 100 when the first slice is healthy. The relay counts machines per version at GET /relay/plugin/versions (header X-Herald-Ops-Token).

Herald Bridge keeps Hermes updated (0.9.0+)

Hermes has no automatic update. herald-tunnel run updates it, but only to the Hermes release Herald tested, and only where that's safe (herald_relay/hermes_update.py):

  • Signed pin. The same signed manifest may carry "hermes": {"version", "tag", "git_sha", "rollout_percent"}, set with release_plugin.py --resign --hermes-tag vX.Y.Z --hermes-rollout 10. No block means nothing happens. A new tag starts at 0 %.
  • Safe boxes only. The box must be an official source checkout run by a hermes-gateway* systemd user unit, with a clean tree and no local commits. Carried patches are skipped and reported, never clobbered. Herald Cloud (image-managed), forks and opted-out boxes are skipped.
  • Never past the tested release, never backwards. The upstream tag must be the signed commit and the box must be strictly behind it. If upstream already shipped a newer stable release, wait, because hermes update would go there.
  • Staged, then idle. The release is compiled in a throwaway git worktree. It is applied only after the gateway has reported no active agent, API run or delegation (/health/detailed) for 2 minutes.
  • Hermes installs it. hermes update --yes --channel stable --no-gateway-restart handles dependencies, config migrations and the downgrade guard. We check it landed on the signed commit.
  • Restart, health, rollback. The hermes-gateway* units are restarted through the user's systemd. Checks: local /health must report the new version and /v1/models must answer with the key. Through the relay, /health, /api/soul and /v1/skills must answer. On any failure the checkout goes back to the previous commit, the gateway restarts and is re-checked, and the version is marked bad on that box. A failed rollback halts updates there (rollback_failed) until an operator looks.
  • Opt out: HERALD_HERMES_AUTO_UPDATE=0 or herald.hermes_auto_update: false.
  • Fleet view: every connect reports hermes_update (current, target, state, why skipped). GET /relay/plugin/versions counts Hermes versions and skip reasons. POST /relay/plugin/update-now {"device_token": …, "hermes": true} checks one box now (skips the rollout slice, never the safety checks).

Files the agent makes

When the agent writes MEDIA:/absolute/path in a reply, the Herald app shows the file: a picture inline, anything else as an attachment to open, save or share. The app fetches it from this tunnel (herald_relay/local_files.py), never from a public link:

Request Answer
GET [/p/<profile>]/_herald/file?path=<abs>&info=1 {name, size, mime, kind, mtime, max_bytes, chunk_bytes}
GET …/_herald/file?path=<abs>&offset=<n>&length=<n>&mtime=<m> one piece (≤ 2 MiB) as {…, offset, b64, eof}
GET …/_herald/file?path=<abs>&w=<px> a picture shrunk to w (≤ 1600), WebP, no EXIF/GPS: {mime, b64, width, height}
  • Only the holder of that profile's API key (checked against local Hermes).
  • Only the home folder minus hidden folders, Hermes' own media folders (generated images, screenshots) and the user's own temp files. Credentials by name (id_rsa, *.pem, credentials.json, .env*, …) and anything that starts like a private key are refused everywhere. HERALD_FILE_ROOTS (os.pathsep list) replaces the home folder.
  • Files over 50 MB (HERALD_FILE_MAX_MB) are not sent; the app says how big the file is.
  • Logs carry status and byte counts, never a path.

Architecture

Mobile App  ←→  Herald Cloud  ←(WebSocket)→  hermes-herald plugin  ←→  Local Hermes
  1. Herald Cloud receives voice/text from your mobile app.
  2. It forwards the HTTP request over the persistent WebSocket tunnel.
  3. The plugin proxies it to your local Hermes API and streams the response back.
  4. When Hermes fires an approval_required or completes a long task, the plugin sends a push trigger so Herald Cloud wakes your phone.

Agent name and skills on stock Hermes

Herald reads the agent's name from GET /api/soul and its skills from GET /v1/skills. Stock Hermes does not serve the first (404), and its /v1/skills currently fails (500). The tunnel answers both paths itself, for the default profile and /p/<profile>/…, whenever local Hermes can't: it asks Hermes first and passes a working answer through untouched, otherwise it checks the caller holds that profile's key and builds the same answer with Hermes' own loaders (agent_info_helper.py, run with Hermes' interpreter), falling back to reading SOUL.md and skills/**/SKILL.md. Nothing needs to be patched into Hermes, so hermes update no longer breaks either.

Metadata

Release files for herald-bridge 0.9.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for herald-bridge 0.9.5
File Size Uploaded Provenance Actions
herald_bridge-0.9.5.tar.gz 267.5 kB With provenance Details for herald_bridge-0.9.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for herald-bridge 0.9.5
File Interpreter ABI Platform Actions
herald_bridge-0.9.5-py3-none-any.whl Python 3 none any Details for herald_bridge-0.9.5-py3-none-any.whl

Total release size: 411.1 kB

Release files / herald_bridge-0.9.5.tar.gz

Download URL herald_bridge-0.9.5.tar.gz
Size 267.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7000dba5dc03a714485ec323e3b0c305afbe226b7d4a40a71f91e96f4c948daf
BLAKE2b-256 checksum
How to use checksums
8be81907787307d456404592f01de78a818586b5ab54dfc44e07b9e564d7525e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Release files / herald_bridge-0.9.5-py3-none-any.whl

Download URL herald_bridge-0.9.5-py3-none-any.whl
Size 143.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55d8dad000ae6975ed82612e387fd71d4f091f28fafdda0282bd28834f887303
BLAKE2b-256 checksum
How to use checksums
aea2a278e4a2b1a8c66834d8f2e75afb6948db772db96074062dd015596e42ca
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

Security for herald-bridge 0.9.5

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for herald_bridge-0.9.5.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 25, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page