Fix: "This version of Antigravity is no longer supported" error #8003

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

Originally created by @moonjoke001 on GitHub (Jan 29, 2026).

Originally assigned to: @rekram1-node on GitHub.

Problem

When using OpenCode with Antigravity plugin, users may encounter this error:

This version of Antigravity is no longer supported

Root Cause

The userAgent version in ~/.config/opencode/antigravity-accounts.json is outdated. Antigravity now requires version 1.15.8 (released on January 24, 2026).

Solution

Step 1: Backup your accounts file

cp ~/.config/opencode/antigravity-accounts.json ~/.config/opencode/antigravity-accounts.json.backup

Step 2: Update all User-Agent versions to 1.15.8

sed -i -E 's/"antigravity\/1\.[0-9]+\.[0-9]+/"antigravity\/1.15.8/g' ~/.config/opencode/antigravity-accounts.json

Step 3: Clear OpenCode cache

rm -rf ~/.cache/opencode

Step 4: Kill and restart OpenCode

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

Verification

Check that all accounts now show the updated version:

cat ~/.config/opencode/antigravity-accounts.json | jq '.accounts[].fingerprint.userAgent'

All accounts should now show "antigravity/1.15.8" with their respective platform suffixes.

Environment

  • OS: Linux (Ubuntu)
  • OpenCode version: 1.1.26
  • Plugin: opencode-antigravity-auth@latest

This solution has been tested and confirmed working on 2026-01-30.

Originally created by @moonjoke001 on GitHub (Jan 29, 2026). Originally assigned to: @rekram1-node on GitHub. ## Problem When using OpenCode with Antigravity plugin, users may encounter this error: ``` This version of Antigravity is no longer supported ``` ## Root Cause The `userAgent` version in `~/.config/opencode/antigravity-accounts.json` is outdated. Antigravity now requires **version 1.15.8** (released on January 24, 2026). ## Solution **Step 1: Backup your accounts file** ```bash cp ~/.config/opencode/antigravity-accounts.json ~/.config/opencode/antigravity-accounts.json.backup ``` **Step 2: Update all User-Agent versions to 1.15.8** ```bash sed -i -E 's/"antigravity\/1\.[0-9]+\.[0-9]+/"antigravity\/1.15.8/g' ~/.config/opencode/antigravity-accounts.json ``` **Step 3: Clear OpenCode cache** ```bash rm -rf ~/.cache/opencode ``` **Step 4: Kill and restart OpenCode** ```bash pkill -9 opencode opencode run "test" --model=google/antigravity-gemini-3-flash ``` ## Verification Check that all accounts now show the updated version: ```bash cat ~/.config/opencode/antigravity-accounts.json | jq '.accounts[].fingerprint.userAgent' ``` All accounts should now show `"antigravity/1.15.8"` with their respective platform suffixes. ## Environment - OS: Linux (Ubuntu) - OpenCode version: 1.1.26 - Plugin: `opencode-antigravity-auth@latest` --- This solution has been tested and confirmed working on 2026-01-30.
yindo closed this issue 2026-02-16 18:08:54 -05:00
Author
Owner

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

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

  • #11182: [bug] this version of antigravity is no longer supported. Please update to receive the latest features!
  • #11228: error when using antigravity auth in opencode

Both issues describe the same error message and symptoms. Feel free to ignore if your specific case differs from these.

@github-actions[bot] commented on GitHub (Jan 29, 2026): This issue might be a duplicate of existing issues. Please check: - #11182: [bug] this version of antigravity is no longer supported. Please update to receive the latest features! - #11228: error when using antigravity auth in opencode Both issues describe the same error message and symptoms. Feel free to ignore if your specific case differs from these.
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`
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8003