Skip to content
NanmiCoderPublic

About

Zero-OAuth desktop tray monitor for Antigravity, Codex, Claude Code, Grok, Kimi & MiniMax — live quotas, incremental offline token & cache-hit analytics, Share Studio heatmaps, and signed auto-updates (Rust + Tauri v2)

Topics

Resources

Stars

30 stars

Watchers

0 watching

Forks

Latest commit

 

History

24 Commits

Folders and files

Repository files navigation

VibeBar — Swiss Alabaster & Obsidian desktop telemetry bar unifying six official AI coding CLIs with a 180-degree vermilion quota gauge and activity heatmap

VibeBar

Zero-OAuth desktop menu-bar & tray monitor for 6 AI coding CLIs — live subscription quotas, file-level incremental offline token & cache-hit analytics, Share Studio heatmaps, and signed online auto-updates.

English · 简体中文 · Download Latest Release

Google Antigravity
Antigravity
agy · gemini
OpenAI Codex
Codex
codex
Anthropic Claude Code
Claude Code
claude
xAI Grok
Grok
grok
Kimi Code
Kimi Code
kimi
MiniMax
MiniMax
mmx

Highlights · How It Queries · CLI Setup · Why Zero-OAuth · Architecture · Quick Start · Safety

VibeBar — Swiss Alabaster Bento desktop dashboard with left CLI provider sidebar, 180-degree segmented vermilion quota arc, gliding hover card showing daily prompt cache hit rate, official quota pools, and top models leaderboard


Highlights

  • Native Rust + Tauri v2: Zero node_modules, zero frontend bundler, ~11 MB signed & Apple-notarized macOS bundle (plus Windows x64/ARM64 installers), and instant startup via persistent local caches.
  • 6 Official AI Coding CLIs + Custom Hiding: Manage Antigravity (agy), Codex (codex), Claude Code (claude), Grok (grok), Kimi Code (kimi), and MiniMax (mmx) from one brand-icon sidebar with weekly-first progress bars and one-click parallel refresh. Don't use some CLIs? Hover × or toggle chips in Settings → Visible CLI Providers (including Hide Uninstalled) to hide them from the sidebar, background scheduler, tray, and Share Studio.
  • Unified File-Level Incremental Token Index: Read-only zstd-compressed file index (token-index-v1.json.zst) keyed by (mtime, size) with a gentle 4-worker ceiling, Single-Flight coalescing, 150s freshness TTL, and 0 disk writes when idle. Unchanged historical sessions are never re-parsed; switching between Overview (Today/7D/30D), Models, and Share Studio (30D/90D) projects from memory in milliseconds, and idle tray ticks cost 0 ms.
  • macOS Menu Bar Quota & Today's Tokens: 4-mode menu bar readout (Off / Quota / Tokens / Both) showing remaining quota and/or today's compact total token usage across all CLIs (All → Today), backed by the shared incremental index.
  • Share Studio (30D & 90D Usage Cards): Generate crisp 1920×1200 offline PNG cards in Swiss Alabaster (light default) or Obsidian Dark themes with Top 5 Models, P90 contribution heatmap, cache efficiency meter, animated live scan feedback, and one-click Copy (⌘⇧C / Ctrl+Shift+C) or Save to Downloads.
  • Signed Online Auto-Updates + OS Proxy Support: Built-in Ed25519-verified updates via GitHub Releases with automatic macOS (scutil) & Windows registry proxy detection, custom HTTP/HTTPS/SOCKS5 proxy option, and automatic direct fallback.
  • Low-Quota Alerts & Bilingual UX: Configurable thresholds (20% / 10% / 5%) across weekly and 5-hour windows with non-focus-stealing desktop floating toasts, auto OS locale (English B/M/K · 简体中文 亿/万), and click-to-mask email privacy pill.

How VibeBar Queries Each Provider

VibeBar never sends HTTP requests to any AI provider and never reads your OS Keychain, API keys, or OAuth tokens. Live quota is queried strictly through each unmodified official local CLI, paired with pure offline local log scanning for token and cache-hit analytics:

