@raquezha/antigravity
v0.1.5
Published
OAuth login provider extension for Google Antigravity models in the Pi Coding Agent
Maintainers
Readme
Antigravity (antigravity extension)
Independent native Pi provider for Google Antigravity-compatible model access.
The extension folder is antigravity, and the provider registered inside Pi is antigravity.
Usage
# From this checkout
pi --extension ./packages/antigravity
# Or via nothing
pi --antigravityInside Pi:
/login antigravity
/model antigravity/gemini-3.8-flash
/antigravity.doctorThe extension uses a native streamSimple transport. It does not shell out to the official agy CLI.
NPM
npm install -g @raquezha/antigravityProvider
- Provider id:
antigravity - Public model ids:
gemini-3.8-flashgemini-3.5-flashgemini-3.1-progemini-4-argonclaude-sonnet-5-5claude-opus-5-5gpt-oss-120b
- Runtime routing examples:
gemini-3.8-flash->gemini-3.8-flash-tiered- Flash 3.8 thinking is server-managed (the single
highselector maps to automatic thinking), not separate low/medium/high runtime IDs. gemini-3.5-flash-> routes internally by reasoning level (off/low/medium/high) to Antigravity runtime IDs such asgemini-3.5-flash-low,gemini-3.5-flash-medium, orgemini-3.5-flash-highgemini-3.1-pro-> routes internally togemini-3.1-pro-loworgemini-pro-agentgemini-4-argon-> routes internally by reasoning level togemini-4-argon-low,gemini-4-argon-medium, orgemini-4-argon-high(falls back to unifiedgemini-4-argon)claude-sonnet-5-5-> routes internally by reasoning level toclaude-sonnet-5-5-low,claude-sonnet-5-5-medium, orclaude-sonnet-5-5-highclaude-opus-5-5-> routes internally by reasoning level toclaude-opus-5-5-low,claude-opus-5-5-medium, orclaude-opus-5-5-highgpt-oss-120b-> routes togpt-oss-120b-medium
- Default endpoint:
https://cloudcode-pa.googleapis.com(fallback:https://daily-cloudcode-pa.sandbox.googleapis.com)
Catalog map keys are runtime IDs; nested MODEL_PLACEHOLDER_* values are not. Discovery uses exact keys first, then matching display names for renamed routes. Catalog presence does not guarantee quota or entitlement: a 429 requires waiting for the reported reset or checking your subscription, not another model alias.
After updating this checkout, run /reload in Pi to load the extension changes.
Diagnostics
/antigravity.doctor prints sanitized routing information, including unlabeled catalog IDs, with no stale match from a previous request. It must not print OAuth tokens, refresh tokens, authorization headers, prompts, or credential files.
Claude uses the backend's legacy tool-schema field; literal const constraints are converted to single-value enums. Request-format errors retain the backend's rejected-field message for diagnosis.
Run offline regression checks with npm test -w @raquezha/antigravity.
Optional overrides
Prefer the ANTIGRAVITY_* names for environment alignment. The older
NOAGY_* names remain accepted as backwards-compatible aliases.
ANTIGRAVITY_BASE_URL— override the Cloud Code/Antigravity endpoint for experiments.ANTIGRAVITY_PROJECT_ID— fallback project id if project discovery does not return one.ANTIGRAVITY_CALLBACK_HOST— OAuth callback bind host, default127.0.0.1.ANTIGRAVITY_USER_AGENT— override user agent for endpoint compatibility experiments.ANTIGRAVITY_RUNTIME_MODEL— force a runtime model id for endpoint experiments.ANTIGRAVITY_CLIENT_ID/ANTIGRAVITY_CLIENT_SECRET— advanced OAuth app overrides; normally not needed.
