[INFRA] Provision Gemini API key and configure in Hermes backend #747

Closed
opened 2026-03-30 01:56:44 +00:00 by Timmy · 1 comment
Owner

Phase 3 — Prototype & Build

Objective

Get a Gemini API key from Google AI Studio and wire it into the Hermes backend as the primary reasoning endpoint.

Acceptance

  • Generate API key at aistudio.google.com
  • Store securely in ~/.hermes/google_api_key (not in repo)
  • Verify key works: python3 -c "from google import genai; ..." returns response
  • Add GOOGLE_API_KEY to Hermes environment/config
  • Document rate limits for free tier vs Ultra tier
  • Verify OpenAI-compatible endpoint works (for drop-in replacement)

Technical Notes

from google import genai
client = genai.Client()  # reads GOOGLE_API_KEY
response = client.models.generate_content(
    model='gemini-3.1-pro-preview',
    contents='...',
)

OpenAI compat: base_url='https://generativelanguage.googleapis.com/v1beta/'

Refs

  • API docs: ai.google.dev/gemini-api/docs
  • Pricing: ai.google.dev/gemini-api/docs/pricing
## Phase 3 — Prototype & Build ### Objective Get a Gemini API key from Google AI Studio and wire it into the Hermes backend as the primary reasoning endpoint. ### Acceptance - [ ] Generate API key at `aistudio.google.com` - [ ] Store securely in `~/.hermes/google_api_key` (not in repo) - [ ] Verify key works: `python3 -c "from google import genai; ..."` returns response - [ ] Add `GOOGLE_API_KEY` to Hermes environment/config - [ ] Document rate limits for free tier vs Ultra tier - [ ] Verify OpenAI-compatible endpoint works (for drop-in replacement) ### Technical Notes ```python from google import genai client = genai.Client() # reads GOOGLE_API_KEY response = client.models.generate_content( model='gemini-3.1-pro-preview', contents='...', ) ``` OpenAI compat: `base_url='https://generativelanguage.googleapis.com/v1beta/'` ### Refs - API docs: `ai.google.dev/gemini-api/docs` - Pricing: `ai.google.dev/gemini-api/docs/pricing`
Timmy added this to the M5: Google AI Ultra Integration milestone 2026-03-30 01:56:44 +00:00
Timmy added the google-ai-ultrainfrastructuregemini-apip0-critical labels 2026-03-30 01:56:44 +00:00
Author
Owner

Audit: Google AI Ultra integration epic — these are aspirational proposals, not scoped work. Closing. Reopen individually with acceptance criteria if needed.

Audit: Google AI Ultra integration epic — these are aspirational proposals, not scoped work. Closing. Reopen individually with acceptance criteria if needed.
Timmy closed this issue 2026-04-03 23:00:33 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Timmy_Foundation/the-nexus#747