Antigravity Auth in desktop #4741

Open
opened 2026-02-16 17:45:14 -05:00 by yindo · 2 comments
Owner

Originally created by @Kirill39127 on GitHub (Jan 11, 2026).

Originally assigned to: @adamdotdevin on GitHub.

Question

How soon will the ability to add models via Antigravity Auth be available in OpenCode desktop?"

Originally created by @Kirill39127 on GitHub (Jan 11, 2026). Originally assigned to: @adamdotdevin on GitHub. ### Question How soon will the ability to add models via Antigravity Auth be available in OpenCode desktop?"
yindo added the web label 2026-02-16 17:45:14 -05:00
Author
Owner

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

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

  • #6425: It is strongly recommended that OpenCode only keep the official accompanying models! Why? (discusses need for custom model support in desktop)
  • #6945: [FEATURE]: Suppliers can temporarily enable or disable these functions. The desktop version reads the models configured in the opencode.json file. (includes desktop model configuration features)
  • #6280: opencode not picking up Google Vertex AI service account json (related to authentication setup in desktop)

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

@github-actions[bot] commented on GitHub (Jan 11, 2026): This issue might be a duplicate of existing issues. Please check: - #6425: It is strongly recommended that OpenCode only keep the official accompanying models! Why? (discusses need for custom model support in desktop) - #6945: [FEATURE]: Suppliers can temporarily enable or disable these functions. The desktop version reads the models configured in the opencode.json file. (includes desktop model configuration features) - #6280: opencode not picking up Google Vertex AI service account json (related to authentication setup in desktop) Feel free to ignore if none of these address your specific case.
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#4741