Repository navigation
v1.17.1 — Strip x-goog-api-key & Fix 400 API_KEY_INVALID
🌟 What's New in v1.17.1
- 🔑 Strip
x-goog-api-keyHeader (Fix 400API_KEY_INVALID):- OpenCode automatically injects an AI Studio/Vertex API key via the
x-goog-api-keyheader when intercepting requests togenerativelanguage.googleapis.com. - The Antigravity backend (
cloudcode-pa.googleapis.com) prioritized this header overAuthorization: Bearer, rejecting requests with400 INVALID_ARGUMENT(details[0].reason: API_KEY_INVALID,"API key not valid. Please pass a valid API key."). - Stripped
x-goog-api-keyalongsidex-api-keyinprepareAntigravityRequest, allowing requests to authenticate cleanly with OAuth Bearer tokens.
- OpenCode automatically injects an AI Studio/Vertex API key via the
- 🧪 1,043 passing tests across 37 test suites.
📦 Installation
Add this to your ~/.config/opencode/opencode.json:
{
"plugin": ["github:JoshRob297/opencode-antigravity-auth"]
}Full Changelog: v1.17.0...v1.17.1
Full Changelog: v1.17.0...v1.17.1