[Bug][macOS] OAuth redirect stuck at auth-success page - localhost redirect not working

Device: Mac Mini M4
OS: macOS
Browsers tested: Chrome, Safari, Brave (all same result)

Issue:
After clicking “Sign in with Google” and completing authentication,
the browser redirects to:

But there is NO token in the URL and the app never receives the auth code.
The app stays on the login screen with no error message.

What I’ve tried:

  • Multiple Google accounts
  • Multiple browsers (Chrome, Safari, Brave, Incognito)
  • Reinstall app + clear cache (~/.gemini/antigravity)
  • Revoked third-party app access and retried
  • Confirmed localhost port is open via lsof
  • curl to localhost port fails (Connection refused)

The OAuth callback URL in the login request shows:
redirect_uri=http://localhost:[PORT]/oauth-callback

But the browser never redirects to localhost,
it goes directly to auth-success page without token.

Please help.

Hi! I found a non-programmatic workaround for this issue.

My assumption is that Gemini CLI and Google Antigravity share the same OAuth authentication system. Based on this, here’s what worked for me:

  1. Install Gemini CLI via Homebrew:

    brew install gemini-cli
    
  2. Run gemini in your terminal and complete the login flow using the same Google account you want to use with Antigravity.

  3. Once authenticated in Gemini CLI, try signing into Antigravity with that same account.

This resolved the redirect issue for me. Hope it helps!

Hi @hyunjung ,

Welcome to the Google AI for Developers! Thank you for bringing the issue to our attention. Our engineering team is currently investigating the matter, and we appreciate your patience as we work toward a resolution.