GoGauge

August 13, 2026 Β· View on GitHub

GoGauge

A local-first usage dashboard for OpenCode Go: quota windows, token breakdown, model ranking and usage records β€” all in one place.

πŸ‡¨πŸ‡³ δΈ­ζ–‡


πŸ“Έ Screenshots

Home (Light)Home (Dark)
Home LightHome Dark
StatsRecords
StatsRecords
SettingsLoginAbout
SettingsLoginAbout

✨ Features

  • Quota monitoring: 5h rolling / weekly / monthly windows with progress bars, remaining % and reset countdown
  • Usage overview: cache hit rate / hit amount / total tokens (incl. cache hits) / requests / cost / sessions
  • Today's trend: 24-hour input / output bar chart
  • Usage stats: token breakdown (input / output / reasoning / cache read / cache write / sessions), model usage donut + ranking, cost / requests / total tokens triple-line trend
  • Session history: per-session aggregation of requests / input / output / reasoning / total tokens / cost, paginated
  • Usage records: request-level detail with pagination and model filtering
  • Built-in WebView login: independent login window opens the official auth page, auto-fills cookie & workspace β€” no manual copy-paste
  • Auto sync: incremental sync (1/5/15/30 min) + sync range (30/60/90/180 days / All)
  • Dual themes: light / dark toggle; bilingual UI (δΈ­ζ–‡ / English)
  • System tray: closing the window minimizes to tray; brand logo icons
  • Local-first: all data stays in local SQLite; credentials are only used to sync official APIs

πŸ–₯ Quick Start

Binary (Windows)

Download GoGauge.exe from Releases (single file, no install):

  1. Double-click to run, click "Login Now" on the welcome page β€” an official auth window pops up
  2. After login, the dashboard loads and usage data syncs automatically
  3. Data is stored in the data\ folder next to the exe

Requires Windows 10/11 (WebView2 Runtime built-in). Closing the window minimizes to the system tray.

From Source

pip install -r requirements.txt
python entry.py

Build

build.bat

Output: dist\GoGauge.exe (~38 MB, --noconsole, logo icon and tray support included).

πŸ“Š Data Notes

  • Source: opencode.ai workspace usage API (/_server server-fn) + quota page HTML parsing
  • Total tokens = input (incl. cache hits) + output + reasoning
  • Cache hit rate = hits / (hits + misses)
  • Cost: raw USD; CNY converted via open.er-api.com live FX rate (24h cache)

πŸ”’ Privacy

  • Login cookie stays on your machine only β€” never logged, never uploaded
  • Usage data is stored entirely locally; the app contains no telemetry

πŸ›  Tech Stack

Python Β· pywebview (WebView2) Β· SQLite Β· Chart.js Β· pystray

πŸ“¬ Contact

πŸ“„ License

MIT Β© GoGauge