In-IDE Telemetry HUD, Quotas, Cost Analytics & Multi-Account Companion for Google Antigravity
100% Local · Zero Binary Patches · No-TUN Proxy · Safe Account Switching
English | 简体中文
Features · Telemetry HUD · Console · Install · Security · Build
Install: Homebrew · Scoop · Releases ↓
100% local · Zero telemetry · Zero binary patches · No API proxy · Open source (MIT)
GravityBox brings real-time observability, quota clarity, API cost analytics, and multi-account control to the official stable release of Google Antigravity. Across three surfaces—an In-IDE HUD beneath each chat composer, a Menu Bar / System Tray Panel (⌘1/2/3), and a 5-Page Desktop Console—everything runs locally over loopback CDP and read-only SQLite without ever touching the official Antigravity application bundle.
| Dimension | Typical Workarounds | GravityBox |
|---|---|---|
| Official Bundle | Unpack or patch app.asar (breaks on every Antigravity update) |
Loopback CDP isolated world — official bundle untouched |
| Quota & Risk | Cloud API polling or reverse proxies carry account risk | Reads local/SSH language_server only + Manual-Only zero-polling mode |
| Footprint | Juggling separate tools for HUD telemetry, quota tracking, account switching, proxy forwarding & optional UI localization | One native app (macOS Swift 6 / Windows Tauri 2) covering all five |
| Feature | What It Gives You |
|---|---|
| In-IDE Telemetry HUD | Embeds a native-themed 3-capsule toolbar below every chat composer (including BTW side panes) displaying turn duration, tok/s, total tokens, KV cache hit rate, compactions, and live context fill—with upward breakdown popovers. |
| 5h & Weekly Quota Clarity | Reads real-time 5-Hour, Weekly, and standalone high-tier pools directly from local or SSH language_server processes (zero cloud API polling), with Manual Only zero-background mode and Standby Advisor. |
| API Cost, Speed & Effort Analytics | Read-only SQLite ledger tracks Est. API Cost (plus optional live pricing sync), weighted Output Speed (tok/s), By Model | By Effort breakdowns synced with the cost chart, custom date ranges, and exportable Request Logs. |
| Safe Account Switching & Masking | Capture live sessions, batch-import/export JSON, sync agy CLI tokens, redact names and emails with one hotkey (⇧⌘M / Ctrl+Shift+M), and switch cleanly via 4-phase atomic rollback and graceful relaunch. |
| Proxy Forwarding (No TUN) & Storage Trim | Inject system or manual http(s):// proxies into Antigravity without TUN mode (plus shell-override alerts), and move allowlisted runtime caches safely to Trash or Recycle Bin with one-click undo. |
| SSH Remote & Unified Ledger | Extends the live HUD, read-only per-host quotas, and incremental usage sync to Antigravity 2.33.0+ SSH remote windows over local CDP—without spawning external ssh processes. |
| Optional Bilingual UI (English / 简体中文) | Optional runtime switching between English and Simplified Chinese (2.23.0–2.36.0 verified dictionaries + opt-in pure-data hot-sync) with zero binary changes—leaving prompts, code, diffs, and terminals untouched. |
| Capsule | Example Readout | What It Shows |
|---|---|---|
| 1. Session & Speed | Gray / Solid Blue / Breathing Blue dot + 3T · Turn 18s · 90 tok/s · 2 |
Foreground state (Gray idle/background-only, Solid Blue thinking/streaming, Breathing Blue tool call), user turns, turn elapsed time, output speed, and active subagents. |
| 2. Tokens & Cache | 58.6M tok · CacheHit 97% |
Cumulative session + subagent token volume and prompt cache reuse ratio. |
| 3. Context Meter | Badge (1 / 2 / 3+) + Hydrogen + Meter (66%) |
Optional compaction count badge (appears once compacted), active model tag, and live context fill (~ marks an estimate when capacity is omitted). |
Hover or click any capsule to inspect its upward breakdown (Esc or click outside to dismiss):
Session Stats
|
Token Usage
|
Current Context
|
Popover breakdown & Orchestrator context tracking
- Session Stats: Splits Model vs. Tool duration (concurrent tool intervals deduplicated), overall Avg TTFT/TPS, latest step TTFT/TPS, and subagent step counts.
- Token Usage: Breaks down Uncached Input, Cached Read, Cache Write, and Output (
Reasoning / Replysplit when available), plus step-locked API dollar spend (≥ $Xwhen an unpriced model is present) and Cache Saved. - Current Context: Single-line header with role pill (
Exec/Plan), two-color fill bar (Cached vs. Uncached Input), latest step output, model peak context, and a unified Prior Model Context list preserving historical Orchestrator roles across truncation.
Screenshots show the verified macOS Swift 6 / AppKit primary edition. Windows x64 (Preview) ships a feature-parity Tauri 2 / React 19 5-page console (
Overview · Accounts · Usage · Settings · About) and system tray panel (seeCHANGELOG.mdfor per-release verification status).
Overview
|
Accounts
|
Usage & API Cost
|
Settings
|
More previews: Menu Bar Floating Panel, Storage Maintenance, and About
Menu Bar · Usage
|
Menu Bar · Quota
|
Menu Bar · Accounts
|
Storage & Maintenance (Trash + Undo)
|
About & Updates
|
|
Requires the official stable Antigravity app (see CHANGELOG.md for per-release Windows verification status).
macOS 14+ (Apple Silicon) — Homebrew Cask (or arm64.dmg on Releases; run xattr -cr once to clear Gatekeeper):
brew install --cask enzoo404/tap/gravitybox
xattr -cr /Applications/GravityBox.appWindows 10/11 (x64 · Preview) — Scoop (or -setup.exe / .zip on Releases; requires WebView2):
scoop bucket add enzoo404 https://github.com/Enzoo404/scoop-bucket
scoop install gravityboxAlternative: zero-dependency PowerShell installer & SmartScreen note
irm https://raw.githubusercontent.com/Enzoo404/gravitybox/main/tools/install-win.ps1 | iexOpen-source Windows builds are unsigned—if Windows Defender SmartScreen shows "Windows protected your PC", click More info → Run anyway.
- macOS (Intel
x86_64): Local source build only — requires Node 22 & Xcode CLT, thennpm ci && npm run package:mac. - Connect, Upgrade & Uninstall: Launch Antigravity from GravityBox (or click Safe Relaunch to Connect if already running without a debug port). Upgrades keep your local data (
~/Library/Application Support/GravityBox·%APPDATA%\GravityBox); uninstalling never touches official Antigravity files.
| Guarantee | Mechanism |
|---|---|
| Zero Telemetry & Opt-In Outbound | No analytics SDKs, cloud quota polling, or protocol bridges. Update checks, pricing sync, and pure-data dictionary hot-sync all default to Off and never fetch executable code; Manual Only quota mode performs zero background polling. |
| Untouched Official Bundle | Operates strictly via loopback (127.0.0.1) CDP isolated worlds and read-only SQLite; never unpacks, patches, or re-signs Antigravity. |
| Content & Storage Isolation | Prompts, chats, code, diffs, CSVs, LSP refs, notebooks, and terminals are guarded from modification. Credentials stay local (0600 & Keychain on macOS; Credential Manager with 2560-byte guard/zeroization, 256-bit token/SID-verified Named Pipe, and strict Tauri CSP on Windows). |
| Privacy Masking & Safe Cleanup | One-click masking (⇧⌘M / Ctrl+Shift+M) redacts UI and alerts; deleting an account purges matching recovery snapshots; cleanup moves only allowlisted caches to Trash / Recycle Bin (IFileOperation) with undo. See SECURITY.md. |
Architecture overview diagram
flowchart LR
UI["Desktop UI<br/>macOS: Swift 6 / AppKit · Win: Tauri 2 / React"] <-->|"macOS: UDS · Win: SID-Verified Named Pipe"| Core["Core Engine (Node 22 / TypeScript)<br/>4-Phase Switch · SQLite Ledger · Quota Fusion"]
Core -->|"Loopback CDP (Zero Binary Mod)"| IDE["Official Antigravity Stable<br/>Telemetry HUD · Runtime i18n"]
Core -->|"Read-Only SQLite + Trash / Recycle Bin"| Local["Local App Data & Credentials<br/>macOS App Support / Keychain · Win %APPDATA% / CredMan"]
Building from source & repository layout (macOS / Windows)
Requires Node.js >=22.15.0 <23, Xcode Command Line Tools on macOS, or Rust + MSVC + WebView2 (plus NSIS for -setup.exe) on Windows. See CONTRIBUTING.md and PROJECT.md for full developer docs.
git clone https://github.com/Enzoo404/gravitybox.git && cd gravitybox && npm ci
npm test # Build TS, verify pricing parity, and run unit/integration suites
npm run verify # Full gate: TS, tests, headless Chromium E2E, Swift -O (macOS), dict gates
npm run package:mac # Build .app and .dmg for local macOS architecture (arm64 / x86_64)
npm run test:win # Backend fast tests + Win32 helper & Tauri Rust tests (Windows)
npm run package:win # Self-contained Windows .zip (pass --installer for NSIS .exe)gravitybox/
├── native/ # Swift 6 / AppKit console, MenuFloatingPanel, L10n runtime, updater (macOS)
├── src/ # Node 22 / TypeScript core (IPC, i18n, 4-phase switch, quota, SQLite ledger, HUD, platform/)
├── windows/ # Co-located Windows x64 client (win-helper Rust Win32 helper + Tauri 2 / React app)
├── runtime/ # CDP isolated-world scripts (Telemetry HUD, DOM localization, content guards)
├── dict/ # Layered bilingual dictionaries and custom overrides
├── ui-strings/ # Official bundle extraction snapshots (2.23.0 – 2.36.0)
├── assets/ # Icons, i18n JSON packs, model catalog, pricing feed, Retina screenshots
├── test/ # Unit, integration, headless Chromium E2E, cross-platform & Swift UI tests
└── tools/ # Integrity, privacy/docs checks, packaging, smoke tests, installer scripts
Why must Antigravity be closed before switching accounts?
Antigravity holds live state.vscdb SQLite and credential locks while running. GravityBox verifies a graceful exit first (never force-killing active work), executes a 4-phase snapshot transaction, and rolls back automatically on failure.
Does GravityBox alter Antigravity or change my IDE language?
No. Official binaries are never modified, and GravityBox defaults to your system language—so English systems stay completely in English with the English Telemetry HUD. Opt-in Simplified Chinese switching is available anytime under Settings → Display Language.
How does GravityBox survive Antigravity 2.0 updates without patching app.asar?
GravityBox attaches at runtime via a loopback (127.0.0.1) CDP isolated world and read-only SQLite, leaving official binaries and app.asar completely untouched—so Antigravity updates never require re-patching or re-signing. The Telemetry HUD and optional bilingual UI (2.23.0–2.36.0 verified) automatically fall back to adaptive compatibility mode on newer builds, with opt-in pure-data dictionary hot-sync under Settings → Refresh & Sync.
Antigravity 2.33.0+ shows "Debug Port Missing" (--remote-debugging-port=0) — how do I fix it?
Newer Antigravity releases no longer enable the local debug port when launched externally. Open Antigravity directly from GravityBox (or enable Settings → Auto-Open Antigravity on Launch), or click Safe Relaunch to Connect on the Overview banner for a graceful restart without force-killing active work.
How do I configure an HTTP/HTTPS proxy for Antigravity without TUN mode?
Under Settings → Network Proxy, choose Follow System Proxy or Manual (http(s)://host:port). GravityBox passes proxy environment variables directly to Antigravity and detects conflicting shell overrides—no system-wide TUN mode required.
Does multi-account switching sync agy CLI tokens or poll cloud quota APIs?
Yes for existing same-origin agy CLI OAuth files (while keeping @google/gemini-cli credentials strictly isolated). Direct cloudcode-pa cloud quota polling is completely retired—all quotas are read exclusively from running local or SSH language_server processes, with a true zero-background Manual Only mode.
Why do macOS Gatekeeper (xattr -cr) or Windows Defender SmartScreen warn on first launch?
Open-source builds are ad-hoc signed / unsigned rather than commercially notarized. On macOS, run xattr -cr /Applications/GravityBox.app once after installation; on Windows, click More info → Run anyway in SmartScreen. Every release ships matching .sha256 checksum files for verification.
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, SECURITY.md, and CHANGELOG.md. Feedback is welcome via GitHub Issues.
Acknowledgements: Contributors @Agonie0v0, @lvyandev, and everyone in CHANGELOG.md · Community support from LINUX DO.
Released under the MIT License · Third-party notices in THIRD_PARTY_NOTICES.md · Not affiliated with or endorsed by Google, Apple, or Microsoft.