Skip to content

[Bug]: Antigravity CLI is authenticated but Usage Limits requires legacy acp_token.json #34327

Closed

Description

@ousugo

Before submitting

  • I searched open and closed issues and checked the related reports listed below.
  • I included reproduction steps and evidence from the installed application.

Area

apps/server — Antigravity subscription usage probe; Usage → Limits

Summary

With the official Antigravity CLI configured as the provider's custom executable, T3 reports the provider as ready and authenticated and successfully completes a real model turn. However, Usage → Limits omits Antigravity because the usage probe still requires the standalone ACP runtime's antigravity-acp/acp_token.json file.

The resulting message asks the user to sign in, even though this provider is already authenticated.

Steps to reproduce

  1. Install and sign in to the official Antigravity CLI. The affected installation uses agy 1.5.2 on Windows.
  2. Enable Antigravity in T3 Code and set its custom executable path to the installed agy.exe:
    {
      "providerInstances": {
        "antigravity": {
          "driver": "antigravity",
          "enabled": true,
          "config": {
            "binaryPath": "C:\\Users\\<user>\\AppData\\Local\\agy\\bin\\agy.exe"
          }
        }
      }
    }
  3. Confirm that the provider is ready/authenticated and send a prompt.
  4. Open Usage → Limits with All environments / All providers selected.
  5. Inspect the provider's cached usageLimits.

Expected behavior

T3 should support subscription-limit retrieval for its supported agy acp executable path, where the CLI/account exposes that information.

If limits cannot be retrieved for this authentication backend, T3 should accurately explain that limitation rather than presenting the absence of a legacy token file as a request to sign in again.

Actual behavior and verification

  • agy --version: 1.5.2.
  • agy acp --help succeeds.
  • T3 provider cache reports status: "ready", auth.status: "authenticated", and auth.type: "oauth-personal".
  • A real T3 delegated turn using the Antigravity provider and requested model gemini-3.8-flash-high completed and returned the exact requested text, ANTIGRAVITY_T3_OK.
  • Usage → Limits displays Codex but no Antigravity section.
  • The T3-owned Antigravity profile has no antigravity-acp/acp_token.json.
  • The cached result is:
    {
      "windows": [],
      "unavailable": {
        "reason": "unsupported",
        "message": "Sign in with Google to see Antigravity limits."
      }
    }

Source-to-runtime evidence

Inspection of the installed resources/server.asar shows that makeAntigravityUsageProbe:

  1. Builds a fixed token path with path.join(input.profileDirectory, "antigravity-acp", "acp_token.json").
  2. Returns the unavailable result above immediately when that file does not exist.
  3. Only performs OAuth refresh and Google quota requests after that check.

Thus this observed failure occurs before a quota HTTP request is attempted. The frontend excludes the provider from its limits grouping when there are no windows and the result is unavailable.

The executable resolver/spawn code already recognizes the CLI and launches it with ["acp"], so successful CLI execution does not imply compatibility with this separate legacy-file-based quota probe.

Environment

  • T3 Code desktop Beta: installed executable ProductVersion 0.1.8.0.
  • Windows x64, OS version 10.0.26200.0.
  • Official Antigravity CLI: 1.5.2.
  • Authentication: personal Google account (oauth-personal).
  • Custom CLI executable; no T3-managed standalone ACP installation.

Related reports and distinction

Investigation boundaries

The exact Windows storage location/backend used by the CLI credentials was not established. No credentials were copied or modified. No claim is made that adapting credential retrieval alone guarantees complete quota groups for this account.

Prepared with Codex using local read-only inspection and a real T3/Antigravity connectivity test.

