Skip to main content
Glama
Antigravity Token Monitor

Antigravity Token Monitor

by riandycandra

Antigravity Token Monitor

Local telemetry tools for Google Antigravity (VS Code extension, Antigravity Desktop, and Antigravity IDE) that read ~/.gemini/antigravity/brain/<conversation-id>/.system_generated/logs/transcript.jsonl to display live token usage, context window headroom, cache hit rate, and estimated TPS.

Everything runs 100% locally on your machine. No external network calls, analytics, or telemetry.


1. Antigravity Plugin (Side Pane & Sidebar)

An MCP App plugin rendered inside Antigravity's Side Pane (aux_pane) and Left Sidebar (global):

  • Context window meter (stacked Cached + New Input vs. Free headroom, with 200k / 1M / 2M presets)

  • Estimated TPS (lastTurnTps & avgTps from step timestamps)

  • Session totals ledger (Total processed, Cache hit %, Uncached input, Output generated)

  • Context growth chart across recent turns (keyboard & mouse inspectable)

  • By model and Recent sessions tabs with live 3-second auto-refresh

Install

agy plugin install https://github.com/riandycandra/antigravity-token-monitor

Then open Token Monitor from the + menu in the side pane, under Plugins in the left sidebar, or ask "Open the Token Monitor" in chat.


Related MCP server: Gauge

2. VS Code / Open VSX Status Bar Extension

A lightweight, zero-dependency status bar item showing live stats in the bottom bar of VS Code, Antigravity IDE, Cursor, or Windsurf:

Ctx 327.0k (33%) · Cache 86.1% · In 5.46M · Out 318.2k · ~81 t/s
  • Hover: shows exact counts and a per-model breakdown table

  • Click: opens a QuickPick menu to switch/pin conversations, refresh immediately, or cycle context limits (200k / 1M / 2M)

  • Warning highlight: turns amber at >= 75% and red at >= 90% of the configured context limit

Install

  • Open VSX Registry (Antigravity IDE, Cursor, Windsurf, VSCodium): search for riandycandra.antigravity-token-statusbar in the Extensions panel, or visit: https://open-vsx.org/extension/riandycandra/antigravity-token-statusbar

  • GitHub Releases (VS Code .vsix): download riandycandra.antigravity-token-statusbar-1.0.0.vsix from Releases and run:

    code --install-extension riandycandra.antigravity-token-statusbar-1.0.0.vsix

Development & Building from Source

# Rebuild the Antigravity MCP App bundle (dist/app.html + zero-dependency dist/server.cjs)
pnpm install
node scripts/build.mjs

# Package the VS Code / Open VSX .vsix
node vscode-statusbar/build-vsix.mjs

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      B
      maintenance
      Enables AI coding agents such as Claude Code, Cursor, Codex, and OpenCode to query local token usage, costs, quotas, projects, and models through six strictly read-only tools. All data stays on the local machine, drawn from passively parsed session logs rather than uploaded telemetry.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables local monitoring of Codex token usage, prompt-cache reuse and estimated credits by reading existing session logs and exposing an embedded dashboard plus tools for whole-chat, latest-call and latest-prompt readings and call history. All collection and refresh stay local on-device, requiring no model calls, API key or hosted backend.
      5
      MIT
    • 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