Skip to main content
Glama

Antigravity Quota & Speed Meter

Native Antigravity MCP App plugin (quota-meter) that mounts into Antigravity's Side Pane (aux_pane) and Sidebar (global) to monitor real-time tok/s generation speed and per-model-group rolling quota clocks (5-hour & 7-day windows), accompanied by an interactive pixel-art telemetry cockpit ("Bé Turbo").

Plugin MCP App cho Antigravity App: gắn ngay vào Side Pane và Sidebar Plugins để đo tốc độ tok/s theo thời gian thực và đồng hồ quota 5 giờ / 7 ngày cho từng nhóm model, kèm animation pixel "Bé Turbo" dễ thương.


Features / Tính năng chính

  • Live tok/s Analog Speedometer & Sparkline:

    • Measures true generation throughput directly from ~/.gemini/antigravity/brain/*/transcript.jsonl (output_tokens across the full turn duration, accurately spanning parallel multi-tool GENERIC events).

    • Displays current tok/s, 12-turn average, 5-hour peak, 5-minute output rate, a 24-sample sparkline, and the latest 8 turns table.

  • Shared-Pool Quota Clocks (5h & Weekly):

    • Matches Antigravity's actual 2 shared quota pools: Gemini Models (Neon, Hydrogen, Carbon, Argon, Flash) and Claude and GPT models (Claude Opus/Sonnet, GPT-OSS), showing both 5h limit and Weekly limit simultaneously with sub-model usage breakdown.

    • Live HH:MM:SS countdown timers showing when each window resets.

    • Quick Sync Calibration (Đồng bộ): Click Đồng bộ on any pool to enter your account's exact % remaining and reset countdown (e.g., 3h 47m or 6d 15h) from Antigravity's View Usage — persisted cleanly in ${PLUGIN_DATA}/quota-config.json and decremented in real time as new tokens arrive.

  • Reactive Pixel-Art Cockpit ("Bé Turbo"):

    • Procedural HTML5 Canvas pixel art (zero external images), automatically synced to Antigravity's Dark and Light themes (prefers-reduced-motion supported).

    • Reacts live to idle, working, burst, and < 20% low-quota states. Click the stage to pet Bé Turbo for pixel hearts, gold orbs, and an immediate telemetry refresh.


Related MCP server: antigravity-desktop-live-quota-mcp

Installation / Cài đặt

Option 1 — Via agy CLI

agy plugin install https://github.com/xomno01/antigravity-quota-meter

Then install Node dependencies inside the installed plugin folder (~/.gemini/config/plugins/):

npm install

Option 2 — Manual Install (Global Plugin)

git clone https://github.com/xomno01/antigravity-quota-meter.git ~/.gemini/config/plugins/quota-meter
cd ~/.gemini/config/plugins/quota-meter
npm install

Antigravity discovers plugins in ~/.gemini/config/plugins/ automatically:

  • Side Pane: Click + in the Side Pane tab bar → Quota Meter (or ⋯ → Plugins → Quota Meter).

  • Full Page: Open Plugins in the left Sidebar → Quota Meter.


Development / Phát triển

Requires Node.js 20+.

# Install dependencies
npm install

# Bundle ui-src/ into self-contained dist/hud.html
npm run build:ui

# Start MCP stdio server directly (for testing)
npm start

Project Structure

quota-meter/
├── plugin.json          # Antigravity plugin manifest
├── mcp_config.json      # MCP stdio server definition (meter)
├── package.json
├── assets/logo.svg      # Pixel gauge icon
├── server/
│   ├── index.mjs        # MCP server, ui:// resource & 5 tools
│   └── telemetry.mjs    # Incremental transcript scanner, tok/s & rolling window engine
├── ui-src/
│   ├── app.js           # @modelcontextprotocol/ext-apps client + 1.5s live polling
│   ├── pixel-stage.js   # Procedural pixel-art cockpit ("Bé Turbo")
│   ├── styles.css       # Theme-token CSS (dark & light)
│   └── build.mjs        # esbuild single-file bundler
└── dist/
    └── hud.html         # Prebuilt self-contained MCP App HTML

License

MIT © xomno01

Available Tools

5 tools
app_poll_telemetryPoll Live TelemetryB

Internal app-only tool to poll live quota and token/s telemetry.

Inputs: no named parameters.

app_reset_quota_configReset Quota CalibrationB

Internal app-only tool to reset quota calibration for one or all shared pools.

Inputs: bucketId.

app_save_quota_configSave Quota CalibrationC

Internal app-only tool to calibrate remaining quota %, reset countdown, or token limits per shared pool.

Inputs: bucketId (required), limit5h, limit7d, syncWindow, +2 more.

get_quota_snapshotGet Quota & Speed SnapshotB

Query real-time shared-pool quota usage (5h & Weekly), reset countdowns, and live tokens/sec speed.

Inputs: no named parameters.

open_quota_meterQuota MeterA

Open the real-time Quota & Speed Meter HUD showing shared Gemini and Claude/GPT quota clocks (5h & Weekly), live tokens/sec speedometer, and pixel animation.

Inputs: bucket.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 5 tools

    Disambiguation4/5

    Most tools have distinct purposes: opening the HUD, querying a snapshot, polling telemetry, saving calibration, and resetting calibration. However, get_quota_snapshot and app_poll_telemetry overlap because both return live quota and token/s telemetry, and the 'internal app-only' framing may confuse whether an agent should call the latter.

    Naming Consistency4/5

    The public tools follow a clear verb_noun pattern (open_quota_meter, get_quota_snapshot), and the internal tools consistently use an app_ namespace (app_poll_telemetry, app_save_quota_config, app_reset_quota_config). The mixed public/internal prefixing is meaningful rather than chaotic, though it is a minor deviation from a single naming convention.

    Tool Count5/5

    Five tools is well-scoped for a quota meter HUD server, covering the core actions without overwhelming the agent. Each tool appears to earn its place: open/read/poll/config-save/config-reset.

    Completeness4/5

    The surface covers opening the meter, reading snapshots, polling telemetry, saving calibration, and resetting calibration, which is most of the expected lifecycle. Minor gaps remain, such as closing the HUD or listing available shared pools/config states, but core workflows are covered.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables users to inspect real-time prompt cache hit rate, task throughput, and per-model token usage for Antigravity sessions and 5h/1d/7d windows through an interactive local dashboard. It combines lifecycle hook timing with local transcript data, with zero outbound network telemetry.
      MIT
    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables real-time monitoring of Google Antigravity context usage with detailed Messages/Thinking/Tool breakdowns, cache and checkpoint telemetry, one-click compaction, and smart suggested replies across Desktop, IDE, and CLI/tmux.
      2
      MIT