When running agy in CLI environments from certain geographic regions or proxy endpoints, users with valid standard-tier accounts encounter:
Eligibility check failed: Your current account is not eligible for Antigravity, because it is not currently available in your location.
However, the same account and network connection work normally in IDE integrations (e.g., GoLand, VS Code).
When authenticating via Google's loadCodeAssist internal endpoint, Google returns account tier availability:
{
"currentTier": {
"id": "standard-tier",
"name": "Antigravity",
"description": "Unlimited coding assistant with the most powerful Gemini models"
},
"allowedTiers": [
{ "id": "standard-tier", "name": "Antigravity" }
],
"ineligibleTiers": [
{
"tierId": "free-tier",
"reasonCode": "UNSUPPORTED_LOCATION",
"reasonMessage": "Your current account is not eligible for Antigravity, because it is not currently available in your location."
}
]
}- IDE (
agy_acp_server): Checksif current_tier and initial_project_id. Becausestandard-tieris active, it ignoresineligibleTiersand succeeds. - CLI (
agyGo binary): Starting with the consumer/free-tier onboarding update (version ~1.2.13),server_oauth.go/IneligibilityFromResultinspectsineligibleTiers. Becausefree-tieris listed withUNSUPPORTED_LOCATION, it setsisEligible = false, blocking prompt dispatch.
The CLI binary checks the environment variable AGY_CLI_DISABLE_AUTO_UPDATE.
To disable background auto-updates:
- For Bash/Zsh:
export AGY_CLI_DISABLE_AUTO_UPDATE=1 - For Fish shell:
set -Ux AGY_CLI_DISABLE_AUTO_UPDATE 1
In the Go binary (agy), the function backend.IneligibilityFromResult computes eligibility:
# Entry point:
0x8e3c44a: push rbp
0x8e3c44b: mov rbp, rsp
0x8e3c44e: sub rsp, 0x68
...
0x8e3c462: cmp QWORD PTR [rax+0x1b8], 0x0
0x8e3c46a: je 0x8e3c5cb # Branch to eligible exit
# Eligible exit block (at 0x8e3c5cb):
0x8e3c5cb: lea rax, [rip+0x213525e]
0x8e3c5d2: call 0x66f9340
0x8e3c5d7: mov BYTE PTR [rax+0x8], 0x1 # isEligible = true
0x8e3c5db: mov BYTE PTR [rax+0x20], 0x0 # hasError = false
0x8e3c5df: xor ebx, ebx
0x8e3c5e1: xor ecx, ecx
0x8e3c5e3: add rsp, 0x68
0x8e3c5e7: pop rbp
0x8e3c5e8: retReplacing cmp + je at 0x8e3c462 with an unconditional jump jmp 0x8e3c5cb + NOPs forces IneligibilityFromResult to return isEligible = true.
- Original bytes (14 bytes):
48 83 b8 b8 01 00 00 00 0f 84 5b 01 00 00 - Patched bytes (14 bytes):
e9 64 01 00 00 90 90 90 90 90 90 90 90 90
Script patch_agy.py searches for the signature pattern dynamically (so even if binary offsets change in future minor builds, it locates IneligibilityFromResult by matching the success block signature mov byte ptr [rax+0x8], 1), makes a backup to agy.orig, and applies the patch cleanly.
python3 patch_agy.py ~/.local/bin/agy