Provider Official CLI Live Quota Query Method (Zero-OAuth) Offline Local Token Log Source (Read-Only)
Antigravity Google Antigravity agy Spawns unmodified agy inside an isolated portable-pty + vt100 (55×180) sandbox, runs /usage (plus session-only official statusLine for plan tier), parses the screen, and exits cleanly via RAII ChildGuard. ~/.gemini/antigravity/conversations/*.db (immutable=1 protobuf gen_metadata) + transcript.jsonl, plus Gemini CLI ~/.gemini/tmp/*/chats/session-*.{json,jsonl}
Codex OpenAI Codex codex Spawns official codex app-server --stdio and exchanges standard local JSON-RPC (initialize, account/read, account/rateLimits/read) over stdio pipes. ~/.codex/sessions/ & ~/.codex/archived_sessions/ (.jsonl & .jsonl.zst, respects CODEX_HOME)
Claude Code Anthropic Claude Code claude Runs official claude auth status and claude -p "/usage" --output-format json --no-session-persistence --strict-mcp-config --setting-sources "" (never passes --bare, preserving your official session). ~/.claude/projects/**/*.jsonl including nested subagent & workflow logs with global message.id deduplication (respects CLAUDE_CONFIG_DIR)
Grok xAI Grok grok Spawns official grok Build ACP server over stdio JSON-RPC to read account plan and session quota pools cleanly. ~/.grok/sessions/ & ~/.grok/archived_sessions/ (updates.jsonl + summary.json, forked-session prompt_id dedup)
Kimi Code Kimi Code kimi Spawns unmodified kimi inside an isolated sandbox via portable-pty + vt100, submits /usage, parses 5-hour & weekly limits, and closes PTY cleanly. ~/.kimi-code/sessions/*/*/agents/*/wire.jsonl (usage.record turn & compaction records)
MiniMax MiniMax mmx Runs official mmx auth status --output json --quiet --non-interactive and mmx quota show --output json --quiet --non-interactive (parses General & Video 5H/Weekly pools and boost tier). ~/.minimax/v2/sqlite/runtime-state.sqlite (local_runtime_token_usage) & legacy ~/.minimax/sqlite.db (token_usage, read-only deduplicated)

Prompt Cache Hit Rate formula: All log parsers normalize uncached input (including cache writes) into input_tokens and cache reads into cached_input_tokens, reporting exact standard prompt cache hit rates: cached_input_tokens / (input_tokens + cached_input_tokens) × 100%.

API Key / Team Plan users: If codex, claude, or grok runs in API Key / Bedrock / Vertex / Foundry / Team mode without a personal quota window, VibeBar displays the mode gracefully while keeping full Offline Token & Cache-Hit Analytics active.


Prerequisites: Install & Sign In to Official CLIs

Important

Because VibeBar is 100% Zero-OAuth, it relies on the official CLIs installed and signed in on your machine. You do NOT need all six — install only the ones you use, and hide the rest with one click in Settings → Visible CLI Providers.

  1. Google Antigravity (agy) — Install Antigravity CLI, run agy to sign in, and verify /usage.
  2. OpenAI Codex (codex) — npm i -g @openai/codex && codex login
  3. Anthropic Claude Code (claude) — npm i -g @anthropic-ai/claude-code && claude auth login
  4. xAI Grok (grok) — Install official Grok Build CLI and run grok login.
  5. Kimi Code (kimi) — Install official Kimi Code CLI (~/.kimi-code/bin/kimi) and run kimi to sign in.
  6. MiniMax (mmx) — npm i -g mmx-cli && mmx auth login

Custom binary paths: VibeBar auto-searches PATH plus common nvm, fnm, Volta, Bun, Homebrew, ~/.kimi-code/bin, and npm global locations. For custom paths, open Settings → Privacy & CLI Paths.


Why Zero-OAuth?

Comparison between risky direct OAuth quota trackers and VibeBar running unmodified official CLIs locally

Third-party quota tools that extract personal OAuth tokens from your OS Keychain and embed official client secrets to poll private AI endpoints directly risk violating provider Terms of Service. VibeBar is auditable by inspection: open src-tauri/src/ — there is zero Keychain/credential reading and zero HTTP requests to any AI vendor. The only optional network module (updater.rs + tauri-plugin-updater) exclusively checks and downloads Ed25519-signed VibeBar binaries from GitHub Releases.


Technical Architecture

VibeBar three-stage technical architecture showing Tauri v2 desktop core, unified incremental indexer, 6 official CLI adapters, Zero-OAuth Trust Wall, and unmodified official CLIs

  1. Tauri v2 Desktop Core (lib.rs, refresh_policy.rs, alerts.rs, storage.rs, updater.rs) Manages the native tray & macOS menu bar readout, multi-monitor DPI popover anchoring, non-focus-stealing low-quota toast window, sys-locale i18n, Condvar-driven low-frequency quota scheduler (defaults to random jitter with idle/error gradient backoff, plus fixed interval or 0-wakeup manual mode), and Ed25519-signed GitHub Releases updater with automatic OS proxy detection.
  2. Unified File-Level Incremental Token Indexer (token_index.rs, token_usage.rs) Maintains a single zstd-compressed file-stamp index (token-index-v1.json.zst) shared across Overview, Models, Share Studio (with SWR caching & live heatmap-scan-progress events), and the macOS menu bar Today's Tokens display — using a bounded 4-worker pool, Single-Flight coalescing, 150s freshness TTL, and zero disk writes when idle.
  3. Zero-OAuth Official CLI Adapters (pty_quota.rs, codex_quota.rs, claude_quota.rs, grok_quota.rs, kimi_quota.rs, minimax_quota.rs) Drives each unmodified official binary through its native local interface (PTY/VT100, stdio JSON-RPC/ACP, or structured CLI JSON) with strict timeouts and RAII process-group teardown.
  4. Zero-OAuth Trust Wall All authentication, Keychain access, OAuth refresh, User-Agent, TLS fingerprint, and AI vendor API traffic stay 100% inside each official CLI binary.

Quick Start

Download Prebuilt Releases (Recommended)

Signed installers are built automatically via GitHub Actions for every tagged release (v*):

  • macOS (Developer ID Signed & Apple Notarized): Apple Silicon (aarch64) .dmg & Intel (x86_64) .dmg
  • Windows: Intel/AMD (x64) .msi / -setup.exe & ARM64 (aarch64) -setup.exe

Download from GitHub Releases. Starting from v0.1.7, future versions can be installed directly inside Settings → Software Updates with automatic system proxy support.

Build from Source

Prerequisites: At least one supported official CLI installed & signed in, plus Rust (1.80+). On Linux, install libwebkit2gtk-4.1-dev and libappindicator3-dev.

git clone https://github.com/NanmiCoder/VibeBar.git
cd VibeBar/src-tauri

# Run all Rust unit tests
cargo test

# Launch desktop tray app
cargo run
# macOS: build local VibeBar.app bundle (no tauri-cli needed)
./scripts/build-macos-app.sh
cp -R ./dist/VibeBar.app /Applications/VibeBar.app
open /Applications/VibeBar.app

# Cross-platform installers (.dmg / .msi / .exe / .AppImage / .deb)
cargo install tauri-cli --version "^2"
cargo tauri build

Safety Guardrails

Setting / Invariant Default Why
Quota refresh mode Random · Balanced (20–40m base) Irregular seconds + adaptive idle/error gradient backoff (1.0× → 1.35× → 1.8× → 2.4×, capped at 150m) + wake jitter (15–75s)
Alternative modes Random (Active 12–24m / Relaxed 40–70m), Fixed (15m / 30m / 60m), or Manual (0 wakeups) Wall-clock Condvar scheduler — never high-frequency polling
Cooldown debounce 10s manual / 60s auto Prevents accidental double-click storms
Incremental log scanner File-level (mtime, size) index · 4 workers max · 150s TTL Zero re-parsing of unchanged historical sessions, zero idle disk writes, 0ms idle tray checks
Credential & AI network access None Never touches Keychain, Secret Service, API keys, or OAuth files; never calls AI provider endpoints
Signed online updates Optional · GitHub Releases only Ed25519 signature verified against embedded public key; supports OS system proxy, custom proxy, or direct
Local state ~/.config/vibebar/ Stores only settings.json, quota/heatmap caches, and token-index-v1.json.zst (no credentials)

License

MIT

About

Zero-OAuth desktop tray monitor for Antigravity, Codex, Claude Code, Grok, Kimi & MiniMax — live quotas, incremental offline token & cache-hit analytics, Share Studio heatmaps, and signed auto-updates (Rust + Tauri v2)

Topics

Resources

Stars

30 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages