Google’s Gemini CLI strips stray Authorization headers to fix API-key 401s

loulanyue · ghdev · 2026-07-27

What changed

Google’s gemini-cli fixes a bug where, in GEMINIAPIKEY mode, a leftover Authorization header could override the intended x-goog-api-key auth path and trigger 401 UNAUTHENTICATED ACCESSTOKENTYPEUNSUPPORTED errors on generativelanguage.googleapis.com.

Details

Original post →

More from coding & agent

coding & agent channel →