← Back
fulldiagnose

fulldiagnose/antigravity-fixer

Fix Antigravity 'not eligible' error - diagnose, clean credentials, auto-fix

View on GitHub ↗
Stars
323
Forks
33
Watchers
323
Open issues
1
Contributors
1
Language
Python
License
MIT License
Default branch
main
Created Sep 29, 2026Updated Sep 29, 2026

Star growth

Today—
This week—
This month—

Star history will appear here once this repo has been tracked for a couple of days.

README

Antigravity Fixer

Antigravity Fixer

Diagnose and fix Google Antigravity & 9router eligibility errors in seconds.

Python License Platform PRs Welcome


Eligibility check failed: Your current account is not eligible for Antigravity.
There was an unexpected issue setting up your account.
Your current account is not eligible for gemini code assist for individuals at this time.
403 Forbidden — VALIDATION_REQUIRED

Sound familiar? This tool fixes it.

Resolves: 9router 403 errors · Antigravity account not eligible · Gemini Code Assist login failures · Phone number verification stuck on smartphone · Stale OAuth credentials

Also works for 9router and other providers that use Google Antigravity / Gemini Code Assist as their backend.


How It Works

How It Works

Prerequisites · Install · Usage · AI Agent Guide · Uninstallation · Troubleshooting


What Is This?

An open-source CLI tool that diagnoses and fixes the "Your current account is not eligible for Antigravity" and "not eligible for Gemini Code Assist for individuals" errors that show up when logging into Google Antigravity (IDE or CLI), 9router, or any provider built on top of the same backend.

Designed to be used by humans and AI coding agents — clone, run, done.


Prerequisites

Before running this tool, ensure you have:

  • Google Antigravity installed — either the CLI (agy) or Antigravity Desktop App / IDE.
  • Python 3.10+ installed on your system.

Install

git clone https://github.com/fulldiagnose/antigravity-fixer.git
cd antigravity-fixer
pip install -r requirements.txt

Dependencies:

  • camoufox — stealth headless browser automation
  • rich — terminal UI, progress indicators & formatting

Usage

Run the interactive fixer:

python fix.py

Follow the guided steps on screen:

  1. Choose Language: Select 🇮🇩 Bahasa Indonesia or 🇺🇸 English.
  2. Enter Google Account: Provide your @gmail.com email & password (used in-memory only, never saved).
  3. Automated Cleanup: Kills stuck processes, removes credentials, and clears cache across:
    • Antigravity CLI (~/.gemini/antigravity*, ~/.antigravity)
    • Antigravity Desktop App & IDE (AppData / Application Support / .config)
    • Windows Credential Manager / Keychain / Secret Service
  4. Revoke App Permission: Automatically revokes stuck OAuth connections in your Google Account.
  5. Selfie Verification: Automatically launches an Incognito browser to myaccount.google.com/age-verification. Complete the selfie check and press Enter.
  6. Automatic Antigravity CLI Login Test:
    • Immediately after selfie verification, a new terminal opens and runs agy.
    • Select option 1 in the Antigravity CLI login menu.
    • Let agy open the official Google sign-in page automatically—this fixer does not open a separate OAuth URL.
    • Sign in with the Google account that just completed selfie verification.
    • Google displays an authorization code (usually starts with 4/0A...).
    • Copy the code and paste it into the waiting agy prompt:
      Or, paste the authorization code here and press Enter:
      
    • Press ENTER to complete sign-in.

Quick Clean Only

If you only want to purge local cache, credentials, and background processes without revoking:

python fix.py --clean-only

AI Agent Integration

This tool is designed to be called by AI coding agents (Hermes, Aider, Cursor, Codex, etc).

Recommended workflow:

Step 1 → Verify Google Account age verification:
         Instruct user to complete selfie check at https://myaccount.google.com/age-verification

Step 2 → python fix.py --clean-only
         Purge stale credentials, CLI cache, and Desktop App/IDE state

Step 3 → agy
         Select option 1, let agy open Google sign-in, then copy the 4/0A... authorization code from the browser and paste it into agy

Troubleshooting

Error persists after fix

Most common cause: age verification not completed.

  1. Open https://myaccount.google.com/age-verification in your browser.
  2. Choose "Take a selfie" and follow the on-screen instructions.
  3. Once approved, run python fix.py --clean-only and launch agy again.
Browser login timeout
  • Make sure your internet connection is stable.
  • Disable VPN or proxy if active.
Credentials not removed

Run terminal as Administrator (Windows) or with proper permissions, then run:

python fix.py --clean-only
Workspace / G Suite account

Antigravity only supports personal @gmail.com accounts.
Google Workspace accounts (work/school email) are not eligible — this is a Google limitation, not a bug.

9router / third-party provider errors

9router and similar providers route requests through Google Antigravity / Gemini Code Assist.
The same root causes apply — run python fix.py diagnose to identify the issue,
then follow the same fix steps. The error message might differ slightly, but the solution is identical.


Project Structure

antigravity-fixer/
├── fix.py                       # CLI entry point
├── requirements.txt             # Dependencies
├── LICENSE                      # MIT
└── antigravity_fixer/
    ├── __init__.py
    ├── checker.py               # Account diagnosis (age, country, subscription)
    ├── cleaner.py               # Credential & cache cleanup
    ├── browser.py               # OAuth revoke & re-auth
    └── constants.py             # Supported countries, URLs, paths

Uninstallation

To completely uninstall Antigravity Fixer and all its dependencies, just run:

python fix.py --uninstall

Or manually:

pip uninstall -r requirements.txt -y

Then simply delete the antigravity-fixer folder. Done!


Security

  • Passwords are only prompted at runtime via getpass — never written to disk or logs
  • Browser sessions are ephemeral (headless, no persistent state)
  • This tool does not send data to any external server — all operations are local or directed at official Google account pages
  • Source code is open — audit it yourself if in doubt

Supported Countries

Antigravity is available in 190+ countries including Indonesia, Malaysia, Singapore, and more.
Full list: constants.py or official Google docs.


License

MIT — free to use, modify, and distribute.



Built because Google doesn't give you a clear error message 🙃

Report Bug · Request Feature