If you’re pulling your hair out because Antigravity hangs for 5 minutes at a time with endless 503 No capacity available errors on Flash / High models, stop blaming your internet.
Open PowerShell and run this single command while Antigravity is running:
Look closely at the --cloud_code_endpoint flag.
Notice that lovely little daily- prefix?
That’s right. Someone in the release pipeline shipped v2.28 hardcoded to Google’s internal daily staging cluster (daily-cloudcode-pa.googleapis.com) instead of the actual production endpoint (cloudcode-pa.googleapis.com). The staging cluster has tiny TPU allocations, which is why it collapses under global load and locks your stream for 300 seconds until deadline exceeded.
Seriously, who on earth approved this in the release pipeline? Hardcoding an internal staging endpoint into a global production build is an astonishing oversight. Is this just peak Hanlon’s Razor where someone forgot to toggle the staging flag before pushing the release, or are they unironically using public users as guinea pigs for internal cluster load testing? Either way, shipping broken defaults to thousands of developers is wild.
For those who know how to connect the dots:
Where does that spawn argument come from? Peek inside resources/app.asar in your installation folder (startLanguageServer).
The string 'https://daily-cloudcode-pa.googleapis.com' is exactly 43 bytes (including quotes).
Warning: Do not pad with trailing spaces if you do a binary swap — Go’s internal URL parser will panic on whitespace in hostnames.
P.S. For those who still don’t get it or are too afraid to touch byte strings:
You literally have an AI coding assistant in front of you.
Switch your model selector in Antigravity to Claude Sonnet (since Gemini is the one choking on that dead staging cluster right now).
Copy and paste the post above into the chat.
Tell Claude: “Check what this guy told me. If it is reasonable, patch my app.asar using the exact 43-byte JS fallback trick described above. Do it automatically. Make a backup.”
Restart Antigravity.
He will write the 10-line Python script, make a .bak backup, and hot-patch the binary for you in 3 seconds flat. Let the AI fix its own broken house. You’re welcome.
@Frank6@eno_gkcek I am running this exact patch right now on v2.29 and it works flawlessly with zero errors.
If you’re getting “model is not available retry 1/10”, one of three things happened: you corrupted the string/file during patching, your background process didn’t actually restart, or your network/proxy is blocking the endpoint.
Does it have spaces in it? (e.g. https://cloudcode-pa.googleapis.com). If you padded with spaces, Go’s internal URL parser fails and drops the connection.
Is it still daily-? Then your process never restarted (kill language_server.exe in Task Manager).
Does it literally say 'https://cloudcode-pa.googleapis.com'||'aa' inside the command line? If so, you put it in the wrong place or your quotes got mangled. The process flag should resolve to plain https://cloudcode-pa.googleapis.com.
2. Did you touch app.asar with a text editor?
If you opened app.asar in Notepad, VS Code, or any regular text editor and hit Save, you corrupted the binary ASAR table.
Restore your backup (app.asar.bak) or reinstall Antigravity, then use the clean Python binary patch without opening the file in an editor.
3. Test the endpoint from your network
Run this in PowerShell:
curl.exe -I https://cloudcode-pa.googleapis.com
If this hangs, returns an SSL error, or gives a connection refused, your VPN, proxy, or ISP is blocking or failing to route to Google’s API server.
(Note: Seeing HTTP/1.1 404 Not Found with Server: ESF is completely normal and expected — Google’s API root has no webpage. 404 means DNS, TLS, and the connection to Google are 100% healthy. A real network failure will show Connection timed out, Could not resolve host, Connection refused, or an SSL error).
Paste the output of command #1 here so we can see what your process actually received.
I’m using the cli and tried your fix but it’s still not works. i also disabled my pihole and other proxies and vpns. Still stuck with the message that the model is unavailable. Switching to different models also not work.
For macOS users (or anyone encountering permission issues when trying to patch binaries), you can bypass this cleanly at the DNS level via /etc/hosts in less than 30 seconds:
Bash
# 1. Resolve production endpoint IP
IP=$(dig +short cloudcode-pa.googleapis.com | head -n 1)
# 2. Map the daily staging hostname to the production IP
echo "$IP daily-cloudcode-pa.googleapis.com" | sudo tee -a /etc/hosts
# 3. Flush macOS DNS cache
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
# 4. Verify (seeing HTTP/2 404 with Server: ESF confirms it works)
curl -I https://daily-cloudcode-pa.googleapis.com
Then kill the background process so it reconnects:
Welcome to the Forum, and thank you for reporting the 503 Unavailable capacity errors and 5-minute timeouts.
Why Antigravity CLI Shows Model unavailable (attempt 1/10): The Model unavailable (attempt 2/10), retrying in 12s status line is Antigravity CLI’s built-in countdown when retrying a temporary 503 server capacity constraint (Changelog, Plans). We recommend avoiding modifications to application files or /etc/hosts and keeping a clean installation of Antigravity App (v2.29.0) and Antigravity CLI (v1.5.1) (Get started).
**Route Antigravity CLI Directly via a Gemini API Key **: Since switching models in the CLI did not resolve the error, you can send CLI model requests directly to the Gemini API without an account session by setting "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json, exporting GEMINI_API_KEY="your-api-key" (from Google AI Studio), and launching agy (Authenticate — Using a Gemini API key).
If the issue persists on a clean v2.29.0 / CLI v1.5.1 installation, please share your OS, Antigravity version, and the error logs or a screenshot.
Can this really work? It’s strange—in fact, these two domains resolve to the same IP, so the hosts solution mentioned above should be invalid. I forced cloudcode-pa.googleapis.com as the endpoint through environment variables and only got 429 returns. Also, when I tried to downgrade the version, I still got a 503 response on Argon High’s request. When I analyzed packages from multiple versions, I found that https://daily-cloudcode-pa.googleapis.com seemed to be used as the default endpoint all along, which confused me.
This is just completly made up. And you will probably get banned by doing this. Not to mention its just completely made up and you will not be routed better by hitting another endpoint.
And no, everybody is not having these issues. You also will not be able to fix serverside resource exhaustion how hard you might try to, by modifying the client.
Hi, adding a fresh data point: this is still happening on Antigravity CLI **1.5.4** (latest — `agy update` says “already on the latest version”), on Linux, with a clean install.
Repro (Nov 10, 2026, ~23:41–23:55 CST, 4 consecutive runs, same result every time):
- `loadCodeAssist` hangs for ~3.5 minutes before the first `streamGenerateContent` starts; the run then grinds on with retries for 8+ minutes for a one-word prompt (“ok”).
- Model: Gemini 3.8 Flash (High).
- Network to the host is fine (curl to the root returns 404 in ~0.45s, as expected). No 403, no auth error.
- Stopping the remote-control daemon and a clean restart (no agy processes running) make no difference.
So on 1.5.4 the CLI is still pointed at the `daily-` staging endpoint, not `cloudcode-pa.googleapis.com`. Is that intended? And is a fix planned? Happy to share full logs if helpful.