nesszer/Win-CodexBar

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

Rust

1,147

4,104 commits

updated Oct 12, 2026

See the code

README

Win-CodexBar

English | 简体中文 | 繁體中文(臺灣) | 日本語 | 한국어 | Español mexicano | Português (Brasil) | Türkçe

Win-CodexBar is a Windows system-tray app for keeping AI coding-tool usage visible without opening a dozen dashboards. It ports the spirit of CodexBar to a Tauri + React desktop shell backed by shared Rust provider logic.

Win-CodexBar tray panel showing provider usage cards Win-CodexBar Providers settings page

Highlights

  • 56 providers including Codex, Claude, Copilot, OpenRouter, Cursor, Gemini, DeepSeek, MiniMax, Kiro, Antigravity, Groq, Qoder, Sakana AI, CrossModel, and more.
  • Tray-first workflow with a compact provider grid, usage cards, refresh action, settings shortcut, and quit control.
  • Provider settings for source selection, credentials, cookie import, token accounts, API keys, regions, and tray-display preferences.
  • Windows credential protection for app-managed API keys, manual cookies, and token accounts, using user-scoped DPAPI where available.
  • Browser cookie import for Chrome Stable, Beta, Dev, Canary, Chrome for Testing, Chromium, Edge, Brave, and Firefox, kept opt-in per provider.
  • Installed local CLI for scripting usage, cost, config, diagnostics, and loopback integrations.
  • Installer + portable builds with WebView2 runtime bootstrap, VC++ runtime bootstrap, and SHA-256 checksum files.

Install

Install with Windows Package Manager:

winget install Finesssee.Win-CodexBar

Or download the latest installer/portable build from GitHub Releases.

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

Winget distribution is approved through microsoft/winget-pkgs. New versions can take a little time to appear because every Winget update is pinned to a specific release URL and installer hash.

Code signing

Code signing: SignPath.io is wired into the GitHub Actions release path, but production signing remains fail-closed until the Release certificate 2026 is issued and the release-signing policy becomes valid. See docs/CODE_SIGNING.md for the signing policy. The v0.60.3 release is immutable and unsigned; verify its SHA-256 files. The first signed release will be the next normal version after SignPath onboarding.

First Run

  1. Launch CodexBar from the Start Menu or portable executable.
  2. Click the tray icon to open the usage panel.
  3. Open Settings -> Providers.
  4. Enable the providers you use.
  5. Add the matching credential type: OAuth/device login, API key, browser cookies, local CLI login, or token account.

For Claude, browser cookies/sessionKey are preferred because they match Claude's settings-page usage. OAuth and CLI stay available as fallbacks. For CLI-based providers such as Codex and Gemini, sign in with the provider CLI first.

Latest Release

v0.33.2 fixes tray-panel dismissal so the popover closes on focus loss or Escape, without immediately reopening from the same tray click.

See the full history in CHANGELOG.md.

Supported Providers

