Arang.dev
Search

OpenClaw Antigravity OAuth Error Troubleshooting - Bypassing the Version Check

How to fix the 'This version of Antigravity is no longer supported' error that occurs when using Google Antigravity with OpenClaw. A write-up on bypassing the version check by patching the User-Agent.

#OpenClaw#Antigravity#트러블슈팅#AI
🌐 Translated

This post was machine-translated from Korean by AI. Some expressions may differ from the original.

Read the original (Korean)

The Problem

While using the Google Antigravity model with OpenClaw (formerly Moltbot/Clawdbot), I suddenly ran into the following error:

This version of Antigravity is no longer supported. Please update to receive the latest features!

The bot couldn't generate a response and just returned the message above.

When I checked the GitHub issue (#4111), I found that many people were running into the same problem.


Root Cause Analysis

The cause of the problem was that the Google server was checking the Antigravity client version.

The pi-ai package used internally by OpenClaw sends requests with the version information included in the User-Agent header:

User-Agent: antigravity/1.11.5 darwin/arm64

This version was judged by the Google server to be an outdated, unsupported version, so the request was rejected.


Solution: Patching the User-Agent

I solved it by referring to the workaround comment on the GitHub issue.

Step 1: Find the Problematic File

First, find the Google Gemini CLI provider file inside the pi-ai package:

# OpenClaw 설치 경로로 이동
cd /opt/homebrew/lib/node_modules/openclaw
 
# 또는 pnpm으로 설치했다면
cd node_modules/.pnpm/@mariozechner+pi-ai@*/node_modules/@mariozechner/pi-ai/dist/providers/

File location:

@mariozechner/pi-ai/dist/providers/google-gemini-cli.js

Step 2: Modify the User-Agent Version

Open the file and find the User-Agent version string:

// 수정 전
'User-Agent': 'antigravity/1.11.5 darwin/arm64'
 
// 수정 후
'User-Agent': 'antigravity/1.15.8 darwin/arm64'

What to change:

  • 1.11.5 → 1.15.8 (update to a currently supported version)

Step 3: Restart OpenClaw

# Gateway 재시작
openclaw gateway restart
 
# 또는 전체 재시작
openclaw gateway stop
openclaw gateway start

Step 4: Verify It Works

After restarting, send a message and you get a proper response!


Actual Application Log

The process of applying it in my environment:

# 1. 파일 위치 확인
$ find /opt/homebrew/lib/node_modules/openclaw -name "google-gemini-cli.js" -type f
/opt/homebrew/lib/node_modules/openclaw/node_modules/.pnpm/@mariozechner+pi-ai@0.49.3_ws@8.19.0_zod@4.3.6/node_modules/@mariozechner/pi-ai/dist/providers/google-gemini-cli.js
 
# 2. 백업 생성
$ cp google-gemini-cli.js google-gemini-cli.js.bak
 
# 3. 버전 문자열 수정
$ sed -i 's/antigravity\/1.11.5/antigravity\/1.15.8/g' google-gemini-cli.js
 
# 4. 변경 확인
$ grep -n "antigravity" google-gemini-cli.js
42:        'User-Agent': 'antigravity/1.15.8 darwin/arm64',
 
# 5. 재시작
$ openclaw gateway restart
Gateway restarted successfully.

Caveats

⚠️ This is a temporary workaround!

  • If the package is updated via openclaw update or npm update, your changes will be overwritten
  • A proper fix needs to be made in the upstream pi-ai package
  • If Google tightens the version check again in the future, the problem could recur

Permanent solutions:

  1. Wait for a pi-ai package update
  2. Or wait for an official OpenClaw update

Summary

ItemDetails
Problem"This version of Antigravity is no longer supported" error
CauseThe User-Agent version string was set to an outdated version
FixChange the version to 1.15.8 in google-gemini-cli.js
Restartopenclaw gateway restart

If you're running into the same problem, you can fix it with the method above. That said, the fundamental fix needs to happen upstream, so it's best to wait for an official update if you can.


References

Comments

Loading comments...
OpenClaw Antigravity OAuth Error Troubleshooting - Bypassing the Version Check | Arang