@grgerwcwetwet: Another great tool for Google Antigravity users! An open-source local usage monitoring dashboard that supports the Antigravity desktop app, IDE, and CLI — view token consumption, context composition, generation speed, and remaining quota in real time. See how many tokens you've used, what's occupying your context, ...
Summary
An open-source local usage monitoring dashboard supporting Google Antigravity's desktop app, IDE, and CLI, providing real-time views of token consumption, context composition, generation speed, and remaining quota — with no external npm dependencies.
View Cached Full Text
Cached at: 11/29/26, 12:55 AM
Google Antigravity users have another great tool on their hands! An open-source local usage monitoring dashboard that supports the Antigravity desktop app, IDE, and CLI — letting you view token consumption, context composition, generation speed, and remaining quota in real time. How many tokens you’ve used, what’s occupying your context, and how much quota is left — all at a glance.
GitHub:https://github.com/yuhuan-dev/antigravity-usage-monitor… — # yuhuan-dev/antigravity-usage-monitor Source: https://github.com/yuhuan-dev/antigravity-usage-monitor # Antigravity Usage & Speed Monitor Local usage, speed, context, and quota monitor for Google Antigravity 2.0, Antigravity IDE, VS Code (official extension), and Antigravity CLI, with no external npm dependencies. Release (https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest) Downloads (https://github.com/yuhuan-dev/antigravity-usage-monitor/releases) Stars (https://github.com/yuhuan-dev/antigravity-usage-monitor/stargazers) License Zero Dependencies Platforms English · 简体中文 Features · Screenshots · Client Support · Installation · Usage · Development Latest Release (https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest) · Download ZIP (usage-monitor.zip) (https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest/download/usage-monitor.zip) — ## Features - Live Metrics & Customizable Layout: Tracks output speed (tok/s), time-to-first-token (TTFT), session average speed, step/session USD cost, cache hit rate, tightest remaining quota, and session tokens. You can choose and reorder the overview metric cards (4 shown by default out of 9 options) and section blocks. - 10-Category Context Breakdown: Shows the token breakdown of the latest request across assistant replies, tool results, user messages, subagent notifications, checkpoints, system prompts, system tools, MCP tools, skills, and user rules, with a switcher between the main agent and spawned subagents. - Quota Pool Tracking, Lease Reservation & Burn-Rate Reference: Reads 5-hour and weekly quotas, reset timers, and cycle consumption across Gemini, Gemini 4 Argon, Gemini 4 Carbon, and Claude & GPT pools (plus Ultra 5x / 20x tier badges), renders an in-flight lease reservation segment with an account-isolated per-model burn-rate & equivalent full-pool cost popover (?), and preserves cached quota data with a stale notice when upstream is temporarily unavailable. - Account Sign-in and Switching on Windows: Choose Sign in with Google under Preferences → Account. Browser authorization automatically adds the account and loads its quota. Existing refresh tokens and OAuth JSON can also be imported. Switch and restart closes and reopens the App and newer IDE sharing its sign-in. Save your work before switching. - Main Agent, Subagents, Swarm & SSH Isolation: Merges main agent, subagent, and Native Swarm worker steps in chronological order (or filters by individual agent), renders optional turn rails, expands running tasks inline, and isolates per-window caches and quotas across multiple SSH Remote windows (endpointId). - Call Details, Timing Tooltips & Anomaly Chips: Includes By Step and By Model tabs (with multi-model LOESS throughput/TTFT fit charts), clickable column sorting, hover TTFT/duration stage breakdowns, accent-highlighted compaction rows with diagnostic tooltips, and an optional live search & 9-category anomaly/compaction/low-cache/slow-TTFT filter toolbar. Supports 2–14 configurable columns and custom token DSL strings such as context:in:cache. - Historical Usage, Project Attribution & Heatmap: Summarizes tokens, uncached input vs. cache-read savings, thinking/output split, smooth hourly/daily trend curves (switching automatically to a GitHub-style daily calendar heatmap over >90 days), Model / Project (Workspace) / Session rankings, client attribution (Desktop App / IDE / CLI), and monthly bar charts with pointer-following breakdown popovers across Today, 1d, 7d, 14d, 30d, All, or custom date/time ranges. - Native .xlsx / Markdown Exports & Settings Backup: Exports multi-sheet localized Excel (.xlsx) workbooks and Markdown summaries for both Usage Statistics and Call Details directly to ~/Downloads with an in-app reveal toast, plus portable JSON preference backup/import. - Cross-Client Session Migration: Built-in opt-in session migrator (Preferences → Other) moves or clones conversations across Antigravity CLI ↔ Desktop App / IDE and Legacy IDE (.db) with isolated UUID rewriting to prevent cross-client mirror collisions or double billing. - Multi-Client Capsules & CLI statusLine Modes: Integrates as a titlebar or composer capsule (with ring quota gauges and main-agent context lock) and auxiliary sidebar in Antigravity 2.0, a titlebar/composer capsule in Antigravity IDE, a single-line 24-bit ANSI statusLine in Antigravity CLI (--style pill|bar|compact, --preset compact|balanced|full, --json), and a standalone local web UI. - VS Code Extension & Remote-SSH Support: Auto-provisions ~/.vscode/argv.json (respecting autoConfigureLaunch) and mounts inside the chat input box by default via an independent vsCodeMountMode setting (switchable to Top Bar, without Sidebar Only); supports local and Remote-SSH endpoint isolation, instant conversation following, and remote agy CLI plugin fallback on the Top Bar while skipping hosts without Antigravity plugins. - No app.asar Modification & Desktop 2.33.0+ Auto-Provisioning: Titlebar/composer injection and context hooks run in memory over local CDP (DevToolsActivePort). Automatically provisions Desktop 2.33.0+ user shortcuts/launchers (with one-click out-of-job host relaunch) and ~/.antigravity-ide/argv.json without touching installation binaries or app.asar. - Per-Model Context Windows (Main & Subagent/Swarm): Sets context window limits per model series or follows host defaults, with independent toggles for the main agent (CDP request hook), spawned subagents / Swarm workers (local loopback CloudCode proxy), and CLI (AGY_CLI_AUTO_COMPACT_OVERRIDE). - Appearance, Offline Storage & Cloud Updates: Supports zh-CN / en-US / host language, borderless Modern UI, sm / md / lg / xl font scaling, 6 theme accents plus host matching, offline reading from CLI SQLite + WAL, annotations/*.pbtxt, transcript.jsonl, and .deep_stats_cache.json, GitHub pricing-catalog.json sync, and in-panel release updates (manual / auto / off). — ## Screenshots ### IDE & CLI Antigravity IDE Titlebar capsule and hover popover showing step cost, context usage, and pool quotas Antigravity CLI (agy) Single-line 24-bit ANSI bottom statusLine with active count, TPS, TTFT, step cost, and color-coded quota/context pill gauges ### Panel Tabs Live Overview TPS, TTFT, 10-category context bar, quota pools with lease reservation, and live Swarm/subagent tasks Usage Statistics Token totals, cache hit rate, smooth trend chart, and Model / Project / Session rankings Call Details Sortable main, Swarm, and subagent step rows with turn rail, compaction highlight, tokens, and cost — ## Client Support | Client | Status Capsule / Bar | Panel UI | Offline SQLite & Logs | Per-Model Context Limit | Modifies app.asar | | :— | :—: | :—: | :—: | :—: | :—: | | Antigravity 2.0 (Desktop) | Titlebar / Composer | Popover + Right Sidebar | Yes | CDP Hook + Local CloudCode Proxy | No | | Antigravity IDE | Titlebar / Composer | Capsule Popover | Yes | CDP Hook + Local CloudCode Proxy | No | | VS Code (Extension / Remote-SSH) | Input Box (Default) / Top Bar | Capsule Popover | Yes | Per-Host / Endpoint | No | | Antigravity CLI (agy) | Native ANSI statusLine | Standalone Web (--port) | Yes (node:sqlite + .pbtxt) | AGY_CLI_AUTO_COMPACT_OVERRIDE | No | | SSH Remote / Headless Linux | Per-Endpoint Capsule / ANSI statusLine | SSH Overlay / --token Web | Yes | Per-Endpoint Hook / Env | No | > [!NOTE] > On Antigravity Desktop 2.33.0+ and Antigravity IDE, enabling the plugin automatically provisions user launch shortcuts / ~/.antigravity-ide/argv.json with "remote-debugging-port": "0" via a zero-tool MCP keep-alive entry (0 context tokens). On Desktop 2.33.0+ you can click One-Click Relaunch directly inside the panel banner; on IDE, restart once after first activation so the titlebar capsule can attach. — ## Installation Keep the folder name as usage-monitor. No npm install is needed. ### Option 1: Release ZIP Download usage-monitor.zip (https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest/download/usage-monitor.zip) and extract it into ~/.gemini/config/plugins/ so the directory path is ~/.gemini/config/plugins/usage-monitor. Windows PowerShell command for ZIP installation powershell $pluginsDir = "$env:USERPROFILE\.gemini\config\plugins" New-Item -ItemType Directory -Path $pluginsDir -Force | Out-Null Invoke-WebRequest -Uri "https://github.com/yuhuan-dev/antigravity-usage-monitor/releases/latest/download/usage-monitor.zip" -OutFile "$env:TEMP\usage-monitor.zip" Expand-Archive -Path "$env:TEMP\usage-monitor.zip" -DestinationPath $pluginsDir -Force ### Option 2: Git Clone powershell # Windows (PowerShell) git clone --filter=blob:none --single-branch https://github.com/yuhuan-dev/antigravity-usage-monitor.git "$env:USERPROFILE\.gemini\config\plugins\usage-monitor" bash # macOS / Linux git clone --filter=blob:none --single-branch https://github.com/yuhuan-dev/antigravity-usage-monitor.git ~/.gemini/config/plugins/usage-monitor Or ask Antigravity directly: text Clone https://github.com/yuhuan-dev/antigravity-usage-monitor with --filter=blob:none --single-branch to ~/.gemini/config/plugins/usage-monitor and enable the plugin — ## Usage 1. Open Customizations → Installed in the left sidebar and enable usage-monitor. 2. Antigravity 2.0 (Desktop): - Mounts a capsule in the top-right titlebar (hover for summary, click for the 4-tab popover, right-click to refresh), alongside the right auxiliary sidebar pane. 3. Antigravity IDE: - Restart Antigravity IDE once after enabling for the first time. Keep Mount Mode on Dual-mount and click the top-bar capsule to open the panel. 4. VS Code (Extension / Remote-SSH): - Restart VS Code once after first activation (~/.vscode/argv.json is auto-configured when autoConfigureLaunch is enabled). Mounts inside the chat Input Box by default (switchable to Top Bar, independent of Desktop’s mount setting). Remote-SSH windows isolate endpoints per host and follow conversations automatically; hosts with only the agy CLI usage-monitor plugin mount on the Top Bar automatically, while hosts with neither plugin are skipped. 5. Antigravity CLI (agy): - When ~/.gemini/antigravity-cli exists, statusLine in settings.json is configured automatically (existing third-party statusLine.command entries are left untouched) to render a single-line ANSI bar (● 1 active 38.1 t/s | 0.85s | ◎ 17%). - Toggle via /statusline in agy or Preferences → Structure → Mount & Capsule Bar. 6. Standalone Web Server (Headless / Remote): bash # 1. Start on the host (listens on 127.0.0.1:8787 by default) node ~/.gemini/config/plugins/usage-monitor/sidecars/panel/standalone.mjs --port 8787 # 2. Forward the port locally and open http://localhost:8787 ssh -L 8787:127.0.0.1:8787 user@your-server Standalone CLI flags, background auto-start, and non-loopback token auth - Auto-start with agy: Set USAGE_MONITOR_STANDALONE_PORT=8787 or "standalonePort": 8787 in ~/.gemini/antigravity-cli/sidecar_data/usage-monitor/panel/data/settings.json to start the web UI together with the MCP sidecar supervisor. - Non-loopback auth: Binding to 0.0.0.0 or a LAN address requires --token (or USAGE_MONITOR_STANDALONE_TOKEN); starting on a non-loopback address without a token is rejected. - Overrides: Supports --data-dir, --app-data-dir, --gemini-dir, --ls-addr, and --csrf-token. - Offline fallback: When agy is not running, the backend reads ~/.gemini/antigravity-cli (conversation_summaries.db, conversations/*.db, annotations/*.pbtxt, and transcript.jsonl) and switches to live RPC once agy starts. — ## Configuration & Calculation Notes UI options: mount mode, capsule slots, token formats, model IDs, and context limits - Mount Mode & Width: Switch between Dual-mount (Top Bar + Sidebar), Composer, and Sidebar only. Popover width defaults to Auto Fit (expands within window bounds for wide tables) or a fixed width (440–1080 px). - Capsule Slots: Choose 1–5 metric slots and reorder them (default: Output Speed, TTFT, Context Usage), plus an optional toggle for the active-session indicator. - Call Details Table & Token Format: Toggle agent badges, turn rail (off by default), and speed color grading (off by default). Choose Ctx / Think / Reply, In / Out / Cache (with per-item USD tooltips), or custom format strings like context:new:cache or in:out:cache. - Model Name Format: Choose Compact short alias (argon-4-high), Full raw ID, or Trimmed raw ID (strips gemini- / claude- / gpt- prefixes while keeping ·compact suffixes intact). - Per-Model Context Limits: Configure limits per model across thinking levels or follow host defaults under Preferences → Other → Model Context Settings. App/IDE applies saved rules at startup; CLI sets AGY_CLI_AUTO_COMPACT_OVERRIDE. Model identification, compaction inference, and cost estimation rules - Model Resolution: Read from each step’s raw usage payload or matching generator metadata; explicit models are never overwritten. When an automatic compaction step omits the model field, it is inferred from adjacent steps in the same conversation (checking prior steps first, then following steps, preferring the same provider) for display and estimation, or shown as unknown compaction if none exist. - Cost Calculation: If a model or price entry cannot be resolved, step cost is shown as pending while tokens still count toward totals; session totals sum all resolved steps. USD numbers are estimated from public per-million-token API pricing in pricing-catalog.json for reference only and do not reflect subscription quota consumption. - Cache & Speed Averages: Upgrading re-checks cached entries against raw trajectory data while preserving token counts and valid timings. Compaction steps display request TPS in step tables but are excluded from session speed and TTFT averages. Updating and data directory - In-Panel Update: When a new GitHub release is available, a version badge appears next to the capsule and in the panel header. Update mode (Manual / Auto / Off) and price catalog sync can be configured under Preferences → Other. - Manual Git Update: - Windows: git -C "$env:USERPROFILE\.gemini\config\plugins\usage-monitor" pull --ff-only - macOS / Linux: git -C ~/.gemini/config/plugins/usage-monitor pull --ff-only - Toggle the plugin off and back on in Customizations → Installed. - Data Persistence: Settings and parsed caches live in ~/.gemini/antigravity/sidecar_data/usage-monitor/ (or sidecars/panel/.data/ in standalone mode), so updates keep existing history intact. — ## Local Development All backend and frontend modules use pure Node.js ESM and a lightweight custom reactive component & incremental DOM patch engine (defineComponent + domPatch, with Shadow DOM isolation for host overlays) and no external npm dependencies (Node.js 22.5+ is recommended for built-in node:sqlite). bash cd sidecars/panel # Rebuild app.js and styles.css after modifying src/ npm run build # Run unit and integration tests npm test ## Contributing & License Issues and pull requests ar
Similar Articles
@FinanceYF5: Some have always wanted to use Antigravity agent in the terminal, now you can. Google Antigravity CLI launched today: lightweight, complete, fully customizable. While everyone is moving towards GUI, Google Antigravity introduced a CLI. What do you think?
Google released Antigravity CLI, a lightweight, complete and fully customizable terminal tool that allows users to use Antigravity agent in the terminal.
@aehyok: Still think Antigravity is hard to use? You're probably missing these open-source plugins Pick the ones that suit you — checking quotas, browsing the UI, switching accounts, and writing code all become much smoother. Saying it doubles your productivity is no exaggeration. Speed & Coding 1、agy-fast
A roundup of 7 open-source plugins that improve the Google Antigravity experience, covering speed boosts (agy-fast), code slimming (Ponytail), quota monitoring, Chinese localization, and multi-account management — installing them noticeably boosts productivity.
@realfxw: Everyone has been focusing on Codex and Agent CLI in the terminal lately, but from my practical testing, Google Antigravity's command flow hidden in the / input box is very pragmatic in context management and workflow control. When writing complex projects, the two biggest headaches with Agents are: one is when large tasks are running…
This article introduces how Google Antigravity's tool uses command flows to manage the context and workflow of AI agents in coding projects, providing multiple practical instructions to address common pain points.
@googledevs: https://x.com/googledevs/status/2122392496147960008
Google Developers 公布了 Antigravity 及其 CLI 的斜杠命令速查表,涵盖多智能体推理、规划、后台自动化与插件扩展等内置命令,帮助开发者提升日常工程效率。
@kewangx: https://x.com/kewangx/status/2125233756122616256
This article is a comprehensive guide to Google AI Pro ($19.99/month, including 5TB), explaining how to make full use of more than 10 AI benefits, including Gemini, Deep Research, Notebook, Flow, Antigravity, and Workspace, while offering daily, weekly, and monthly usage routines and tips for managing usage limits.