VibeBar
Health Uyari
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 5 GitHub stars
Code Basarisiz
- rm -rf — Recursive force deletion command in .github/workflows/release.yml
- rm -rf — Recursive force deletion command in scripts/build-macos-app.sh
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Lightweight zero-OAuth desktop tray monitor for Antigravity, OpenAI Codex, and Claude Code quotas & offline local token usage (Rust + Tauri v2)
VibeBar
Lightweight cross-platform tray monitor for Google Antigravity, OpenAI Codex, and Anthropic Claude Code quotas, offline token consumption, and prompt cache hit rates — strictly via unmodified official CLIs.
English · 简体中文
Highlights · How It Queries · CLI Setup · Why Zero-OAuth · Quick Start · Safety
Highlights
- Native Rust + Tauri v2: Zero
node_modules, zero frontend bundler, ~9 MB app bundle, and millisecond startup via cross-midnight-validated local disk caches. - Unified Provider Sidebar: Switch between Google Antigravity (
agy), OpenAI Codex (codex), and Anthropic Claude Code (claude) from a dedicated left sidebar with bundled brand icons, weekly-first remaining progress bars, auto-detection, and one-click parallel refresh. - Swiss Alabaster Bento Dashboard:
- Weekly-First Quota Health: 180° segmented vermilion arc gauge with smooth CountUp transitions, instant Weekly / 5-Hour sliding toggle, subscription tier badges, reset countdowns, and a clickable obsidian Model Pools summary card.
- Offline Token & Cache-Hit Analytics: Pure read-only scanner for Today / 7D / 30D across Antigravity, Gemini CLI, Codex, and Claude Code featuring diagonal-hatched capsule bars, average reference line, and gliding obsidian hover cards with daily Prompt Cache Hit Rate, Input/Output breakdown, turns, and average tokens per turn — plus per-model cache hit rates in the Top Models leaderboard.
- Low-Quota Threshold Alerts: Configurable thresholds (
20%/10%/5%) across both weekly and 5-hour windows, with in-app toasts and non-focus-stealing floating desktop alerts when collapsed to the tray.
- Thoughtful Desktop UX & i18n: Auto OS locale (English
B/M/K· 简体中文亿/万viasys-locale), click-to-mask email privacy pill, tray-anchored multi-monitor DPI popover (auto re-anchors if displays change), and optional macOS menu bar percentage title.
How VibeBar Queries Each Provider
VibeBar never sends HTTP requests itself and never reads your OS Keychain 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) |
|---|---|---|---|
| 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 rendered screen, and exits cleanly via RAII ChildGuard. |
~/.gemini/antigravity/conversations/*.db (gen_metadata protobuf) + transcript.jsonl, plus Gemini CLI ~/.gemini/tmp/*/chats/session-*.json |
| 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/ (respects CODEX_HOME) |
| 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 CLI session). |
~/.claude/projects/**/*.jsonl including nested subagent logs with global message.id deduplication (respects CLAUDE_CONFIG_DIR) |
Prompt Cache Hit Rate formula: All four log parsers normalize uncached input (including cache writes) into
input_tokensand cache reads intocached_input_tokens, so daily hover cards and model rows report the exact standard prompt cache hit rate:cached_input_tokens / (input_tokens + cached_input_tokens) × 100%.
API Key / Cloud Provider users: If
codexorclaudeis configured with an API Key (or Bedrock / Vertex / Foundry) instead of a consumer subscription, VibeBar automatically switches the quota gauge to API Key Mode 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 three — install only the ones you actually use, and VibeBar automatically detects them.
1. Google Antigravity (agy)
- Install: Download the official Antigravity CLI (
agy). - Sign in: Run
agyin your terminal and complete the official Google sign-in flow. - Verify: Run
agyand type/usageto confirm your quota panel renders.
2. OpenAI Codex (codex)
npm i -g @openai/codex
codex login
Ensure codex --version works in your terminal (ChatGPT Plus / Pro / Team / Enterprise for quota windows, or API key for local token analytics).
3. Anthropic Claude Code (claude)
npm i -g @anthropic-ai/claude-code
claude auth login
Run claude auth status to confirm "loggedIn": true.
Custom binary paths: VibeBar automatically searches your
PATHplus commonnvm,fnm, Homebrew, and npm global directories. For custom locations, open Settings → CLI Paths inside VibeBar.
Why Zero-OAuth?
Third-party quota tools that extract personal OAuth tokens from your OS Keychain and embed official client secrets to poll private endpoints directly risk violating provider Terms of Service. VibeBar is verifiable by inspection: open src-tauri/Cargo.toml — there is no HTTP client crate (reqwest, hyper, etc.) and no keychain/credential reader anywhere in the repository.
Technical Architecture
- Tauri v2 Desktop Core (
lib.rs,refresh_policy.rs,alerts.rs,storage.rs)
Manages the native system tray, tray-anchored multi-monitor DPI popover positioning, non-focus-stealing low-quota floating toast window,sys-localei18n,Condvar-driven low-frequency scheduler (defaults to human-like random jitter with adaptive idle/error gradient backoff, plus fixed interval or 0-wakeup manual mode), single-flight per-provider locks, cooldown debounce, and atomic local caches. - Offline Local Token & Cache-Hit Scanner (
token_usage.rs,codex_quota.rs,claude_quota.rs)
Reads local SQLite protobufs, JSON, and JSONL logs directly from disk — computing per-day and per-model totals, turns, and prompt cache hit rates in milliseconds with zero network traffic. - Zero-OAuth Official CLI Adapters (
pty_quota.rs,codex_quota.rs,claude_quota.rs)
Drives each unmodified official binary through its native local interface (PTY/VT100, stdio JSON-RPC, or JSON stdout) with strict timeouts and RAII process-group cleanup. - Zero-OAuth Trust Wall
All authentication, Keychain access, OAuth refresh, User-Agent, TLS fingerprint, and backend RPCs remain 100% inside each official CLI binary.
Quick Start
Download Prebuilt Releases
Prebuilt installers are built via GitHub Actions for every tagged release (v*):
- macOS: Apple Silicon (
aarch64).dmg& Intel (x86_64).dmg - Windows: Intel/AMD (
x64) & ARM64 (aarch64).msi/-setup.exe
Download from the Releases page.
Build from Source
Prerequisites: At least one official CLI installed & signed in (agy, codex, or claude), 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 / .AppImage / .deb)
cargo install tauri-cli --version "^2"
cargo tauri build
Safety Guardrails
| Setting / Invariant | Default | Why |
|---|---|---|
| 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 |
| Token & cache analytics | 100% local read-only | Scans ~/.gemini/, ~/.codex/ (or CODEX_HOME), and ~/.claude/ (or CLAUDE_CONFIG_DIR) locally with zero network requests |
| Credential access | None | Never touches Keychain, Secret Service, or OAuth files |
| Local state | ~/.config/vibebar/ |
Stores only settings.json, per-provider quota caches, and date-validated local token cache JSON (no credentials; auto-migrates from legacy ~/.config/agy-usage/) |
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi