Antigravity & agy CLI 429 Quota, #3501, and 400 Location Error Guide: Protocol Limits & Compliant Switching
As of 2026-11-24, hitting 429 RESOURCE_EXHAUSTED, #3501 license sync errors, or HTTP 400 location rejections while calling gemini-4-neon or gemini-4-hydrogen in Google Antigravity Desktop IDE 2.0 or the agy CLI traces back to shared 5-hour and weekly quota buckets across Pro and Ultra models, dual checks on account country and network egress, and the absence of third-party Base URL support in Desktop IDE 2.0. To keep coding without interruption, switch in your terminal to Claude Code (https://api.qcode.cc/api with claude-opus-5-5, Anthropic official API list price $4/$20 per million tokens) or Codex CLI (https://api.qcode.cc/openai with gpt-6.2-sol, OpenAI official API list price $2.00/$10.00 per million tokens) on per-token billing.
Updated 2026-11-24
Four Hard Boundaries to Check Before Troubleshooting Antigravity & agy
Models & Orchestrator Share 5-Hour and Weekly Quotas
Under Google AI Pro and Ultra plans, gemini-4-neon, gemini-4-argon, gemini-4-hydrogen, and Orchestrator draw from the same 5-hour and weekly quota bucket. Enabling xhigh thinking (thinking tokens bill as output) or switching thinking levels mid-session and breaking implicit cache hits can drain weekly quota in dozens of turns and trigger 429 RESOURCE_EXHAUSTED.
HTTP 400 Location Error Checks Account Country & Egress
Google developer forum threads and official available-regions docs show that Gemini API and Antigravity check both the Google account country and the request network egress against supported regions. Even when your account country is approved as the US or Japan and Claude models or the AI Studio web app work normally, either side outside the list triggers HTTP 400 FAILED_PRECONDITION or LOCATION_NOT_ELIGIBLE 1008.
Desktop IDE 2.0 Has No Custom Base URL; agy Is Gemini-Native Only
Antigravity Desktop IDE 2.0 does not support custom third-party Base URLs or BYOK. Only the agy CLI lets you set modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json alongside GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL; agy does not auto-load .env, ignores GOOGLE_API_KEY, and speaks only the Gemini native protocol, so it cannot call Claude or GPT via custom endpoints.
gemini-4-neon Is Paid Tier Only (Zero-Cost Tier Unavailable)
Per Google official API list pricing, gemini-4-neon is paid tier only (zero-cost tier unavailable) at $3.00 input, $15.00 output (including thinking tokens), and $0.15 implicit cache read per million tokens, with a unified 1,048,576-token (1M) context window shared across input, thinking, and output, and a 65,536 (64K) synchronous output cap. Explicit cachedContents requests return 400.
Root Causes Behind Four Common Errors: Fast Quota Drain, HTTP 400, and #3501
As of 2026-11-24, blockers in Google Antigravity Desktop IDE 2.x and the agy CLI fall into four groups. First, 429 RESOURCE_EXHAUSTED and rapid quota exhaustion: under Pro and Ultra plans, gemini-4-neon, gemini-4-argon, gemini-4-hydrogen, and Orchestrator (Neon planning plus Hydrogen execution) share one 5-hour and weekly quota bucket.
Because gemini-4-neon defaults to high thinking and offers xhigh—with all thinking tokens billed as output—and Gemini 4 supports only implicit caching for prefixes of at least 4,096 tokens (95% discount) with no explicit cachedContents, community reports note that toggling thinking levels mid-session can reset cache hits and burn weekly quota in dozens of turns.
Second, unsynced subscription entitlements: between 2026-11-19 and 2026-11-24, paying Pro subscribers (including student discount and carrier-bundled plans) reported on the Google developer forum that gemini-4-neon appeared grayed out or unavailable in agy, or failed with #3501 SUBSCRIPTION_REQUIRED. Third, HTTP 400 FAILED_PRECONDITION with the exact message "User location is not supported for the API use." or LOCATION_NOT_ELIGIBLE 1008: Google checks that both the account terms country and the request network egress appear in the official available-regions list, and forum threads also show some 400 location messages stem from #3501 entitlement checks. Fourth, custom endpoint limits: Desktop IDE 2.0 has no custom Base URL setting, while agy CLI supports Gemini native endpoints only.
2026-11-24 Status: Neon Raises Daily Burn as 11-30 Deprecation Approaches
On 2026-11-18, Google rolled out gemini-4-neon and Orchestrator (Neon planning paired with Hydrogen execution) across Antigravity desktop, CLI, and IDE extensions for Google AI Pro and Ultra plans, stating in its official blog that Neon at its default high setting delivers 32% lower cost per task than gemini-4-carbon.
Within a week, three operational pain points surfaced on the Google developer forum: first, while gemini-4-neon offers a unified 1,048,576-token (1M) API window on the paid tier only (zero-cost tier unavailable), a forum announcement cited a 512K in-product cap in Antigravity and the shared multi-model bucket lets heavy refactoring hit 429 locks quickly; second, forum posts on 2026-11-22 and 2026-11-24 showed student-discount Pro and Jio-bundled Pro users seeing all four Gemini 4 models marked unavailable right before gemini-3.8-flash deprecates on 2026-11-30, pushing teams to prepare fallback toolchains; third, travel or corporate egress outside supported regions triggers HTTP 400 location rejections even on compliant US or Japan accounts, abruptly halting single-subscription workflows.
Three Key Milestones: Region Checks, Neon Rollout, and 2026-11-24 Reports
-
2026-11-09
On 2026-11-09, a Google developer forum thread on Antigravity HTTP 400 location errors noted that both account country and request network egress must fall inside the official supported list, and unsupported regions such as Russia receive HTTP 400 directly.
-
2026-11-18
On 2026-11-18, Google launched gemini-4-neon (official API list pricing $3.00 input, $15.00 output, $0.15 implicit cache read per million tokens, with low, medium, high, and xhigh thinking levels) alongside Antigravity Orchestrator; the same day, a forum user with a Japan account region hit LOCATION_NOT_ELIGIBLE 1008 after egress was detected in CN.
-
2026-11-24
As of 2026-11-24, Google developer forum threads continue reporting 429 RESOURCE_EXHAUSTED shared-bucket lockouts, #3501 entitlement sync failures (including Jio-bundled Pro accounts locked out of all Gemini 4 models ahead of the 2026-11-30 gemini-3.8-flash deprecation), and HTTP 400 location rejections, prompting developers to keep per-token Claude Code or Codex CLI ready in the terminal.
Checked Official Specs & Hard Boundaries vs Community Reports
Checked Details (Google Official Docs, Blog & Antigravity Rules)
Checked item by item as of 2026-11-24. Model specs and list pricing: gemini-4-neon is paid tier only (zero-cost tier unavailable), with Google official API list pricing at $3.00 input, $15.00 output (including thinking tokens), and $0.15 implicit cache read per million tokens; gemini-4-hydrogen lists at $1.50 / $7.50; gemini-4-carbon and gemini-4-argon hold promotional $2.00 / $10.00 rates through 2026-11-30 before returning to $4 / $20 on December 1.
Non-global Vertex / Gemini Enterprise regions carry roughly a 10% surcharge (Neon input $3.30, output $16.50, cache read $0.165, cache write $3.75). Window and caching rules: input, thinking, and output share a single 1,048,576-token (1M) window, with a 65,536 (64K) synchronous output cap (exceeding 64K requires background set to true and a higher max_output_tokens); only implicit caching for prefixes of at least 4,096 tokens is supported (95% discount), while passing cachedContents, thinking_budget, MINIMAL, or out-of-range temperature, top_p, or top_k returns 400.
Subscription and endpoint boundaries: Antigravity Desktop IDE 2.0 does not support third-party custom Base URLs or BYOK; only the agy CLI supports setting modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json with GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL, does not auto-load .env, ignores GOOGLE_API_KEY, and speaks only the Gemini native protocol.
Common official error codes: quota or rate exhaustion returns HTTP 429 RESOURCE_EXHAUSTED; failed region checks return HTTP 400 FAILED_PRECONDITION or LOCATION_NOT_ELIGIBLE 1008; subscription license validation failures return #3501 (some clients display "You do not have a valid license of this product").
Community Observations & Undocumented Details (Not Official Specs)
The following points come from Google developer forum and community posts between 2026-11-09 and 2026-11-24 and are not formally codified in official API docs. First, a forum announcement cited a 512K in-product context cap for Antigravity, lower than the 1,048,576-token (1M) Gemini API specification, reflecting a client-side envelope rather than the API limit.
Second, community threads discuss thinking levels written as standalone strings or suspect implicit cache hit rates dropping to 0 after changing thinking_level mid-session, driving sudden daily quota spikes; Google has not published full cache-key partitioning rules across thinking levels. Third, several users reported HTTP 400 location errors on Neon and Hydrogen inside Antigravity even when their account country was set to the US and both Claude models and the AI Studio web UI worked normally, while other cases showed apparent 400 location rejections actually caused by #3501 SUBSCRIPTION_REQUIRED entitlement sync errors.
Fourth, third-party benchmark leaderboards differ in methodology when ranking Neon against competing flagships, so model selection should rely on real tests in your own codebase and live availability.
Two Compliant Paths Compared: Tuning Inside Antigravity vs Switching to Per-Token Coding Tools
Path A: Reduce Burn Inside Antigravity / agy or Attach a Gemini Native Key
Fits developers located inside official available-regions with synced account entitlements who only need short-term relief from 429 exhaustion. Practical steps include lowering thinking_level from xhigh back to medium or high, keeping a steady thinking level mid-session to preserve implicit cache hits on prefixes of at least 4,096 tokens, or using Orchestrator with Neon planning and Hydrogen execution to split load.
On the agy CLI, you can also set modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json and export GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL manually. However, this path does not add custom Base URL support to Desktop IDE 2.0, cannot call Claude or GPT through agy, and cannot resolve HTTP 400 blocks when account country or network egress is outside the supported list.
Path B: Switch to Claude Code, Codex CLI, Cline, or Zed on Per-Token Billing
Fits developers hitting 429 shared-bucket locks, persistent #3501 entitlement sync failures, HTTP 400 region blocks, or multi-model coding needs. Without altering operating-system networking or waiting for a 5-hour or weekly subscription reset, switch in the same repository to Claude Code (Anthropic Messages protocol), Codex CLI (OpenAI Responses protocol), Cline, or Zed using a standard per-token API key to call claude-opus-5-5 (Anthropic official API list price $4/$20), claude-fable-5-2 ($8/$40), claude-sonnet-5-5 ($2/$10), or gpt-6.2-sol (OpenAI official API list price $2.00/$10.00) and keep shipping.
Three-Step Compliant Troubleshooting & Copy-Ready Switching Guide
Step one, identify the error class and protocol boundary: on 429 RESOURCE_EXHAUSTED in Antigravity, check whether xhigh is active or thinking levels changed mid-thread, drop back to high or medium, or let Orchestrator pair Neon planning with Hydrogen execution; on #3501 entitlement errors or grayed-out models, check your subscription account and product license status; on HTTP 400 location rejections, either your account country or current egress is outside official available-regions; if attaching your own paid Gemini API key to agy CLI, set "modelProvider": "gemini" in ~/.gemini/antigravity-cli/settings.json and run export GEMINI_API_KEY="your_key" plus export GOOGLE_GEMINI_BASE_URL="https://generativelanguage.googleapis.com" in your shell (agy does not auto-load .env, ignores GOOGLE_API_KEY, and Desktop IDE 2.0 has no custom Base URL option).
Step two, when subscription locks or protocol limits stall work, switch immediately to Claude Code in your terminal on per-token billing: in the same repo directory run unset ANTHROPIC_API_KEY, export ANTHROPIC_BASE_URL="https://api.qcode.cc/api" (https://asia.qcode.cc/api for Mainland China, https://us.qcode.cc/api for North America and Europe), and export ANTHROPIC_AUTH_TOKEN="cr_your_key", then run claude and pick /model claude-opus-5-5 or /model claude-fable-5-2 for heavy architecture and refactoring, or /model claude-sonnet-5-5 for routine edits.
Step three, for OpenAI tooling or editor workflows, reuse the same cr_ API key in Codex CLI, Cline, or Zed: in Codex CLI ~/.codex/config.toml set base_url = "https://api.qcode.cc/openai" and wire_api = "responses", export OPENAI_API_KEY="cr_your_key", and call gpt-6.2-sol; in Cline or Zed openai_compatible settings use base_url https://api.qcode.cc/openai/v1 (https://asia.qcode.cc/openai/v1 for Mainland China, https://us.qcode.cc/openai/v1 for North America and Europe) to run gpt-6.2-sol, deepseek-v4.1-flash, or glm-5.3 per token without 5-hour subscription bucket locks.
A Steady Per-Token Fallback When Antigravity Stalls: One QCode cr_ API Key Across Tools
QCode is an independent API access service with no affiliation with Google, Anthropic, OpenAI, or other vendors. Not ready for a monthly plan? Pay-as-you-go Packs start at $4 for a one-time quota you use within 7 days; if you already have a Personal Plan, add a booster pack when you need more quota.
QCode is rolling out unified API integration for the Gemini 4 family, with live rollout status and per-token pricing published on /models. Register on QCode today to call claude-opus-5-5, claude-fable-5-2, gpt-6.2-sol, and deepseek-v4.1-flash per token with a single cr_ API key, ready to switch as new channels go live.
Match each client protocol to its endpoint: use https://api.qcode.cc/api (without /v1; https://asia.qcode.cc/api for Mainland China, https://us.qcode.cc/api for North America and Europe) for Claude Code and anthropic_compatible mode in Cline, Roo Code, and Zed; use https://api.qcode.cc/openai for Codex CLI (wire_api = "responses"); use https://api.qcode.cc/openai/v1 for OpenAI SDKs, OpenCode, and openai_compatible mode in Cline, Roo Code, and Zed.
Additional live models such as claude-sonnet-5-5, gpt-6.2-astra, glm-5.3, and kimi-k3.1-pro are billed per actual token consumed, with current rates published on /models. Top-ups accept international credit cards (Visa / Mastercard), Apple Pay, Google Pay, Alipay, WeChat Pay, Russian local bank cards and SBP, plus multi-network USDT cryptocurrency (typically credited in minutes, up to 12 hours).
Frequently Asked Questions
Why is there no custom Base URL or third-party API key setting in Antigravity Desktop IDE 2.0?
This is a documented product boundary: Antigravity Desktop IDE 2.0 currently does not support custom third-party Base URLs or BYOK. Only the agy CLI allows setting modelProvider to gemini in ~/.gemini/antigravity-cli/settings.json alongside GEMINI_API_KEY and GOOGLE_GEMINI_BASE_URL, and agy does not auto-load .env files and ignores GOOGLE_API_KEY. If you want a graphical editor with custom API key support, use Cline, Roo Code, or Zed, which natively support multi-protocol endpoints.
Why does HTTP 400 "User location is not supported for the API use." appear?
Google regional eligibility docs and developer forum checks show that HTTP 400 FAILED_PRECONDITION (or LOCATION_NOT_ELIGIBLE 1008) occurs because the service checks both your Google account country and request network egress against the available-regions list. Even if your account country is the US or Japan and the AI Studio web UI works, requests originating outside supported regions are still rejected. Forum cases also show some 400 location messages stem from #3501 SUBSCRIPTION_REQUIRED entitlement sync failures. Check your account terms country and subscription status first, or switch to compliant per-token workflows such as Claude Code or Codex CLI when your environment is restricted.
Why do Pro or Ultra plans hit 429 RESOURCE_EXHAUSTED after dozens of gemini-4-neon turns?
Three factors drive rapid exhaustion. First, gemini-4-neon, gemini-4-argon, gemini-4-hydrogen, and Orchestrator share one 5-hour and weekly quota bucket. Second, Neon defaults to high thinking and supports xhigh, and every thinking token bills as output (at Google official API list pricing, $15.00 per million output tokens is 5 times the $3.00 input rate). Third, Gemini 4 supports only implicit caching for prefixes of at least 4,096 tokens with no explicit cachedContents, so changing thinking levels mid-thread can disrupt cache hits. Stick to medium or high consistently for daily work and offload burst sessions to a per-token API.
Can I call Claude or GPT models through a custom endpoint in agy?
No. The agy modelProvider: gemini setting and GOOGLE_GEMINI_BASE_URL only speak the Gemini native API protocol and cannot translate Anthropic Messages or OpenAI Responses / Chat Completions traffic, so agy cannot call Claude or GPT via custom endpoints. To run claude-opus-5-5, claude-fable-5-2, gpt-6.2-sol, or deepseek-v4.1-flash with one API key, match each client to its protocol: Claude Code on https://api.qcode.cc/api, Codex CLI on https://api.qcode.cc/openai, and Cline or Zed on https://api.qcode.cc/openai/v1.
I paid for Google AI Pro—why is gemini-4-neon grayed out or throwing #3501 in agy?
Between 2026-11-19 and 2026-11-24, multiple threads on the Google developer forum reported entitlement sync issues affecting standard Pro, student-discount Pro, and Jio-bundled Pro accounts, leaving models grayed out or failing with #3501 license validation errors. Because this happens on the account entitlement provisioning side, local restarts rarely fix it immediately—especially disruptive ahead of the 2026-11-30 gemini-3.8-flash deprecation. While waiting on official support, use a per-token terminal tool such as Claude Code or Codex CLI to keep tasks moving.
What payment methods does QCode accept for per-token coding, and is a monthly plan required?
No monthly plan is required. QCode offers 7-day Pay-as-you-go Packs where you purchase a one-time quota and pay per actual token consumed, with live model pricing published on /models (vendor official list pricing for reference: claude-opus-5-5 at $4/$20; claude-sonnet-5-5 at $2/$10; and gpt-6.2-sol at $2.00/$10.00 per million tokens). Top-ups accept Visa / Mastercard, Apple Pay, Google Pay, Alipay, WeChat Pay, Russian local bank cards and SBP, plus USDT cryptocurrency (typically credited in minutes, up to 12 hours).
Sources & References
Google Antigravity official blog Gemini 4 Neon in Google Antigravity (antigravity.google, published 2026-11-18, checked 2026-11-24); Google AI Studio official docs What's new in Gemini 4 Neon and available-regions (aistudio.google.com and ai.google.dev, checked 2026-11-24); Anthropic official models overview and pricing pages (platform.claude.com, checked 2026-11-24); OpenAI official API pricing page (developers.openai.com, checked 2026-11-24); public Google developer forum threads on Antigravity HTTP 400 region checks, LOCATION_NOT_ELIGIBLE 1008, #3501 entitlement sync, and quota drain (2026-11-09 to 2026-11-24, community context only). All checked 2026-11-24.