I had same prolem.
Here is a complete, ready-to-share markdown post you can drop into GitHub, Reddit, or a community forum to help anyone else hitting this wall.
Gemini 3.5 flash solved this while 3.1 pro was doing the laps around… anyway i fixed with that.
[FIX] Google Antigravity Windows Handshake Failure / Loopback OAuth Error
If you are trying to set up the Google Antigravity desktop client on Windows and getting stuck on the Google account login—or if it constantly throws fake “admin restrictions” or “billing account invalid” errors—the app is failing its internal OAuth handshake.
Why this happens
The desktop client uses an internal networking library called gaxios. When the browser redirects back to your computer after a successful Google login, gaxios strictly enforces a TLS check on the local loopback callback (localhost). Because the local callback isn’t running on a signed SSL certificate, the handshake fails silently, drops your authentication token, and defaults to throwing generic billing/admin errors.
Here is how to manually patch the file and bypass the broken handshake.
Step-by-Step Solution
1. Close Antigravity Completely
Make sure the Antigravity desktop app is fully closed and not lingering in your Windows system tray or background processes.
2. Open the Target Folder
Instead of hunting through hidden folders, press Win + R to open the Run dialog box, copy and paste the following path, and hit Enter:
Plaintext
%LocalAppData%\Programs\Antigravity\resources\app\node_modules\gaxios\build\cjs\src\
(Note: If you installed the app globally rather than just for your user profile, the path will be under C:\Program Files\Antigravity\... instead. You can find it by right-clicking the app icon and selecting Open file location).
3. Patch gaxios.js
-
Look for a file named gaxios.js, right-click it, and open it with a text editor (Notepad, VS Code, etc.).
-
Near the very top of the file, locate this line:
JavaScript
const https_1 = require("https");
-
Immediately below it, paste this line to force Node to accept the local authentication redirect:
JavaScript
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";
- Save the file and close the editor.
4. Relaunch and Authenticate
Fire the Antigravity app back up and click Sign in with Google. Your browser will handle the login, and the desktop client will now successfully catch the loopback handshake without crashing.