Skip to content

v1.17.1 — Strip x-goog-api-key & Fix 400 API_KEY_INVALID

Choose a tag to compare

@JoshRob297 JoshRob297 released this 12 Sep 22:31
· 54 commits to main since this release

🌟 What's New in v1.17.1

  • 🔑 Strip x-goog-api-key Header (Fix 400 API_KEY_INVALID):
    • OpenCode automatically injects an AI Studio/Vertex API key via the x-goog-api-key header when intercepting requests to generativelanguage.googleapis.com.
    • The Antigravity backend (cloudcode-pa.googleapis.com) prioritized this header over Authorization: Bearer, rejecting requests with 400 INVALID_ARGUMENT (details[0].reason: API_KEY_INVALID, "API key not valid. Please pass a valid API key.").
    • Stripped x-goog-api-key alongside x-api-key in prepareAntigravityRequest, allowing requests to authenticate cleanly with OAuth Bearer tokens.
  • 🧪 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