Windows
.battool to fixThere was an unexpected issue setting up your accountby cleaning broken Google Cloud Code hosts entries and flushing DNS.
Google Cloud Code Hosts Fix is a small Windows batch script for fixing Antigravity sign-in, Google Cloud Code account setup, and 9Router routing issues caused by stale or incorrect local hosts entries.
It is especially useful for cases where Antigravity shows this error while being routed through tools such as 9Router:
There was an unexpected issue setting up your accountThe script removes any line in the Windows hosts file that contains:
cloudcode-pa.googleapis.comIf this domain is blocked or mapped to a wrong IP, Google Cloud Code / Antigravity may fail during account setup. This can happen after local routing, proxy, or MITM-style debugging setups leave a stale hosts entry behind.
- 🛡️ Automatically requests Administrator permission
- 🧹 Removes broken
cloudcode-pa.googleapis.comhosts entries - ⚡ Flushes Windows DNS cache
- ✅ Checks whether the fix was applied successfully
- 🔒 No API keys, tokens, accounts, or private data required
- 🌈 Colorful console output for easier reading
This project may help if you are searching for:
Antigravity there was an unexpected issue setting up your accountGoogle Cloud Code sign in error WindowsGoogle Cloud Code account setup errorcloudcode-pa.googleapis.com hosts file fix9Router Antigravity setup issueWindows hosts file DNS fix for Google Cloud Code
Download the script from this repository:
fix-google-cloudcode.batOr clone the repo:
git clone https://github.com/ltntai/google-cloudcode-hosts-fix.git- Download
fix-google-cloudcode.bat. - Right-click the file.
- Choose Run as administrator.
- Wait for the script to finish.
- Restart Google Cloud Code / Antigravity if needed.
| Step | Action |
|---|---|
| 1 | Requests Administrator permission |
| 2 | Opens C:\Windows\System32\drivers\etc\hosts |
| 3 | Removes entries containing cloudcode-pa.googleapis.com |
| 4 | Runs ipconfig /flushdns |
| 5 | Verifies that the hosts entry is gone |
No.
This script does not use:
- ❌ API keys
- ❌ tokens
- ❌ Google account data
- ❌ IP-specific configuration
- ❌ project IDs
- ❌ private credentials
It only modifies your local Windows hosts file.
- Windows
- Administrator permission
This script only removes entries containing:
cloudcode-pa.googleapis.comfrom the local hosts file.
It does not install software, download files, or send data anywhere.
Use at your own risk. This tool is provided as-is for fixing local DNS / hosts configuration issues.
Made with 💙 by Tấn Tài