Provider matrix
ProviderAuthTracks
CodexOAuth / CLISession, Weekly, Credits
ClaudeCookies / OAuth fallback / CLI fallbackSession (5h), Weekly
CursorCookiesPlan, Usage, Billing
FactoryCookiesUsage
Geminigcloud OAuthQuota
CopilotGitHub Device Flow / gh CLI / legacy tokenPlan usage, Chat
AntigravityLocal LSPUsage, Per-model quotas
z.aiAPI TokenQuota
MiniMaxAPI / CookiesUsage, Billing Summary
KiroCookies / CLIMonthly Credits, Overage
Vertex AIgcloud OAuthCost
v0API KeyBilling quota, API rate limits, on-demand balance
Vercel AI GatewayAPI KeyTeam credit balance, lifetime spend
AugmentCookiesCredits
OpenCodeLocal ConfigUsage
KimiCookies5h Rate, Weekly
Kimi K2API KeyCredits
AmpCookiesUsage
WarpLocal ConfigUsage
OllamaCookies / API KeyUsage, Cloud Models, Pace windows
Azure OpenAIAPI KeyDeployment
T3 ChatCookies / cURLBase, Overage
TypeSafeBrowser cookies / manual Cookie headerBilling-cycle spend, balance, expiring credits
OpenRouterAPI KeyCredits
JetBrains AILocal ConfigUsage
AlibabaCookiesUsage
Alibaba Token PlanCookiesToken Plan Credits, Reset date
NanoGPTAPI KeyCredits
InfiniAPI KeySession, Weekly, Quota
PerplexityCookiesCredits, Plan
Abacus AICookiesCredits
MistralCookiesBilling, Usage
OpenCode GoCookiesUsage, Zen Balance
KiloAPI Key / CLIUsage
CodebuffAPI Key / Local ConfigCredits, Weekly
DeepSeekAPI KeyBalance, Usage summaries, Cost
WindsurfLocal CacheDaily, Weekly
ManusCookiesCredits, Refresh Credits
Xiaomi MiMoCookiesBalance, Token Plan
DoubaoAPI KeyRequest Limits
Command CodeCookiesMonthly Credits, Purchased Credits
StepFunOasis Token5h, Weekly, Token refresh
VeniceAPI Key / Web sessionUSD / DIEM Balance, Bundled credits (web session expires in about 60 s)
OpenAIAdmin API / API KeyUsage, Requests, Project-scoped cost, Credit Balance
GrokCookies / auth.jsonBilling
Helmcode (also NaN Builders)Browser cookies / manual Cookie headerPer-model token quotas, reset windows, Helmcode prepaid balance
RaycastCookies (Chrome auto or manual)Monthly AI credits, plan, renewal
ReplicateCookies / token accountsMonthly spend, credit balance
AixyAPI Key / token accountsApplicable budget balances, 7-day key usage
ClawRouterAPI KeyMonthly budget, requests, tokens, routed-provider spend
ElevenLabsAPI KeySubscription Credits, Voice Slots
DeepgramAPI KeyProject Usage
GroqAPI KeyEnterprise Metrics
LLM ProxyAPI KeyQuota Stats
llmmanLocal daemon / optional API KeyMemory in use, loaded and stored models
DevPassAPI KeyPlan credits, Premium weekly, API-key spend
IBM BobAPI Key / token accountsMonthly Bobcoins, per-team budgets
xKiroAPI KeyDaily free tokens
SyntheticAPI KeyFive-hour quota, Weekly tokens, Hourly search, Plan
LangdockBrowser cookies / manual Cookie headerSession (5h), Weekly
LithosAIBrowser cookies / manual Cookie headerPrepaid balance, UTC spend today and this month
Muse (muse.ai)Browser cookies / manual Cookie headerWeekly usage, tokens left, top-up tokens
WorkBuddyBrowser cookies / manual Cookie headerMonthly credits left, plan, cycle reset

Supported Languages

The UI and contributor reporting currently support:

  • English
  • 简体中文
  • 繁體中文(臺灣)
  • 日本語
  • 한국어
  • Español mexicano
  • Português (Brasil)
  • Türkçe
  • Українська

Build From Source

# Prerequisites: Node.js + pnpm. Rust and MinGW are installed by the script when needed.
git clone https://github.com/nesszer/Win-CodexBar.git
cd Win-CodexBar
.\scripts\dev.ps1

Useful dev flags:

.\scripts\dev.ps1 -Release      # optimized build
.\scripts\dev.ps1 -SkipBuild    # relaunch the last build

CLI examples:

codexbar-cli --help
codexbar-cli diagnose --pretty
codexbar-cli usage -p claude
codexbar-cli usage -p all
codexbar-cli cost -p codex

Installer builds include codexbar.exe as the tray app and codexbar-cli.exe as the console CLI. Start Menu shortcuts launch the desktop app; terminal commands use codexbar-cli.exe. codexbar-desktop.exe is still installed as a compatibility alias for older shortcuts and autostart entries.

Release Builds

For local Windows release builds, use the cached release builder:

.\scripts\windows-release-build.ps1 -Ref v0.33.2 -SmokeInstall

The script builds the real Tauri release binary plus the console CLI, verifies signed installer dependencies, packages with Inno Setup, writes installer/portable assets, writes SHA-256 sidecars, and can run a silent install/uninstall smoke test.

More release automation notes live in docs/release/ci-cd.md.

Privacy

  • On-device by default: provider data is read from known local paths or provider APIs you configure.
  • Opt-in cookies: browser-cookie extraction only runs for providers you enable.
  • Protected secrets: API keys, manual cookies, and token accounts use the secure-file layer; Windows uses user-scoped DPAPI where available.
  • Safe diagnostics: diagnostics expose provider/source/status metadata only, never raw cookies, API keys, bearer tokens, or OAuth values.
  • Verified updates: installer downloads require a GitHub SHA-256 digest and are re-verified immediately before apply.

Docs

TopicLink
Building from sourcedocs/BUILDING.md
WSL setup and auth tipsdocs/WSL.md
Browser cookie detailsdocs/COOKIES.md

Local integrations

  • AI Usage Limits — Elgato Stream Deck integration that can consume the local codexbar serve dashboard/API to show provider, account, quota, or payload metrics.
  • AI Monitor — ESP32 desk display (Cheap Yellow Display) with a Windows companion app (beta) that calls the installed CLI (codexbar-cli usage -p <provider> --json) and streams Claude, Codex, Copilot, Cursor, Gemini, or Antigravity limits to the display over USB serial.

Credits

License

MIT, same as the original CodexBar.

nesszer/Win-CodexBar

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

Rust

1,147

4,104 commits

updated Oct 12, 2026

See the code

