Skip to content

feat: add Gemini provider to usage tracker - #539

Open
nora-ellis-ai wants to merge 2 commits into
outsourc-e:mainfrom
nora-ellis-ai:feat/gemini-provider-usage
Open

feat: add Gemini provider to usage tracker#539
nora-ellis-ai wants to merge 2 commits into
outsourc-e:mainfrom
nora-ellis-ai:feat/gemini-provider-usage

Conversation

@nora-ellis-ai

Copy link
Copy Markdown

Adds Gemini (Google AI Studio) as a provider in the Usage Overview modal.

Google AI Studio does not expose a programmatic billing or usage endpoint, so this implementation validates the API key with a lightweight GET to the v1beta/models endpoint and displays connection status only.

What this adds:

  • fetchGeminiUsage() following the existing provider pattern
  • Missing key shows missing_credentials status
  • Invalid or expired key shows auth_expired
  • Valid key shows "API key active" and "Usage data: Not available via API"
  • Registered in Promise.allSettled() aggregate — failure does not affect other providers

To use: add GOOGLE_API_KEY to your hermes-workspace .env file.

outsourc-e pushed a commit that referenced this pull request Jun 5, 2026
… use loopback for session-send fire-and-forget (antmoev); PR #577: accept OpenAI-style list shape for gateway sessions/messages (morganjppeach) — relates to #573
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant