Win-CodexBar

May 11, 2026 · View on GitHub

简体中文说明

The Windows port of CodexBar — a system tray app that keeps your AI coding-tool usage limits visible at a glance.

Built with Tauri + React on a shared Rust backend. The original CodexBar is a macOS Swift app by Peter Steinberger.

Tray panel showing provider grid and Codex usage    Settings — Providers tab

Features

  • 40 AI providers — Codex, Claude, Cursor, Factory, Gemini, Copilot, Antigravity, z.ai, MiniMax, Kiro, Vertex AI, Augment, OpenCode, Kimi, Kimi K2, Amp, Warp, Ollama, OpenRouter, Synthetic, JetBrains AI, Alibaba, NanoGPT, Infini, Perplexity, Abacus AI, Mistral, OpenCode Go, Kilo, Codebuff, DeepSeek, Windsurf, Manus, Xiaomi MiMo, Doubao, Command Code, Crof, StepFun, Venice, OpenAI API
  • System tray icon — dynamic two-bar meter showing session + weekly usage
  • Browser cookie import — Chrome, Edge, Brave, Firefox, with browser access kept opt-in
  • Per-provider credentials — API keys, cookies, and OAuth all managed from the provider detail pane
  • Credential hardening — local secret-bearing stores are protected with Windows DPAPI on save
  • Windows release packaging — Inno Setup installer, standalone portable exe, WebView2 runtime bootstrap, VC++ runtime bootstrap, and SHA-256 checksum files
  • CLIcodexbar usage and codexbar cost for scripting and CI
  • WSL support — CLI works out of the box; desktop shell via WSLg

What's New in v0.25.1

  • Rebuilt and validated the Windows/Tauri release against the upstream CodexBar 0.25.1 patch line.
  • Reviewed the upstream macOS/Swift fixes for Settings localization, Keychain cache writes, Pi session cost cache migration, Swift concurrency annotations, and Swift CLI archive version fallback. Those exact code paths do not exist in Win-CodexBar's Tauri/Rust shell, so v0.25.1 keeps the Windows runtime behavior from v0.25.0 while moving users onto the matching patch version.
  • Ported upstream v0.25 provider support for Manus, Xiaomi MiMo, Doubao, Command Code, Crof, StepFun, Venice, and OpenAI API balance to the Windows/Tauri Rust backend.
  • Added the new v0.25 providers to Settings → Providers, API-key management, cookie/token-account flows, provider search/aliases, and the tray/provider icon registry.
  • Added multi-window usage support for provider-specific credit, request, refresh, balance, token-plan, and API-credit displays.

Quick Start

# Prerequisites: Node.js — Rust and MinGW are installed automatically
git clone https://github.com/Finesssee/Win-CodexBar.git
cd Win-CodexBar
.\dev.ps1

The script installs Rust/MinGW if needed, builds the Tauri desktop shell, and launches the app.

.\dev.ps1 -Release          # optimised build
.\dev.ps1 -SkipBuild        # relaunch last build

Download

Install with Windows Package Manager:

winget install Finesssee.Win-CodexBar

Winget distribution is approved through microsoft/winget-pkgs. New releases may take a little time to appear in Winget after the GitHub release is published because each version is pinned to its own installer URL and SHA-256 hash.

You can also grab the latest build from GitHub Releases.

  • Installer: CodexBar-<version>-Setup.exe
  • Portable: CodexBar-<version>-portable.exe
  • Checksums: each release includes .sha256 files for manual verification

The installer includes the desktop app, Microsoft's Evergreen WebView2 bootstrapper, app icon, Start Menu shortcut, uninstall metadata, and the Visual C++ runtime bootstrap needed on clean Windows machines. The portable exe is the same desktop app without installer integration; release builds statically link the WebView2 loader, so portable users only need the Microsoft Edge WebView2 Runtime installed on the machine.

First Run

  1. Launch CodexBar — it sits in the system tray
  2. Click the tray icon to open the usage panel
  3. Open Settings → Providers, enable the services you use
  4. For cookie-based providers, click the provider and use Browser Cookies → Import
  5. For CLI-based providers (codex, claude, gemini), make sure you're logged in

CLI

codexbar usage -p claude          # single provider
codexbar usage -p all             # all enabled providers
codexbar cost  -p codex           # local cost from JSONL logs

Providers

ProviderAuthTracks
CodexOAuth / CLISession, Weekly, Credits
ClaudeOAuth / Cookies / CLISession (5h), Weekly
CursorCookiesPlan, Usage, Billing
FactoryCookiesUsage
Geminigcloud OAuthQuota
CopilotGitHub Device FlowUsage
AntigravityCookies / LSPUsage
z.aiAPI TokenQuota
MiniMaxAPI / CookiesUsage
KiroCookies / CLIMonthly Credits
Vertex AIgcloud OAuthCost
AugmentCookiesCredits
OpenCodeLocal ConfigUsage
KimiCookies5h Rate, Weekly
Kimi K2API KeyCredits
AmpCookiesUsage
WarpLocal ConfigUsage
OllamaCookiesUsage
OpenRouterAPI KeyCredits
JetBrains AILocal ConfigUsage
AlibabaCookiesUsage
NanoGPTAPI KeyCredits
InfiniAPI KeySession, Weekly, Quota
PerplexityCookiesCredits, Plan
Abacus AICookiesCredits
MistralCookiesBilling, Usage
OpenCode GoCookiesUsage
KiloAPI Key / CLIUsage
CodebuffAPI Key / Local ConfigCredits, Weekly
DeepSeekAPI KeyBalance
WindsurfLocal CacheDaily, Weekly
ManusCookiesCredits, Refresh Credits
Xiaomi MiMoCookiesBalance, Token Plan
DoubaoAPI KeyRequest Limits
Command CodeCookiesMonthly Credits, Purchased Credits
CrofAPI KeyCredits, Request Quota
StepFunOasis Token5h, Weekly
VeniceAPI KeyUSD / DIEM Balance
OpenAI APIAPI KeyCredit Balance

Privacy

  • On-device only — no data sent anywhere except provider APIs
  • No disk scanning — only reads known config paths and browser cookies
  • Opt-in cookies — extraction only runs for providers you enable
  • Protected credential stores — app-managed API keys, manual cookies, and token accounts are written through the secure-file layer; on Windows this uses user-scoped DPAPI where available
  • Safe diagnostics — diagnostic snapshots expose provider/source/status metadata only, never raw cookies, API keys, bearer tokens, or OAuth values
  • Verified updates — automatic installer downloads require a GitHub SHA-256 digest and the installer is re-verified immediately before apply

More Docs

TopicLink
Building from sourceextra-docs/BUILDING.md
WSL setup & auth tipsextra-docs/WSL.md
Browser cookie detailsextra-docs/COOKIES.md

Credits

License

MIT — same as the original CodexBar.


For the macOS version, visit steipete/CodexBar.