README

Win-CodexBar

English | 简体中文 | 繁體中文(臺灣) | 日本語 | 한국어 | Español mexicano | Português (Brasil) | Türkçe

Win-CodexBar is a Windows system-tray app for keeping AI coding-tool usage visible without opening a dozen dashboards. It ports the spirit of CodexBar to a Tauri + React desktop shell backed by shared Rust provider logic.

Win-CodexBar tray panel showing provider usage cards Win-CodexBar Providers settings page

Highlights

  • 56 providers including Codex, Claude, Copilot, OpenRouter, Cursor, Gemini, DeepSeek, MiniMax, Kiro, Antigravity, Groq, Qoder, Sakana AI, CrossModel, and more.
  • Tray-first workflow with a compact provider grid, usage cards, refresh action, settings shortcut, and quit control.
  • Provider settings for source selection, credentials, cookie import, token accounts, API keys, regions, and tray-display preferences.
  • Windows credential protection for app-managed API keys, manual cookies, and token accounts, using user-scoped DPAPI where available.
  • Browser cookie import for Chrome Stable, Beta, Dev, Canary, Chrome for Testing, Chromium, Edge, Brave, and Firefox, kept opt-in per provider.
  • Installed local CLI for scripting usage, cost, config, diagnostics, and loopback integrations.
  • Installer + portable builds with WebView2 runtime bootstrap, VC++ runtime bootstrap, and SHA-256 checksum files.

Install

Install with Windows Package Manager:

winget install Finesssee.Win-CodexBar

Or download the latest installer/portable build from GitHub Releases.

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

Winget distribution is approved through microsoft/winget-pkgs. New versions can take a little time to appear because every Winget update is pinned to a specific release URL and installer hash.

Code signing

Code signing: SignPath.io is wired into the GitHub Actions release path, but production signing remains fail-closed until the Release certificate 2026 is issued and the release-signing policy becomes valid. See docs/CODE_SIGNING.md for the signing policy. The v0.60.3 release is immutable and unsigned; verify its SHA-256 files. The first signed release will be the next normal version after SignPath onboarding.

First Run

  1. Launch CodexBar from the Start Menu or portable executable.
  2. Click the tray icon to open the usage panel.
  3. Open Settings -> Providers.
  4. Enable the providers you use.
  5. Add the matching credential type: OAuth/device login, API key, browser cookies, local CLI login, or token account.

For Claude, browser cookies/sessionKey are preferred because they match Claude's settings-page usage. OAuth and CLI stay available as fallbacks. For CLI-based providers such as Codex and Gemini, sign in with the provider CLI first.

Latest Release

v0.33.2 fixes tray-panel dismissal so the popover closes on focus loss or Escape, without immediately reopening from the same tray click.

See the full history in CHANGELOG.md.

Supported Providers

Provider matrix
ProviderAuthTracks
CodexOAuth / CLISession, Weekly, Credits
ClaudeCookies / OAuth fallback / CLI fallbackSession (5h), Weekly
CursorCookiesPlan, Usage, Billing
FactoryCookiesUsage
Geminigcloud OAuthQuota
CopilotGitHub Device Flow / gh CLI / legacy tokenPlan usage, Chat
AntigravityLocal LSPUsage, Per-model quotas
z.aiAPI TokenQuota
MiniMaxAPI / CookiesUsage, Billing Summary
KiroCookies / CLIMonthly Credits, Overage
Vertex AIgcloud OAuthCost
v0API KeyBilling quota, API rate limits, on-demand balance
Vercel AI GatewayAPI KeyTeam credit balance, lifetime spend
AugmentCookiesCredits
OpenCodeLocal ConfigUsage
KimiCookies5h Rate, Weekly
Kimi K2API KeyCredits
AmpCookiesUsage
WarpLocal ConfigUsage
OllamaCookies / API KeyUsage, Cloud Models, Pace windows
Azure OpenAIAPI KeyDeployment
T3 ChatCookies / cURLBase, Overage
TypeSafeBrowser cookies / manual Cookie headerBilling-cycle spend, balance, expiring credits
OpenRouterAPI KeyCredits
JetBrains AILocal ConfigUsage
AlibabaCookiesUsage
Alibaba Token PlanCookiesToken Plan Credits, Reset date
NanoGPTAPI KeyCredits
InfiniAPI KeySession, Weekly, Quota
PerplexityCookiesCredits, Plan
Abacus AICookiesCredits
MistralCookiesBilling, Usage
OpenCode GoCookiesUsage, Zen Balance
KiloAPI Key / CLIUsage
CodebuffAPI Key / Local ConfigCredits, Weekly
DeepSeekAPI KeyBalance, Usage summaries, Cost
WindsurfLocal CacheDaily, Weekly
ManusCookiesCredits, Refresh Credits
Xiaomi MiMoCookiesBalance, Token Plan
DoubaoAPI KeyRequest Limits
Command CodeCookiesMonthly Credits, Purchased Credits
StepFunOasis Token5h, Weekly, Token refresh
VeniceAPI Key / Web sessionUSD / DIEM Balance, Bundled credits (web session expires in about 60 s)
OpenAIAdmin API / API KeyUsage, Requests, Project-scoped cost, Credit Balance
GrokCookies / auth.jsonBilling
Helmcode (also NaN Builders)Browser cookies / manual Cookie headerPer-model token quotas, reset windows, Helmcode prepaid balance
RaycastCookies (Chrome auto or manual)Monthly AI credits, plan, renewal
ReplicateCookies / token accountsMonthly spend, credit balance
AixyAPI Key / token accountsApplicable budget balances, 7-day key usage
ClawRouterAPI KeyMonthly budget, requests, tokens, routed-provider spend
ElevenLabsAPI KeySubscription Credits, Voice Slots
DeepgramAPI KeyProject Usage
GroqAPI KeyEnterprise Metrics
LLM ProxyAPI KeyQuota Stats
llmmanLocal daemon / optional API KeyMemory in use, loaded and stored models
DevPassAPI KeyPlan credits, Premium weekly, API-key spend
IBM BobAPI Key / token accountsMonthly Bobcoins, per-team budgets
xKiroAPI KeyDaily free tokens
SyntheticAPI KeyFive-hour quota, Weekly tokens, Hourly search, Plan
LangdockBrowser cookies / manual Cookie headerSession (5h), Weekly
LithosAIBrowser cookies / manual Cookie headerPrepaid balance, UTC spend today and this month
Muse (muse.ai)Browser cookies / manual Cookie headerWeekly usage, tokens left, top-up tokens
WorkBuddyBrowser cookies / manual Cookie headerMonthly credits left, plan, cycle reset

Supported Languages

The UI and contributor reporting currently support:

  • English
  • 简体中文
  • 繁體中文(臺灣)
  • 日本語
  • 한국어
  • Español mexicano
  • Português (Brasil)
  • Türkçe
  • Українська

Build From Source

# Prerequisites: Node.js + pnpm. Rust and MinGW are installed by the script when needed.
git clone https://github.com/nesszer/Win-CodexBar.git
cd Win-CodexBar
.\scripts\dev.ps1

Useful dev flags:

.\scripts\dev.ps1 -Release      # optimized build
.\scripts\dev.ps1 -SkipBuild    # relaunch the last build

CLI examples:

codexbar-cli --help
codexbar-cli diagnose --pretty
codexbar-cli usage -p claude
codexbar-cli usage -p all
codexbar-cli cost -p codex

Installer builds include codexbar.exe as the tray app and codexbar-cli.exe as the console CLI. Start Menu shortcuts launch the desktop app; terminal commands use codexbar-cli.exe. codexbar-desktop.exe is still installed as a compatibility alias for older shortcuts and autostart entries.

Release Builds

For local Windows release builds, use the cached release builder:

.\scripts\windows-release-build.ps1 -Ref v0.33.2 -SmokeInstall

The script builds the real Tauri release binary plus the console CLI, verifies signed installer dependencies, packages with Inno Setup, writes installer/portable assets, writes SHA-256 sidecars, and can run a silent install/uninstall smoke test.

More release automation notes live in docs/release/ci-cd.md.

Privacy

  • On-device by default: provider data is read from known local paths or provider APIs you configure.
  • Opt-in cookies: browser-cookie extraction only runs for providers you enable.
  • Protected secrets: API keys, manual cookies, and token accounts use the secure-file layer; Windows uses user-scoped DPAPI where available.
  • Safe diagnostics: diagnostics expose provider/source/status metadata only, never raw cookies, API keys, bearer tokens, or OAuth values.
  • Verified updates: installer downloads require a GitHub SHA-256 digest and are re-verified immediately before apply.

Docs

TopicLink
Building from sourcedocs/BUILDING.md
WSL setup and auth tipsdocs/WSL.md
Browser cookie detailsdocs/COOKIES.md

Local integrations

  • AI Usage Limits — Elgato Stream Deck integration that can consume the local codexbar serve dashboard/API to show provider, account, quota, or payload metrics.
  • AI Monitor — ESP32 desk display (Cheap Yellow Display) with a Windows companion app (beta) that calls the installed CLI (codexbar-cli usage -p <provider> --json) and streams Claude, Codex, Copilot, Cursor, Gemini, or Antigravity limits to the display over USB serial.

Credits

License

MIT, same as the original CodexBar.

Significant stargazers

T. Nishino

106 followers · starred Sep 2026

ooooo-create

21 followers · starred Mar 2026

A-Salty-Fish

59 followers · starred Jul 2026

Duy /zuey/

927 followers · starred May 2026