Skip to content

Show usage stats for OpenAI Codex and Claude Code, without having to login. But for Window-Native

License

Notifications You must be signed in to change notification settings

Finesssee/Win-CodexBar

 
 

Repository files navigation

Win-CodexBar - Windows Port of CodexBar

A Windows port of CodexBar - the tiny menu bar app that keeps your AI provider usage limits visible.

This is an unofficial Windows port. The original CodexBar is a macOS Swift app by Peter Steinberger. This port is built with Rust + egui for native Windows support.

Features

  • 15 AI Providers: Codex, Claude, Cursor, Gemini, Copilot, Antigravity, Windsurf, Zai, Kiro, Vertex AI, Augment, MiniMax, OpenCode, Kimi, Kimi K2
  • System Tray Icon: Dynamic two-bar meter showing session + weekly usage
  • Native Windows UI: Built with egui - no web runtime required
  • Browser Cookie Extraction: Automatic extraction from Chrome, Edge, Brave, Firefox (DPAPI encrypted)
  • CLI Commands: codexbar usage and codexbar cost for scripting
  • Preferences Window: Enable/disable providers, set refresh intervals, manage cookies

Screenshots

Main Window

CodexBar Main Window

Settings

CodexBar Settings

Overview

CodexBar Overview

Install

Download

Download the latest release from GitHub Releases.

Build from Source

cd rust
cargo build --release
# Binary at: target/release/codexbar.exe

Usage

GUI (System Tray)

codexbar menubar

CLI

# Check usage for a provider
codexbar usage -p claude
codexbar usage -p codex
codexbar usage -p all

# Check local cost usage (from JSONL logs)
codexbar cost -p codex
codexbar cost -p claude

Providers

Provider Auth Method What's Tracked
Codex OAuth / CLI Session, Weekly, Credits
Claude OAuth / Cookies / CLI Session (5h), Weekly
Cursor Browser Cookies Plan, Usage, Billing
Gemini OAuth (gcloud) Quota
Copilot GitHub Device Flow Usage
Antigravity Local Language Server Usage
Windsurf Local Config Usage
Zai API Token Quota
Kiro CLI Monthly Credits
Vertex AI gcloud OAuth Cost Tracking
Augment Browser Cookies Credits
MiniMax API Usage
OpenCode Local Config Usage
Kimi Browser Cookies 5-Hour Rate, Weekly
Kimi K2 API Key Credits

First Run

  1. Run codexbar menubar to start the app
  2. Click Settings in the menu
  3. Go to Providers tab and enable the providers you use
  4. Make sure you're logged into the provider CLIs (e.g., codex, claude, gemini)

Browser Cookie Extraction

Win-CodexBar automatically extracts cookies from:

  • Chrome (DPAPI + AES-256-GCM)
  • Edge (DPAPI + AES-256-GCM)
  • Brave (DPAPI + AES-256-GCM)
  • Firefox (unencrypted SQLite)

For providers that need web authentication (Claude, Cursor, Kimi), cookies are extracted automatically when you're logged into the web interface.

Manual Cookies

If automatic extraction fails, you can add cookies manually:

  1. Go to SettingsCookies tab
  2. Select the provider
  3. Paste the cookie header from browser DevTools (F12 → Network → Request Headers → Cookie)

Differences from macOS Version

Feature macOS Windows
UI Framework SwiftUI egui (Rust)
System Tray NSStatusItem tray-icon crate
Cookie Decryption Keychain DPAPI
Widget WidgetKit Not available
Auto-update Sparkle Manual

Privacy

  • No disk scanning: Only reads known config locations and browser cookies
  • On-device only: No data sent to external servers (except provider APIs)
  • Cookies are opt-in: Browser cookie extraction only happens for enabled providers

Credits

License

MIT - Same as original CodexBar


This is an unofficial Windows port. For the official macOS version, visit steipete/CodexBar.

About

Show usage stats for OpenAI Codex and Claude Code, without having to login. But for Window-Native

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Rust 100.0%