Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Phase 1 of local
agyCLI support for Google (Antigravity) so users on macOS can connect with their installedagyCLI and login Keychain sign-in (agy acp --login, browser loopback OAuth without code copy-paste), while laying the groundwork for Claude-style multi-account Keychain swapping in Phase 2 without changing the sign-in flow.Changes
tern-providers:google_accounts(crates/providers/src/google_accounts.rs) to decodeagy'szalando/go-keyringKeychain values (-s gemini -a antigravity, includinggo-keyring-base64:encoding), parseStoredTokenidentity metadata (id_token_email,tier_display_name,organization_name), resolve the fallback token file (~/.gemini/antigravity-cli/antigravity-oauth-token), and watch sign-in changes.GoogleMode(Existing/Managed) toprovider_settingsalongsideCodexMode, wiredService::Googleto default binaryagyand login commandagy acp --login, and addedshows_runtimeso remote servers that do not recognizesetupMode: "existing"keep showing their runtime row.bridge/:bridge/src/antigravityLocal.tswrapping upstream'sAntigravityDriverinbridge/src/host.ts:setupMode: "existing"runs the localagyCLI directly against~/.geminiand macOS Keychain withoutGEMINI_HOMEisolation or fakeSSH_CONNECTION, reports Keychain-derived auth status/email/tier, and loads models via ACP. Unset or"managed"instances delegate unchanged to upstream'sAntigravityDriver.tern(crates/app):crates/app/src/google_accounts.rsto readagy's Keychain entry via/usr/bin/security(with fallback token file andTERN_KEYCHAIN=offtest guard) andwatch_google_sign_ininworkspace/limits.rsto triggerrecheck_sign_inwhen localagysign-in changes.tern-providers-view:agyCLI mode and offering terminal login (agy acp --login).Verification
cargo fmt --all -- --checkcargo clippy --workspace --all-targets --locked -- -D warningsTERN_KEYCHAIN=off cargo test --workspace --locked(with scratchHOME)./scripts/check-colors.shpython3 scripts/check-layers.pyTERN_NODE=.../26.13.1/bin/node ./scripts/check-bridge.sh