-
-
Notifications
You must be signed in to change notification settings - Fork 206
fix: remove api:antigravity field causing auth issues #210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: remove api:antigravity field causing auth issues #210
Conversation
The api: "antigravity" field being added to opencode.json causes authentication failures with the antigravity plugin. Fixes: NoeFabris/opencode-antigravity-auth#49
|
All contributors have signed the CLA. Thank you! ✅ |
|
I have read the CLA Document and I hereby sign the CLA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR fixes an authentication issue by removing the api: "antigravity" field from the Google provider configuration in ANTIGRAVITY_PROVIDER_CONFIG. According to the linked issue and user reports, this field causes authentication failures with the opencode-antigravity-auth plugin.
Key Changes:
- Removed
api: "antigravity"field from the Google provider object inANTIGRAVITY_PROVIDER_CONFIG
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| google: { | ||
| name: "Google", | ||
| api: "antigravity", | ||
| // NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities). |
Copilot
AI
Dec 25, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After removing the api: "antigravity" field from ANTIGRAVITY_PROVIDER_CONFIG, there's now an inconsistency with CODEX_PROVIDER_CONFIG which still contains api: "codex" at line 408.
If the api field causes authentication issues with the opencode-antigravity-auth plugin, consider whether:
- The
api: "codex"field might cause similar issues with opencode-openai-codex-auth - If both fields should be removed for consistency, or
- If the Codex provider needs this field while Antigravity doesn't (and document why)
Without understanding the different requirements of these two auth plugins, this inconsistency could lead to confusion or similar issues in the future.
| // NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities). | |
| // NOTE: opencode-antigravity-auth expects full model specs (name/limit/modalities). | |
| // It does NOT rely on an `api` field here (unlike opencode-openai-codex-auth, | |
| // which still uses `api: "codex"` in CODEX_PROVIDER_CONFIG). This is why | |
| // ANTIGRAVITY_PROVIDER_CONFIG omits `api` while Codex retains it. |
|
Note: |
|
Closing - need to verify correct base branch (dev vs master) |
Summary
api: "antigravity"field fromANTIGRAVITY_PROVIDER_CONFIGthat was being written to~/.config/opencode/opencode.jsonRelated Issue
Fixes: NoeFabris/opencode-antigravity-auth#49
Multiple users confirmed that removing this field manually resolves the authentication issue.