# Setup Requirements: Node.js 22.13 or later and a Hermes install with the API server enabled. Speech recognition is built into the bridge (Whisper on the CPU, about 0.8 GB of memory); the first start downloads about 80 MB of model files into `data/models`. ```sh 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): ```sh # in that profile's .env API_SERVER_ENABLED=true API_SERVER_KEY= ``` 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 ```sh 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 ```sh npm run client:dev # http://localhost:5173 ``` Add `HERMEVEN_ALLOWED_ORIGINS=http://localhost:5173` to `.env`, restart the bridge, then: ```sh 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 ```sh 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: ```sh 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://: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 ```sh npm run bridge:cli -- devices # list npm run bridge:cli -- revoke # revoke now ``` ## Tests ```sh 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 npm run test:real-stt # runs the built-in Whisper model; first run downloads it ```