Skip to content

Feature: Antigravity v2 support (Gemini CLI quota merging, rate-limit overrides, GPT-OSS) #134

@XDayonline

Description

@XDayonline

Feature Request: Antigravity v2 Model Support

Summary

The Google Antigravity provider currently lacks support for several newer models and features available in the Gemini CLI v2 API. This issue tracks adding these capabilities.

Proposed Features

  1. Gemini CLI quota merging (retrieveUserQuota endpoint)

    • Fetch cloudcode-pa.googleapis.com/v1internal:retrieveUserQuota for more accurate rate-limit data
    • Merge CLI bucket quotas with standard Antigravity fetchAvailableModels results
    • Lower remaining percentage wins when both sources report conflicting data
  2. Rate-limit overrides

    • Apply local rateLimitResetTimes from ~/.config/opencode/antigravity-accounts.json account entries
    • When a model is temporarily rate-limited (e.g., rateLimitResetTimes: { "claude": 1234567890 }), show 0% remaining and the correct reset time
  3. GPT-OSS support

    • Add gpt-oss-120b-medium model key to GOOGLE_MODEL_KEYS and GoogleModelId union
    • Normalize gpt-oss model name in grouped-entry-normalization.ts
  4. Provider grouping improvements

    • Group Antigravity entries by displayName with explicit label and classicStrategy: "preserve"
    • This produces cleaner sidebar output for multi-account, multi-model quotas

Use Case

Users with multiple Google Antigravity accounts and newer models (Gemini 3.1 Pro, Claude Sonnet 4.6, GPT-OSS) currently see incomplete or inaccurate quota data. The CLI API provides more accurate rate-limit information than the standard Antigravity endpoint.

Acceptance Criteria

  • queryGoogleQuota calls retrieveUserQuota and merges results
  • rateLimitResetTimes in account config is respected
  • GPT-OSS appears in quota output when configured
  • Antigravity entries are grouped by model name in sidebar

Additional Context

These features are currently implemented locally in compiled .js patches and have been backported to TypeScript source in PR #120.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions