Hermes
An Omarchy bar widget for Hermes token usage: last seven days, top models, and a local / remote gateway source switch.
The panel is display-only. Collectors in bin/ write one JSON record to
~/.local/state/omarchy/agents/usage/hermes.json. The widget watches that
file. If you are already signed into Hermes Desktop on a remote gateway, the
meter reuses that session instead of asking for a second login.
Install
omarchy plugin add https://github.com/okurmustafa/omarchy-hermes.git --enable
The widget lands on the right of the bar. Move it with:
omarchy bar move mustafaokur.hermes --section right
The panel runs its collectors from the plugin folder. You do not need to
put bin/ on your PATH. Doing so can shadow Omarchy’s own
omarchy-agent-usage-update.
Usage
- Left click: open or close the panel
- Right click: refresh now
- Middle click: next provider (only if more than one record is present)
- Escape: close
R: refresh- Arrow keys: move between providers when more than one is listed
- Tab: hand off to the neighboring bar panel
Usage source
- This Computer — read Hermes’ local SQLite ledger (
~/.hermes/state.db) - Remote Gateway — read account-wide analytics over HTTP. If Hermes
Desktop is already signed in to that gateway, that session is used. Otherwise
enter the URL, username, and password. Credentials go over stdin; the saved
config and cookie jar are mode
0600.
Summon without the bar:
omarchy-shell shell summon mustafaokur.hermes '{}'
omarchy-shell shell hide mustafaokur.hermes
Optional CLI helpers
These live in the plugin’s bin/ directory and are not wired as panel
buttons. Run them from that folder (or copy only the ones you want, under a
name that does not collide with Omarchy):
omarchy-install-ai-hermes— if Hermes is already installed, add the Omarchy desktop entry and theme sync. If it is not, prints where to get Hermes and exits. This plugin never downloads or runs an installer.omarchy-launch-hermes— focus an open Hermes window, or launch it.omarchy-theme-set-hermes— write Omarchy palettes into Hermes CLI/TUI and Desktop. Only runs when you invoke it.
Configure
Refresh interval and optional cross-device sync are in the Omarchy settings
panel (barWidget.schema).
Remove
omarchy plugin remove mustafaokur.hermes
That deletes the plugin folder. It does not remove:
~/.config/omarchy/agent-meter.json~/.local/state/omarchy/agents/usage/hermes.json- Hermes themes or the desktop entry created if you ran the optional integration helper
Dependencies & privileges
- Omarchy shell — Quattro
bar-widget - Local usage — read-only access to
~/.hermes/state.db(and named-profile databases). No paid model calls. No network. - Remote gateway — HTTP(S) to session and analytics endpoints only. No prompt or response content is stored. When a Hermes Desktop OAuth session is reused, the meter reads that cookie database and writes rotated tokens back so the desktop app stays signed in.
- Hermes — install Hermes yourself from hermes-agent.nousresearch.com. The plugin will not fetch or execute an installer.
- Python 3 — the meter is stdlib-only (
urllib,sqlite3,http.cookiejar)
Attribution
- Panel structure follows Omarchy’s first-party Agents widget (MIT, David Heinemeier Hansson / Omarchy).
- The portrait mark is traced from the official Hermes Desktop icon (MIT, Nous Research).
License
MIT — see LICENSE.