• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 25325051529

04 May 2026 02:33PM UTC coverage: 64.538% (+0.04%) from 64.499%
25325051529

push

github

web-flow
Correct Gemini CLI LLM gateway config to proxy mode (#5142)

* Correct Gemini CLI LLM gateway config to proxy mode

Gemini CLI has no dynamic token-command equivalent (no apiKeyHelper
analogue), so it must use proxy mode like Cursor rather than direct mode.

The previous config used two invalid settings.json keys:
- /auth/tokenCommand  — not a recognised Gemini CLI field
- /baseUrl            — silently ignored as a top-level key

Replace with the correct proxy-mode keys:
- /security/auth/selectedType = "gemini-api-key" (required so that
  GOOGLE_GEMINI_BASE_URL is honoured; OAuth auth ignores the override,
  fixed in gemini-cli v0.40.0 PR #25357)
- /env/GEMINI_API_KEY = placeholder key (proxy does not validate it)
- /env/GOOGLE_GEMINI_BASE_URL = local proxy address

Fixes #5141

* fixes from review

---------

Co-authored-by: taskbot <taskbot@users.noreply.github.com>

45 of 51 new or added lines in 4 files covered. (88.24%)

6 existing lines in 2 files now uncovered.

61891 of 95899 relevant lines covered (64.54%)

59.77 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

79.38
/pkg/transport/proxy/httpsse/http_proxy.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc