antigravity error #8037

Closed
opened 2026-02-16 18:08:59 -05:00 by yindo · 4 comments
Owner

Originally created by @iyang1016 on GitHub (Jan 30, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

when i tried to use antigravity as model provider, i encounter this issue

Plugins

opencode-google-antigravity-auth

OpenCode version

1.1.42

Steps to reproduce

No response

Screenshot and/or share link

Image

Operating System

windows 10

Terminal

windows cmd

Originally created by @iyang1016 on GitHub (Jan 30, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description when i tried to use antigravity as model provider, i encounter this issue ### Plugins opencode-google-antigravity-auth ### OpenCode version 1.1.42 ### Steps to reproduce _No response_ ### Screenshot and/or share link <img width="861" height="593" alt="Image" src="https://github.com/user-attachments/assets/471cdb96-c0bc-4107-ade1-5f917c0d5831" /> ### Operating System windows 10 ### Terminal windows cmd
yindo added the windowsbug labels 2026-02-16 18:08:59 -05:00
yindo closed this issue 2026-02-16 18:08:59 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 30, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #11238: Fix: "This version of Antigravity is no longer supported" error - provides a solution for Antigravity version compatibility issues on Windows
  • #11182: [bug] this version of antigravity is no longer supported - similar error message indicating Antigravity version needs updating
  • #11228: error when using antigravity auth in opencode - recent antigravity authentication errors
  • #9204: opencode-antigravity-auth plugin: Claude repeatedly asks same questions + Chinese text display issues - issues with the antigravity-auth plugin
  • #9075: BunInstallFailedError for opencode-antigravity-auth@1.2.8 - dependency conflict issues with antigravity plugin

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Jan 30, 2026): This issue might be a duplicate of existing issues. Please check: - #11238: Fix: "This version of Antigravity is no longer supported" error - provides a solution for Antigravity version compatibility issues on Windows - #11182: [bug] this version of antigravity is no longer supported - similar error message indicating Antigravity version needs updating - #11228: error when using antigravity auth in opencode - recent antigravity authentication errors - #9204: opencode-antigravity-auth plugin: Claude repeatedly asks same questions + Chinese text display issues - issues with the antigravity-auth plugin - #9075: BunInstallFailedError for opencode-antigravity-auth@1.2.8 - dependency conflict issues with antigravity plugin Feel free to ignore if none of these address your specific case.
Author
Owner

@cravenceiling commented on GitHub (Jan 30, 2026):

This is not an opencode issue but a opencode-antigravity-auth one. I think it's already fixed.

https://github.com/anomalyco/opencode/issues/11182#issuecomment-3820652855

@cravenceiling commented on GitHub (Jan 30, 2026): This is not an opencode issue but a `opencode-antigravity-auth` one. I think it's already fixed. https://github.com/anomalyco/opencode/issues/11182#issuecomment-3820652855
Author
Owner

@basiltt commented on GitHub (Feb 2, 2026):

How to Fix "This version of Antigravity is no longer supported" on Windows 11 (OpenCode)

If you are seeing the error "This version of Antigravity is no longer supported" when running OpenCode, it usually means the Antigravity auth plugin is outdated and/or cached auth/session data is forcing an old userAgent/version to be reused.

Follow the steps below in PowerShell to force-refresh the plugin and clean the local caches.


Step 1: Update the Antigravity Auth Plugin

Force-install the latest auth plugin globally:

npm install -g opencode-antigravity-auth@latest

If you use bun for global installs, you can try:

bun add -g opencode-antigravity-auth@latest

Step 2: Clear OpenCode Cache

OpenCode can cache plugin/session data. Clear it to ensure the latest plugin is picked up:

# Clear local app cache
Remove-Item -Recurse -Force "$env:LOCALAPPDATA\opencode" -ErrorAction SilentlyContinue

# Clear internal node_modules cache (if present)
Remove-Item -Recurse -Force "$HOME\.cache\opencode\node_modules" -ErrorAction SilentlyContinue

Step 3: Remove Outdated Antigravity Accounts Config

Delete the old accounts file so OpenCode recreates it cleanly:

Remove-Item "$env:APPDATA\opencode\antigravity-accounts.json" -ErrorAction SilentlyContinue

Step 4: Re-Authenticate

Run the login flow again:

opencode auth login

Then:

  • Select Google as the provider
  • Select OAuth with Google (Antigravity)
  • Complete login in the browser

Step 5: Verify the Fix

Run a quick test:

opencode run "test" --model=google/antigravity-gemini-3-flash

Expected result: You should get a normal response (not the version error).


Note (If It Still Fails)

Double-check your OpenCode config file:

  • Path: %USERPROFILE%\.config\opencode\opencode.json

Make sure it is not pinned to an older auth plugin and is using:

  • opencode-antigravity-auth@latest
@basiltt commented on GitHub (Feb 2, 2026): # How to Fix "This version of Antigravity is no longer supported" on Windows 11 (OpenCode) If you are seeing the error **"This version of Antigravity is no longer supported"** when running OpenCode, it usually means the **Antigravity auth plugin is outdated** and/or **cached auth/session data** is forcing an old `userAgent`/version to be reused. Follow the steps below **in PowerShell** to force-refresh the plugin and clean the local caches. --- ## Step 1: Update the Antigravity Auth Plugin Force-install the latest auth plugin globally: ```powershell npm install -g opencode-antigravity-auth@latest ``` > If you use `bun` for global installs, you can try: > > ```powershell > bun add -g opencode-antigravity-auth@latest > ``` --- ## Step 2: Clear OpenCode Cache OpenCode can cache plugin/session data. Clear it to ensure the latest plugin is picked up: ```powershell # Clear local app cache Remove-Item -Recurse -Force "$env:LOCALAPPDATA\opencode" -ErrorAction SilentlyContinue # Clear internal node_modules cache (if present) Remove-Item -Recurse -Force "$HOME\.cache\opencode\node_modules" -ErrorAction SilentlyContinue ``` --- ## Step 3: Remove Outdated Antigravity Accounts Config Delete the old accounts file so OpenCode recreates it cleanly: ```powershell Remove-Item "$env:APPDATA\opencode\antigravity-accounts.json" -ErrorAction SilentlyContinue ``` --- ## Step 4: Re-Authenticate Run the login flow again: ```powershell opencode auth login ``` Then: - Select **Google** as the provider - Select **OAuth with Google (Antigravity)** - Complete login in the browser --- ## Step 5: Verify the Fix Run a quick test: ```powershell opencode run "test" --model=google/antigravity-gemini-3-flash ``` ✅ Expected result: You should get a normal response (not the version error). --- ## Note (If It Still Fails) Double-check your OpenCode config file: - Path: `%USERPROFILE%\.config\opencode\opencode.json` Make sure it is not pinned to an older auth plugin and is using: - `opencode-antigravity-auth@latest`
Author
Owner

@rekram1-node commented on GitHub (Feb 2, 2026):

please consult antigravity repo instead

@rekram1-node commented on GitHub (Feb 2, 2026): please consult antigravity repo instead
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8037