Skip to content

About

Zero-patch Google Antigravity 2.0 companion: HUD, quotas, cost, account switcher & no-TUN proxy. | 零改包汉化、HUD、配额与切号

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

150 stars

Watchers

1 watching

Forks

Repository files navigation

GravityBox Logo

GravityBox — Google Antigravity 2.0 Companion

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  |  简体中文

Latest Release Total Downloads macOS and Windows MIT License

Features · Telemetry HUD · Console · Install · Security · Build

GravityBox Native Console and Menu Bar Floating Panel macOS native console & menu bar panel (Swift 6 / AppKit, Light & Dark) — Windows x64 ships a feature-parity Tauri 2 / React console & tray panel
Install: Homebrew · Scoop · Releases ↓

Features

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.

Why Zero-Patch?

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.

In-IDE Telemetry HUD

In-IDE Telemetry HUD and Token Usage Popover

Close-up of the three always-on HUD capsules
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

Session Stats Popover
Token Usage

Token Usage Popover
Current Context

Current Context Popover with Prior Model 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 / Reply split when available), plus step-locked API dollar spend (≥ $X when 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.

Console Previews

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 (see CHANGELOG.md for per-release verification status).

Overview

GravityBox Overview
Accounts

GravityBox Accounts
Usage & API Cost

GravityBox Usage
Settings

GravityBox Settings
More previews: Menu Bar Floating Panel, Storage Maintenance, and About
Menu Bar · Usage

Menu Bar Usage
Menu Bar · Quota

Menu Bar Quota
Menu Bar · Accounts

Menu Bar Accounts
Storage & Maintenance (Trash + Undo)

Storage Maintenance
About & Updates

About GravityBox

Install & Platforms

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.app

Windows 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 gravitybox
Alternative: zero-dependency PowerShell installer & SmartScreen note
irm https://raw.githubusercontent.com/Enzoo404/gravitybox/main/tools/install-win.ps1 | iex

Open-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, then npm 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.

Security & Privacy

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 & Build

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"]
Loading
Building from source & repository layout (macOS / Windows)

macOS CI Status Windows CI Status

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

FAQ

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.


Contributing, Acknowledgements & License

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.

About

Zero-patch Google Antigravity 2.0 companion: HUD, quotas, cost, account switcher & no-TUN proxy. | 零改包汉化、HUD、配额与切号

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

150 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages