# Google Antigravity provider

Login + streaming provider for Google Cloud Code Assist ("Antigravity"). Ported
from oh-my-pi's `google-antigravity` implementation, including:

- OAuth flow with tier eligibility check and free-tier provisioning
- `antigravity/hub/<version>` User-Agent spoofing with live version discovery
- The per-request Antigravity envelope (`agent/<agentId>/<ts>/<trajectoryId>/<step>`,
  signed-decimal session id, `model_enum` / `used_claude` labels)
- `daily-cloudcode-pa.googleapis.com` with sandbox failover
- Live model discovery via `fetchAvailableModels`

## Usage

```bash
prime-agent -e ./packages/coding-agent/examples/extensions/google-antigravity
# then:
/login google-antigravity
```

For auto-discovery, copy this directory to `~/.prime/agent/extensions/`.

## Overrides

| Env var | Purpose |
|---------|---------|
| `PI_AI_ANTIGRAVITY_VERSION` | Pin the spoofed `antigravity/hub` client version |
| `PI_AI_ANTIGRAVITY_CL` | Pin the `cl` changelist component |
| `PI_AI_ANTIGRAVITY_OS` / `PI_AI_ANTIGRAVITY_ARCH` | Pin the `os_type` / `arch` components |
