Universal API Usage Tracker for Windows β Monitor rate limits across all your AI providers.
Inspired by CodexBar by @steipete β the macOS-only original. TokenBar brings the same functionality to Windows users.
If you're vibe-coding with Claude Code, Cursor, or other AI tools, you need to know:
- How much of your 5-hour session limit is left?
- How much of your weekly limit is remaining?
- When does each window reset?
CodexBar solves this beautifully on macOS. TokenBar brings it to Windows.
| Provider | Status | What's Tracked |
|---|---|---|
| π§ Anthropic (Claude) | β | Input/output tokens, requests |
| π€ OpenAI (ChatGPT) | β | Tokens per minute, requests, billing |
| π ElevenLabs | β | Character usage, voices |
| π Groq | π | Coming soon |
| πΌοΈ Stability AI | π | Coming soon |
| β Google AI (Gemini) | π | Coming soon |
- β System tray icon with quick access
- β Multi-provider support (Anthropic, OpenAI, ElevenLabs)
- β Real-time rate limit tracking via API headers
- β Secure credential storage (Windows Credential Manager)
- β Auto-refresh every 5 minutes
- β Click to expand provider details
- Desktop notifications at 80%/95% usage
- Usage history graphs
- Cost tracking and estimates
- More providers (Groq, Stability, Google, Replicate)
- Frontend: React + TypeScript + Tailwind CSS
- Backend: Rust (Tauri)
- Build: Tauri bundler (creates small Windows executables)
- Local stats:
~/.claude/stats-cache.json(always available) - OAuth API:
GET https://api.anthropic.com/api/oauth/usage(when credentials available) - CLI fallback: Parse
claude /usageoutput (if needed)
Download the latest .msi or .exe from Releases.
# Prerequisites: Node.js 18+, Rust 1.70+
git clone https://github.com/khnfrhn/tokenbar.git
cd tokenbar
npm install
npm run tauri build# Start dev server with hot reload
npm run tauri devtokenbar/
βββ src/ # React frontend
β βββ components/ # UI components
β βββ hooks/ # React hooks
β βββ lib/ # Utilities
βββ src-tauri/ # Rust backend
β βββ src/
β β βββ main.rs # Entry point
β β βββ tray.rs # System tray logic
β β βββ providers/ # Data source providers
β βββ Cargo.toml
βββ public/ # Static assets
βββ package.json
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β TokenBar β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β βββββββββββββββ βββββββββββββββ β
β β Tauri ββββββ React β β
β β (Rust) β β (Frontend) β β
β ββββββββ¬βββββββ βββββββββββββββ β
β β β
β βΌ β
β βββββββββββββββββββββββββββββββββββββββββββββββ β
β β Data Providers β β
β βββββββββββββββ¬ββββββββββββββ¬ββββββββββββββββββ€ β
β β Local JSON β OAuth API β CLI Fallback β β
β β (stats) β (usage) β (/usage) β β
β βββββββββββββββ΄ββββββββββββββ΄ββββββββββββββββββ β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββ
PRs welcome! See CONTRIBUTING.md.
MIT License - see LICENSE
Made with βΎοΈ by khnfrhn



