Repository navigation
Support Custom Gateway / Proxy Auth for Antigravity Provider #33460
jorotodorovv
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Area
apps/server, apps/web, packages/contracts
Problem or use case
Both the standalone Antigravity ACP runtime (
1.4.5+) and the officialagyCLI (1.5.1+, supported via custombinaryPathin #32503 / #33143) support routing LLM traffic through an enterprise gateway or local proxy (such as CLIProxyAPI) via environment variables:AGY_LLM_GATEWAY_URLAGY_LLM_GATEWAY_API_KEYAGY_ACP_ENABLE_GATEWAY_AUTH=1Currently, using Antigravity with a gateway/proxy in T3 Code requires two workarounds:
authenticatehandshake: becauseAntigravityAuthMethodonly offersoauth-personal,oauth-business,gemini-api-key, andagent-platform, T3 Code still sendsauthenticate(e.g.oauth-personal) or expects GCP/Gemini API key credentials rather than recognizing that gateway auth is self-authenticating via the gateway URL and key.Meanwhile, Claude and Codex already work cleanly alongside local proxy hubs (e.g.
cliproxyinusageLimitSources).Proposed behavior
Add first-class gateway auth support to
AntigravitySettings(orAntigravityAuthMethod):gatewayoption toANTIGRAVITY_AUTH_METHODS(or allow binding/configuring agatewayUrl+apiKeyviaSettingsSecretValueinAntigravitySettings).authMethod === "gateway",antigravityEnvironmentinapps/server/src/provider/antigravityAuthSupport.tssetsAGY_LLM_GATEWAY_URL,AGY_LLM_GATEWAY_API_KEY, andAGY_ACP_ENABLE_GATEWAY_AUTH: "1".gatewayauth is selected and configured.authMethodback tooauth-personalcleanly stops injecting the gateway variables and returns to standard Google OAuth without affecting any sharedusageLimitSourceshub configuration used by Claude or Codex.Questions
gatewayas anAntigravityAuthMethodwith agatewayUrlsetting (reusing the existingapiKeysecret setting)?AGY_LLM_GATEWAY_URL/AGY_ACP_ENABLE_GATEWAY_AUTHare present in the instance environment and skipping the OAuth sign-in requirement automatically without adding new settings fields?All reactions