All plugins

hermes-activity

Hermes Desktop session analytics and provider-reported usage: annual heatmaps, token mix, model breakdowns and source-period summaries. Disclosure — reads the selected profile's state.db read-only and, for the Providers tab, an Activity cache under plugin-data/hermes-activity plus the optional Quota quota_cache.json. Fetch provider data runs a local Node.js (22.18+) collector and, only on that explicit click, calls chatgpt.com through Hermes's signed-in Codex request route (requires_auth: openai-codex) and api.commandcode.ai, opencode.ai and ollama.com with the optional API keys you configure as plugin secrets; it stores usage aggregates and hashed key identifiers locally. No other credential reads, telemetry or sign-in flow; remote profiles go through the configured gateway.

hassan-kamel17Desktopv0.2.2Updated 1 month ago

About

Hermes Desktop session analytics and provider-reported usage: annual heatmaps, token mix, model breakdowns and source-period summaries. Disclosure — reads the selected profile's state.db read-only and, for the Providers tab, an Activity cache under plugin-data/hermes-activity plus the optional Quota quota_cache.json. Fetch provider data runs a local Node.js (22.18+) collector and, only on that explicit click, calls chatgpt.com through Hermes's signed-in Codex request route (requires_auth: openai-codex) and api.commandcode.ai, opencode.ai and ollama.com with the optional API keys you configure as plugin secrets; it stores usage aggregates and hashed key identifiers locally. No other credential reads, telemetry or sign-in flow; remote profiles go through the configured gateway.

hermes-activity

A read-only activity dashboard for Hermes Desktop. It adds a GitHub-style daily contribution grid, token totals and breakdowns, model and platform usage, tools, skills, activity hours, and notable sessions.

Hermes Activity page preview with illustrative sample data

Requirements

  • Hermes Agent >=0.21.7 for the public signed-in provider request API
  • Node.js >=22.18 for native TypeScript provider collection, and npm to build the desktop UI
  • Python is provided by Hermes for the native plugin backend; no additional Python dependencies are installed

Install from Git

hermes plugins install https://github.com/hassan-kamel/hermes-activity
hermes plugins enable hermes-activity

Enable the Activity desktop surface in Capabilities → Plugins. On a local Hermes Desktop install, the page appears in the sidebar and in the ⌘K palette as Open Activity. The desktop surface is opt-in when installed as part of a plugin package.

Development

See CONTRIBUTING.md for setup, tests, privacy requirements and pull request guidelines.

npm install
npm run build
npm run install:local

install:local copies the compiled desktop/plugin.js into $HERMES_HOME/desktop-plugins/hermes-activity/. Hermes Desktop watches this folder and hot-reloads the entry. Set HERMES_HOME when testing a non-default profile/home.

The UI source is src/plugin.tsx; TypeScript compilation and the local bundling script produce one self-contained ESM entry, with runtime imports limited to the Hermes Desktop SDK and React. Styling uses Hermes theme tokens and components so the page follows the active theme.

Data and privacy

The Hermes tab reads the selected profile's state.db in SQLite read-only mode. Aggregates are computed locally on that profile. The desktop page uses Hermes' profile-routed cli.exec RPC; remote profiles run collection on their configured gateway.

The Providers tab is independent of the Quota plugin. Passive reads are cache-only, using $HERMES_HOME/plugin-data/hermes-activity/activity_provider_history.json in the selected profile. Activity also optionally reads $HERMES_HOME/quota_cache.json for display-only plan labels and quota windows. It never uses quota windows as dated usage history.

Fetch provider data uses only Hermes's public credential routes:

ProviderCredential routeHTTPS hosts and endpoints
CodexDeclared requires_auth: [openai-codex]; Hermes's credentialed_provider_request attaches the signed-in account credentials. Activity never receives the token.chatgpt.com/backend-api/wham/profiles/me
CommandCodeOptional COMMAND_CODE_API_KEY through agent.secret_scope.get_secretapi.commandcode.ai/alpha/whoami, /alpha/billing/subscriptions, /alpha/usage/summary
OpenCodeOptional OPENCODE_CONSOLE_API_KEY, then OPENCODE_API_KEY, then OPENCODE_GO_API_KEY, through agent.secret_scope.get_secretopencode.ai/console/api/v2/usage/export
OllamaOptional OLLAMA_API_KEY through agent.secret_scope.get_secretollama.com/api/usage?range=30d

Configure optional keys through Hermes's plugin secret configuration. OpenCode exports require a Console key with usage-read access; an inference-only key may not work. Activity does not directly read Hermes's auth.json, profile .env, credential pools, or other CLIs' token files. The Node child receives only the resolved optional API keys and an explicit PATH, HOME, and HERMES_HOME environment, with only Windows runtime essentials (SYSTEMROOT, WINDIR, COMSPEC, TEMP, TMP, PATHEXT, SYSTEMDRIVE) retained case-insensitively from the parent, plus the credentialless Codex response over stdin. Passive reads do not resolve secrets or make provider requests. Missing credentials or an unavailable public API are reported, never replaced with a private-file fallback.

CommandCode reports period totals only; Codex reports dated token buckets; OpenCode reports daily export totals; Ollama reports dated daily buckets and period totals from its rolling usage API (maximum requested range: 30 days), with legacy activity-period summaries still supported. Previously collected daily buckets remain in the local cache; a first refresh cannot reconstruct a full year. Ollama's range response does not report model breakdowns or quota counters. Missing metrics stay unknown, not zero. Summary-only totals never enter the annual heatmap. Combined figures represent reported account/workspace activity, not exclusively Hermes sessions, and can have partial source coverage.

No telemetry or credential values are stored in the usage cache or returned to the desktop. Refresh does not implement sign-in or credential changes; Hermes manages authentication through its public routes. Provider caches store normalized usage aggregates and hashed scope identifiers where available. See THIRD_PARTY_NOTICES.md for source-adapter attribution.

  • hermes activity provider-history --days 365 --desktop --json

  • hermes activity provider-history --days 365 --desktop --json --refresh

  • hermes activity summary --days 30 --json

  • hermes activity summary --year 2026 --json

  • hermes activity summary --days 365 --desktop --json for the desktop page's compact breakdown payload

  • hermes activity day 2026-01-15 --json

  • /activity 30 in a Hermes session

Daily buckets use the machine’s local time and assign a session to the date it started. Counts include subagent tokens; top-level and subagent session counts are shown separately. Cost is based on stored Hermes billing estimates/actuals and is not a provider-wide billing statement.

Validation

npm run typecheck
npm run build
hermes plugins validate .

License

MIT. See LICENSE.

README from the reviewed commit 0335e95; it updates when the author re-pins.

Developer Mode

Explore built-in Hermes toolsets and actions.

HermesAgent

Developer?

Create a Hermes extension for Desktop or agent workflows.

Developer Section