Activity

  1. Pulsar-Programmer commented on Nov 13, 2026

    @Pulsar-Programmer
    Contributor

    Additional reproduction: this now affects the T3-managed install on macOS too, not only a custom agy path.

    Since #35409, T3 downloads the official CLI from the auto-updater (manifests/darwin_arm64.json, currently 1.5.7) instead of agy_acp_server.par. The usage probe (apps/server/src/provider/antigravityUsageLimits.ts) still only reads <profile>/antigravity-acp/acp_token.json, so on a default T3 Nightly macOS (arm64) install the limits never appear.

    What I verified

    • Auth works: sign-in through Settings → Providers → Antigravity → Sign in with Google succeeds, authMethod is oauth-personal, and turns run normally.
    • No token file: after a fresh sign-out and sign-in through T3, acp_token.json is never created. The probe returns unsupported / "Sign in with Google to see Antigravity limits."
    • CLI logs show the Keychain is used:
      keyringAuth: loaded token ... expired=false
      ChainedAuth: authenticated via keyring (effective: keyring)
      
    • The env var is ignored: AGY_ACP_FORCE_FILE_STORAGE=1, which T3 sets in antigravityEnvironment, is not read by the 1.5.7 binary. strings on cli_mac_arm64.tar.gz → antigravity contains neither AGY_ACP_FORCE_FILE_STORAGE nor acp_token.json. The 1.4.5 agy_acp_server.par contains both. 1.5.7 does have a FileAuthStore, but according to its changelog it only falls back to file storage when the keyring is bypassed or unreachable (for example Linux without D-Bus).
    • Sign-out leaves the Keychain token behind: T3's sign-out ran, but the Keychain token survived, and the next sign-in saved to the Keychain again.

    Implication

    For the managed CLI on macOS (and likely Windows), AGY_ACP_FORCE_FILE_STORAGE has no effect, and the probe can never find credentials. Possible directions:

    • Read the credential from wherever agy stores it (keyringAuth / codeassistclient.StoredToken).
    • Get quota through the CLI/ACP itself, if it exposes it.
    • At minimum, change the "Sign in with Google" message, because signing in again cannot fix this.

    Environment: T3 Code Nightly (macOS arm64), managed Antigravity CLI 1.5.7, oauth-personal.


    Posted by Claude Opus 5.5 (Claude Code) on behalf of @Pulsar-Programmer.

  2. RealDishwash commented on Nov 14, 2026

    @RealDishwash

    Another reproduction, on Linux with KDE Plasma (Wayland) and the T3-managed runtime, not a custom agy path:

    • T3 Code desktop 0.1.10-nightly.20261113.4643 (server reports the same version)
    • Managed Antigravity runtime 1.5.9 (just updated from 1.5.8, same result on both), Fedora, linux-x64
    • auth.type: oauth-personal; authenticate succeeds and session/prompt turns finish normally
    • <stateDir>/providers/antigravity/<instanceHash>/antigravity-acp/ has no acp_token.json. It contains only settings.json ({"auth":{"type":"oauth-personal"}}), installation_id, logs, conversations, etc.
    • The credential is in the desktop Secret Service instead: KDE Wallet has an item labelled Password for 'antigravity' on 'gemini', created at the moment of sign-in. So on Linux the runtime also ignores AGY_ACP_FORCE_FILE_STORAGE=1 and uses org.freedesktop.secrets.
    • The cached usageLimits is {"windows":[],"unavailable":{"reason":"unsupported","message":"Sign in with Google to see Antigravity limits."}}, so Usage → Limits shows only Codex and Claude.
    • Checked against main @ dafd053a: antigravityUsageLimits.ts still only reads acp_token.json.

    Produced via t3 triage with Claude Code (Claude Opus 5.5).

  3. ZidanHadipratama commented on Nov 14, 2026

    @ZidanHadipratama

    Confirmed on Linux x64 with T3 Code 0.1.9, Antigravity CLI 1.5.9, and a Google account.

    Before the fix, T3 reported an authenticated account and loaded seven models, but limits returned unsupported. The quota reader required <profile>/antigravity-acp/acp_token.json, which was absent. It stopped before requesting quota data.

    I edited apps/server/dist/runtimeLayer-BR0FRrjb.mjs inside the installed /opt/t3code-bin/resources/app.asar, then installed the modified archive. The changes are in makeAntigravityUsageProbe and its Antigravity driver call site.

    The modified T3 server code automatically runs the configured CLI when checking quotas and converts the returned JSON to T3's existing format. Its CLI invocation is equivalent to:

    AGY_CLI_DISABLE_AUTO_UPDATE=true agy --print /usage --output-format json --log-file /dev/null

    In that file, I added AGY_CLI_DISABLE_AUTO_UPDATE: "true" to the environment passed to the quota-check process. It is part of the installed application code and applies only to that process. No global shell setting is changed.

    CLI runtimes use this path even if a legacy token file exists. Failed CLI requests do not fall back to that file.

    After restarting T3, its provider cache contains five quota windows, with no unavailable error:

    • gemini-5h
    • gemini-weekly
    • 3p-5h
    • 3p-weekly
    • gemini-argon-wtu-weekly

    Verification: 45 local checks passed using a recorded real CLI response and T3's quota decoder. Separate server tests also confirmed that an invalid legacy token does not override CLI quotas, and an invalid CLI response returns probeFailed.

    These results come from server data, not a visual check of the main app. This is a local patch to the installed bundle, not a source PR. I have not tested #36733, macOS, Windows, or multiple accounts. The patch does not provide cross-environment account deduplication.

    Sharing this on #34327 as evidence and an alternative to the keyring approach in #36733.

    Implemented with GPT-6.1 Sol through Codex in T3 Code.

  4. luciancsilva commented on Nov 14, 2026

    @luciancsilva

    Another reproduction, Windows desktop app in WSL mode (wslOnly, Ubuntu backend):

    • T3 Code server 0.1.10-nightly.20261114.4695 (still reproduces on the latest nightly)
    • agy 1.5.8 (Linux, on PATH inside WSL), auth.type: oauth-personal, provider enabled/installed/ready/authenticated
    • caches/antigravity.json → usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }
    • <stateDir>/providers/antigravity/<hash>/antigravity-acp/ contains antigravity-oauth-token ({ token: { access_token, token_type, refresh_token, expiry, expires_in }, auth_method: "consumer", id_token_email }) but no acp_token.json. That token has no client_id/client_secret, so it does not match the TokenFile schema the probe decodes.

    The probe path is not OS-specific (join(profileDirectory, "antigravity-acp", "acp_token.json")), so running the server inside WSL vs. native Linux makes no difference. Same root cause as this issue (and the closed duplicates #36217 and #36630).

  5. neo-clon commented on Nov 17, 2026

    @neo-clon
    Contributor

    Another reproduction, on Linux (Fedora 44, kernel 7.2) with a headless T3 server (no DISPLAY/Wayland), on the latest nightly:

    • T3 Code server 0.1.11-nightly.20261117.4814
    • T3-managed Antigravity runtime 1.5.10 (antigravity binary, release 713ae840…); agy 1.5.5 also on PATH
    • Provider instance with auth.type: oauth-personal (Google sign-in)

    What I see:

    1. Usage → Limits never shows Antigravity. AntigravityProvider.refreshUsage finishes in ~0.004 ms, and the probe returns unsupported because <profile>/antigravity-acp/acp_token.json does not exist.
    2. The profile has no acp_token.json even after a fresh sign-in. The runtime log reports consumerOAuth: authenticated successfully and Using file-based secret storage at ~/.config/antigravity/plugin-secrets.json (that path holds plugin secrets only), while ~/.local/share/keyrings/login.keyring (GNOME Keyring) was modified at sign-in time. So AGY_ACP_FORCE_FILE_STORAGE=1 does not keep the OAuth token out of the keyring, matching the description in fix(server): Antigravity limits show for the 1.5.x CLI's keyring sign-in #36733.
    3. None of the native antigravity runtimes T3 has downloaded (2026-11-12 → 2026-11-16) contain the string acp_token; every older agy_acp_server.par release (2026-09-09 → 2026-11-02) does. An older profile signed in with the .par runtime still has an acp_token.json.

    Related, for headless servers: Settings → Sign in fails with No browser is available here (no graphical display is available to open a browser). Run agy acp --login in a terminal on this machine…. The workaround that worked was running the login against the instance profile by hand:

    P=~/.t3/userdata/providers/antigravity/<sha256(instanceId)>
    GEMINI_HOME=$P AGY_ACP_FORCE_FILE_STORAGE=1 BROWSER=echo \
      agy acp --gemini-dir $P --app-data-dir antigravity-acp --login

    That restores the sign-in, but because the token lands in the keyring, Limits still stays empty. #36733 should cover this case.

  6. casungo commented on Nov 18, 2026

    @casungo

    Note

    🤖 GPT-6.1 Terra responding on behalf of @casungo

    Reproduced with T3 Code server and Windows desktop client 0.1.11-nightly.20261117.4851, a headless Linux server, and the T3-managed Antigravity 1.5.10 runtime. Settings reports the Google account as authenticated, but Usage → Limits shows Codex and omits Antigravity. The Antigravity profiles have no antigravity-acp/acp_token.json, which this server build's quota probe expects.

    As a temporary way to inspect quotas outside T3, the managed CLI with the instance profile and --print /usage --output-format json returned Gemini, Claude/GPT and Gemini 4 Argon quota groups, with zero model tokens reported. I have not independently compared those percentages with another account display.

  7. sayid233 commented on Nov 18, 2026

    @sayid233

    Another reproduction on the stable desktop build (not nightly), with the latest managed runtime:

    • T3 Code (Beta) desktop 0.1.10, macOS 27.2.1 arm64
    • T3-managed Antigravity runtime 1.5.11 (~/.t3/tools/antigravity-acp/darwin-arm64)
    • auth.type: oauth-personal, provider ready/authenticated, turns work normally
    • caches/antigravity.json → usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, so Antigravity is missing from Usage → Limits

    Signing out and back in does not help. The runtime log after a fresh sign-in still shows ChainedAuth: authenticated via keyring (effective: keyring). The credential goes to the macOS Keychain (service gemini, account antigravity, a go-keyring base64 blob containing {token: {access_token, refresh_token, …}, auth_method: "consumer"}), and no acp_token.json is written. The 1.5.11 binary does not contain AGY_ACP_FORCE_FILE_STORAGE or acp_token.json, so the env var T3 passes has no effect.

    I confirmed that the probe works once it has a credential. I took the refresh token from that Keychain item, paired it with the OAuth client embedded in the 1.5.11 binary (only one of the three embedded client ID/secret pairs is accepted for this refresh token), and wrote {client_id, client_secret, refresh_token} to <profile>/antigravity-acp/acp_token.json. After a provider refresh, Usage → Limits showed the Gemini and Claude & GPT 5h/weekly windows from retrieveUserQuotaSummary on both endpoints. The rest of makeAntigravityUsageProbe works as written. The only problem is where the credential comes from.

    Suggested fix: read the credential from the runtime's actual store (OS keyring / Secret Service, or antigravity-oauth-token where it is file-backed), together with the client the runtime uses. Alternatively, use the runtime's own usage output (--print /usage --output-format json, as mentioned above) instead of requiring the legacy acp_token.json. A manually written acp_token.json also goes stale on the next sign-in, so it is not a long-term workaround.

  8. Bitcoinlouie commented on Nov 19, 2026

    @Bitcoinlouie

    Reproduced on the latest nightly with the managed 1.5.12 Antigravity runtime:

    • T3 Code: 0.1.11-nightly.20261118.4903 (6927cfe2adb0), macOS 27.3 (26C5047e) arm64
    • Managed Antigravity runtime: 1.5.12 (~/.t3/tools/antigravity-acp/darwin-arm64, "harness": null)
    • Auth & chat: oauth-personal (cache/acp-auth-state.json), provider is ready/authenticated and turns work normally. Running /usage in agy (1.5.12) shows limits as expected.
    • ACP server log: ChainedAuth: authenticated via keyring (effective: keyring); no antigravity-acp/acp_token.json is written (and the 1.5.12 binary does not reference AGY_ACP_FORCE_FILE_STORAGE or acp_token.json).
    • Cached state (~/.t3/caches/antigravity.json):
      "usageLimits": {
        "windows": [],
        "unavailable": {
          "reason": "unsupported",
          "message": "Sign in with Google to see Antigravity limits."
        }
      }

    Looking forward to #36733 landing!

  9. kimyc3825 commented on Nov 19, 2026

    @kimyc3825

    Another reproduction on native Windows 11 (x64) with the stable desktop build and T3-managed Antigravity runtime:

    • OS: Windows 11 (10.0.26200, x64)
    • T3 Code: T3 Code (Beta) desktop 0.1.10
    • Managed Antigravity runtime: 1.5.12 (~/.t3/tools/antigravity-acp/win32-x64, agy.exe, "harness": null)
    • Auth & chat: oauth-personal sign-in succeeds, provider is ready/authenticated, and chat turns work normally.
    • ACP server log: keyringAuth: loaded token ... expired=false / ChainedAuth: authenticated via keyring (effective: keyring)
    • Missing token file: <stateDir>\providers\antigravity\<instanceHash>\antigravity-acp\acp_token.json is never created, and the managed agy.exe 1.5.12 binary does not reference AGY_ACP_FORCE_FILE_STORAGE or acp_token.json.
    • UI result: Both the in-thread Usage limits banner and T3 Code's Usage → Limits view show "Sign in with Google to see Antigravity limits."

    Looking forward to #36733 landing with Windows Credential Manager support!

  10. BrendanH18 commented on Nov 19, 2026

    @BrendanH18

    Note

    🤖 Claude Opus 5.5 (Claude Code) responding on behalf of Brendan

    Same result on the stable desktop build with the 1.5.12 runtime: T3 Code (Beta) 0.1.10, macOS 27.2 arm64, oauth-personal, chats work.

    • Agent log: ChainedAuth: authenticated via keyring (effective: keyring)
    • No antigravity-acp/acp_token.json in the instance profile
    • caches/antigravity.json → usageLimits.unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, so Antigravity is missing from Usage → Limits

    On a headless Linux host (no Secret Service), 1.5.12 falls back to file storage instead, but still not acp_token.json, so limits are missing there too (see #36034).

  11. 1007cordon-ux commented on Nov 19, 2026

    @1007cordon-ux

    Stale legacy acp_token.json makes Usage → Limits show another account's/project's quota instead of "unavailable"

    Environment: T3 Code 0.1.11-nightly.20261119.4918, macOS 27.2.1 arm64. Antigravity provider was migrated from the T3-managed 1.4.5 ACP runtime to the official agy CLI 1.5.12 (custom executable path), oauth-personal.

    After the migration the instance profile still contained the old antigravity-acp/acp_token.json (mtime from before the managed runtime was removed). The ACP server log shows the CLI never uses it:

    • before authenticate: error getting token source: You are not logged into Antigravity
    • ACP authenticate: methodId="oauth-personal"
    • keyring.go:64] keyringAuth: loaded token, expiry=... expired=false

    So auth comes from the macOS keyring, but the usage probe still finds the leftover file, refreshes its legacy refresh_token, and queries v1internal:retrieveUserQuotaSummary with the legacy project_id. Result: Usage → Limits shows plausible numbers from that old account/project (Gemini 5h ≈10% used, weekly ≈3%) while the account actually in use has exhausted its quota. Unlike the reports above, there is no "Sign in with Google to see Antigravity limits." state, so the stale data looks authoritative.

    Suggestion: when the provider runs the native CLI, ignore or clear a legacy acp_token.json (or only trust one written after the CLI sign-in). #38957 / #36733 should make the probe read the keyring sign-in; until then the leftover file should at least not be surfaced as current limits. Related: #34389.

    (After moving the stale file out of the profile, the panel should fall back to the same "unavailable" state as the reports above.)

  12. 1007cordon-ux commented on Nov 19, 2026

    @1007cordon-ux

    Follow-up: the stale-token variant is reproducible, and there is a workaround.

    After migrating from the managed 1.4.5 runtime to the agy 1.5.12 CLI, the native profile still contained the legacy antigravity-acp/acp_token.json. The probe refreshed that legacy token and showed another account's quota (Gemini 5h ≈10% used, weekly ≈3%) while the account in use was at 0% remaining for both 5-hour windows.

    Workaround: temporarily run the Google-hosted 1.5.0 ACP server (https://dl.google.com/agy-extensions/releases/macos/agy-acp-server-1.5.0-darwin-arm64.zip, sha256 c82ecb4ef476bfc35cbe5b2745cdddef873b99c9f5bd7fd11e5ca1fc1667a3fc, matching the ACP registry entry) with GEMINI_HOME pointed at the native profile, complete authenticate (oauth-personal) with the account in use, and let it write a fresh acp_token.json. Then remove the 1.5.0 server; sessions keep using the 1.5.12 CLI. Usage → Limits then matches agy -p "/usage" exactly, including the gemini-argon-* bucket.

    Caveat: that file token is a separate session from the CLI keyring login, so a later account switch in T3 goes stale again. #38957 / #36733 reading the keyring sign-in would make this file unnecessary.

  13. yu2001-s commented on Nov 19, 2026

    @yu2001-s

    Still reproduces on macOS arm64 with the latest nightly and the newest managed runtime:

    • T3 Code Nightly 0.1.11-nightly.20261119.4928, T3-managed Antigravity runtime 1.5.12
    • Provider is ready, auth.type: oauth-personal, auth.status: authenticated; turns run normally
    • caches/antigravity.json → usageLimits: { windows: [], unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." } }
    • <userdata>/providers/antigravity/<hash>/antigravity-acp/ has settings.json ({"auth":{"type":"oauth-personal"}}) but neither acp_token.json nor antigravity-oauth-token, so on macOS the credential lives only in the Keychain. Only the keyring read in fix(server): Antigravity limits read the 1.5.x CLI's stored sign-in #38957 (or fix(server): Antigravity limits show for the 1.5.x CLI's keyring sign-in #36733) would fix this case; the antigravity-oauth-token file fallback alone would not.
    • Result: with Claude Code + Antigravity selected, Usage → Limits shows only the Claude cards; Antigravity is absent.

    Posted by Claude Opus 5.5 (Claude Code) on behalf of the reporter.

  14. albert2704 commented on Nov 19, 2026

    @albert2704

    Confirming the same issue on macOS 27.0 (arm64):

    • T3 Code: 0.1.10-nightly.20261116.4774
    • Antigravity runtime: 1.5.12 (T3-managed antigravity-cli, antigravity acp --gemini-dir ... --app-data-dir antigravity-acp)
    • Provider state (caches/antigravity.json): status: "ready", auth: { status: "authenticated", type: "oauth-personal" }, turns complete normally.
    • Usage limits (caches/antigravity.json): windows: [], unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }.
    • Profile directory (<userdata>/providers/antigravity/<hash>/antigravity-acp/): contains settings.json (oauth-personal) and logs, with neither acp_token.json nor antigravity-oauth-token (credentials stored in macOS Keychain).
    • Result: Antigravity does not appear in Usage → Limits.

    Looking forward to the Keychain read in #38957 / #36733.

  15. TimeAndLocation commented on Nov 19, 2026

    @TimeAndLocation

    Confirming this also reproduces on Windows x64 with the T3-managed 1.5.12 runtime:

    • T3 Code: Desktop + local server 0.1.11-nightly.20261119.4918 (082bc2cb)
    • OS: Windows (win32 x64, 10.0.26200)
    • Antigravity runtime: T3-managed agy.exe 1.5.12 (harness: null), launched as agy.exe acp --gemini-dir <state-dir>\providers\antigravity\<hash> --app-data-dir antigravity-acp
    • Auth: oauth-personal — provider is authenticated and completes turns normally, but Antigravity is completely absent from Usage → Limits (and shows no notice).

    Evidence:

    • <state-dir>\providers\antigravity\<hash>\antigravity-acp\acp_token.json does not exist (only cache\acp-auth-state.json, cache\onboarding.json, settings.json, etc.).
    • The ACP server log (antigravity-acp\log\acp-server-*.log) shows agy.exe authenticating via the OS keyring rather than file storage:
      ACP authenticate: methodId="oauth-personal" meta=map[]
      keyringAuth: loaded token, expiry=... expired=false
      ChainedAuth: authenticated via keyring (effective: keyring)
      
    • Without acp_token.json, makeAntigravityUsageProbe (apps/server/src/provider/antigravityUsageLimits.ts:220-246) returns unavailable: { reason: "unsupported", message: "Sign in with Google to see Antigravity limits." }, which both collectLimitAccounts and collectLimitNotices filter out.

    Triaged by Antigravity (Gemini 4 Neon, High) via T3 Code.

  16. DmitriyRud commented on Nov 19, 2026

    @DmitriyRud

    Same on stable T3 Code (Beta) 0.1.10, macOS 26.7.2 arm64, managed runtime 1.5.12: ChainedAuth: authenticated via keyring, no acp_token.json even after signing in through Settings → Antigravity, Limits shows "Sign in with Google to see Antigravity limits."

    A credential-free alternative to reading the keyring, in case it helps the fix: while Antigravity 2.0 or agy runs, its hub (agy --hub) writes ~/.gemini/antigravity/daemon/hub_<port>.json (csrfToken, httpPort, httpsPort, pid, mode 0600). Then

    POST http://127.0.0.1:<httpPort>/exa.language_server_pb.LanguageServerService/GetUserStatus
    Connect-Protocol-Version: 1
    X-Codeium-Csrf-Token: <csrfToken>
    
    {"metadata":{"ideName":"antigravity","extensionName":"antigravity","locale":"en"}}

    returns userStatus.cascadeModelConfigData.clientModelConfigs[].quotaInfo (remainingFraction, resetTime) per model. Models of one bucket share both values, so the three Google AI Pro buckets fall out directly: Gemini 5h (Neon / Hydrogen / Flash / Orchestrator (Neon)), Claude + GPT-OSS 5h, Argon weekly. Edge cases: quotaInfo: {} = unmetered (Gemini 4 Carbon); resetTime without remainingFraction = exhausted (proto3 drops 0.0); resetTime in the past = already reset. The plain HTTP port answers, so no TLS bypass is needed; 401 without the CSRF header. It only works while a hub is running, so it would be a complement to the keyring fix in #36733 / #38957, not a replacement.

  17. juliusmarminge commented on Nov 19, 2026

    @juliusmarminge
    Member

    Reproduced on main @ 420d1b5 with agy 1.5.12 and a real Google sign-in: the CLI stores the sign-in as antigravity-acp/antigravity-oauth-token, there is no acp_token.json, and Usage → Limits shows no Antigravity account. #38957 fixes it on the same profile; before/after proof is on the PR: #38957

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions