Files
hermeven/docs/setup.md
T
DanandClaude Fable 5.2 4687cc0114 First vertical slice: Even client, bridge, contract v1, tests, docs
Client (apps/even-client): pure interaction reducer with generation-based
stale-result rejection, HUD renderer, measured pagination, Even Hub SDK
0.0.16 adapter, bridge HTTP client, phone pairing/status/diagnostics page.

Bridge (services/bridge): device pairing and revocable expiring credentials,
turn engine with idempotent submit, cancel, deadlines and restart recovery,
Hermes Runs API adapter, OpenAI-compatible STT adapter, operator CLI.

Contract (packages/contracts): versioned schemas, types and error codes.

Tests: 122 unit/integration (fakes), 6 simulator scenarios (Even Hub
simulator 0.9.5), 9 scenarios against a real Hermes v0.23.1 gateway with a
stub model. No real STT, real model or physical device has been exercised;
see docs/test-evidence.md and docs/device-test-plan.md.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-18 18:21:49 -08:00

3.1 KiB

Setup

Requirements: Node.js 22.13 or later, a Hermes install with the API server enabled, and (for voice) an OpenAI-compatible transcription endpoint.

npm ci
cp .env.example .env      # then edit: HERMES_API_KEY at minimum

1. Hermes

Enable the API server for the profile you want to use (see Hermes's "API Server" docs):

# in that profile's .env
API_SERVER_ENABLED=true
API_SERVER_KEY=<a long random value>

Start the gateway, then put the same key in Hermeven's .env as HERMES_API_KEY. Use a read-only or test profile first.

2. Bridge

npm run bridge                 # listens on 127.0.0.1:8787 by default
curl http://127.0.0.1:8787/healthz

The phone must reach the bridge over HTTPS. Two workable arrangements:

  • a reverse proxy with a certificate in front of the loopback listener, or
  • a private network such as Tailscale with its HTTPS certificates.

Then set HERMEVEN_ALLOWED_ORIGINS to the origin of the page that calls the bridge. For a packaged app that value is not documented by Even: open the phone page, expand Diagnostics, read "Page origin", put that in .env and restart the bridge.

3. Try it without glasses

npm run client:dev             # http://localhost:5173

Add HERMEVEN_ALLOWED_ORIGINS=http://localhost:5173 to .env, restart the bridge, then:

npm run bridge:cli -- pair     # prints a one-time code

Open the page, enter the bridge address and the code, and use "Typed question". This browser preview has no microphone and is not the glasses.

4. Simulator

npm run client:dev
npm run simulate -- http://localhost:5173

npm run simulate calls the simulator package directly, because with npm 10.9 workspaces the evenhub-simulator command link was not created by npm ci on the development machine (npm rebuild @evenrealities/evenhub-simulator also restores it).

The simulator uses your computer's default audio input as the microphone. Add --aid alsa:null on Linux if you do not want it to open one.

5. On the glasses

The Even app only allows network requests to origins listed in the app's manifest, so the bridge origin is supplied when you build:

export HERMEVEN_BRIDGE_ORIGIN=https://your-bridge.example
npm run -w @hermeven/even-client pack      # writes hermeven.ehpk

For a first look, sideload the dev server instead: npm run client:dev, then npx evenhub qr --url http://<your-lan-ip>:5173 and scan it from the Even app (developer mode). Even's docs say sideloaded apps stop when the phone locks, so lock-screen behaviour has to be tested with a beta-channel build (evenhub create, evenhub promote --to beta). Uploading anything to Even's portal is Dan's call.

Then follow docs/device-test-plan.md.

Operating

npm run bridge:cli -- devices            # list
npm run bridge:cli -- revoke <device-id> # revoke now

Tests

npm run typecheck
npm test                    # unit + integration, fakes only
npm run test:simulator      # needs a desktop session; opens the simulator window
npm run test:real-hermes    # needs the hermes CLI; uses a throwaway HERMES_HOME and a stub model