A Windows client for the ClaudeBar Leaderboard.
Status: community-maintained preview. Maintained by @LunarECL. The Leaderboard client works: join, or add this PC to a membership you already have on a Mac, read the boards, share providers, show or hide yourself, upload every hour, leave. The HUD shows each AI tool's limits in a corner of the screen. Report Windows issues here, not in the ClaudeBar repo.
- First: the Leaderboard. Read the local token logs of the providers that have a
usageHistory(Claude, Codex, Mistral, omp), sum each day, and upload to the same board the macOS app uses. - Then: limits, in the HUD: ClaudeBar's own quota monitor over the providers it finds on this PC.
The board is only fair if a day counts the same on Windows as on the Mac. So this client doesn't reimplement ClaudeBar: it depends on ClaudeBarKit, ClaudeBar's Swift package, which is being made to build on Windows as well as macOS, one phase at a time (MODULAR_DESIGN §10).
- From the package: reading the logs, summing a day, signing, keeping the key, the provider definitions and
vectors.json. This client depends ontddworks/ClaudeBarby URL at a tag or commit, and calls the same factories as the Mac app. - In this repo: the UI, the composition root, packaging and the installer. The UI is C# WinUI 3, calling the package through a C interface over its factories, which lives here too (#2).
Where it stands: §10's phases 0 to 3 are on ClaudeBar's main: the Leaderboard builds and passes its tests on Windows, keeps the key in Credential Manager (tddworks/ClaudeBar#547) and labels the machine as a PC. native/Package.swift pins ClaudeBar's v0.5.23 tag.
On Windows 10 (2004) or later, x64. Nothing else to install: the app carries its .NET, WinUI and Swift runtimes.
- From Releases, download
ClaudeBarWindows-win-Setup.exe. To check it, compareGet-FileHash .\ClaudeBarWindows-win-Setup.exewith the.sha256file beside it. - Run it. It installs ClaudeBar for your user only, without asking for admin, into
%LOCALAPPDATA%\ClaudeBarWindows, adds it to the Start menu and starts it. - The preview isn't code-signed, so SmartScreen may say Windows protected your PC about
Setup.exe. Choose More info, then Run anyway. Updates don't ask again.
Update. ClaudeBar checks for a new version when it starts and every 4 hours, never while you're in a full-screen app or game. When there is one, the window says so above the page and Windows notifies you once. Update, there or in Settings → Updates, downloads it (only what changed, when it can), restarts ClaudeBar on the new version and says Updated to …. Check for updates in Settings looks right away. Your membership, settings, key and hourly upload stay: they live outside the install folder, and the upload follows the new version.
Moving from the zip. Before 0.1.8, ClaudeBar came as a zip. Quit it (its tray icon or the HUD's right-click menu, Quit ClaudeBar), then run Setup.exe once as above. The installed copy keeps everything in %LOCALAPPDATA%\ClaudeBar and the key in Credential Manager, and takes over the hourly upload and Start with Windows; then delete the zip's folder. A taskbar pin of the zip's copy points at that folder: pin the installed one instead. The zip is still published beside Setup.exe for now, but a zip copy can't update itself: Settings says so.
Remove. To delete your data on the server too, leave the Leaderboard in Settings first: that deletes your username and uploaded days, the key and the hourly task. Then uninstall ClaudeBar from Settings → Apps → Installed apps, which removes the app, its Start menu entry, the hourly task and the Start with Windows entry, and keeps %LOCALAPPDATA%\ClaudeBar and the key: delete that folder too if you're done. A zip copy has no uninstaller: if you stay on the Leaderboard, first turn off Start with Windows in its Settings and delete ClaudeBar Leaderboard upload in Task Scheduler, since both point into its folder; then quit it and delete the folder.
On Windows 10 (2004) or later, x64, with:
- Swift 6.3.3 for Windows,
- Visual Studio or its Build Tools, with the MSVC x64 tools (SwiftPM links with them;
build.ps1finds them withvswhere), - the .NET 10 SDK.
.\build.ps1 # out\win-x64\ClaudeBar.exe, with claudebar-upload.exe and ClaudeBarNative.dll beside it
.\build.ps1 -SkipApp # the Swift side only
.\build.ps1 -Probe <folder> # and linux\x64\claudebar-probe, the WSL reader, beside the app
cd native; swift test # the Swift side's tests, from a shell with the MSVC environment loadedbuild.ps1 builds the Swift side with SwiftPM, stages it with the Swift runtime DLLs and ClaudeBar's provider definitions, then publishes the WinUI 3 app self-contained around them. Run out\win-x64\ClaudeBar.exe.
claudebar-probe is a Linux build, so build.ps1 doesn't make it: -Probe takes a folder that has it, CI's claudebar-probe-linux-x64 artifact (gh run download <run> -n claudebar-probe-linux-x64 -D linux-out\x64) or swift build -c release --package-path linux in a distro, staged as the workflow's probe job stages it. Without it, the build has no WSL reader, and Settings → Tools in WSL says so. The probe's tests run on Linux: swift test --package-path linux in swift:6.3.3-noble, with docker run --init (they need a PID 1 that reaps).
PRs to main run this build and the Swift client tests on a fresh Windows
x64 runner with Swift 6.3.3 and .NET 10. See the CI check
for its scope and the equivalent local commands.
A small window in a corner of the screen with each AI tool's limits, as ClaudeBar reads them on this PC (design). It answers one question: can I keep going, and until when.
| Card | Everything fine | Strip |
|---|---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
A sample reading, from ClaudeBar.exe --hud-check.
- What it shows. For each tool, the limit that stops you first, by ClaudeBar's rule: the worst status, then running hot, then the least left, then the soonest reset. A tool that needs you gets a row: its bar, what's left, and when it resets, runs out or is back;
+12counts its other limits,+2 lowthe ones that aren't fine. Every fine tool shares one quiet row (✓ Codex, Gemini lowest 62%), and when every tool is fine that row is the whole HUD. A tool that's signed out, or couldn't be read, is dimmed and says why; numbers it had before say since when. A tool whose limits have no share left to draw (a balance only) says no limits to show. A tool that reads others, as Oh My Pi reads Claude, Codex and Kimi accounts, shows each of them as a tool of its own in that product's colours, as the Mac's popover gives each its own section; on Limits its card says Codex · via Oh My Pi. An account Oh My Pi signed out gets a row too, dimmed, saying signed out, with what to do in its tooltip. The other notes ClaudeBar shows beside the limits, Oh My Pi's saved resets and balances, Codex's resets and credits, and the plan badge (ULTRA, MAX), are on the Limits page, not the HUD. The footer has today's tokens, your place on the board and when the limits were read. A click on a row opens the window's Limits page, which lists every limit. The Strip style is the same in one line. - Where. It shows after the first reading, in the bottom-right corner. Drag it from anywhere but a button, the card or the strip: it snaps to the nearest corner of the screen you drop it on, 12 effective pixels inside the work area, clear of the taskbar, and your window stays in front. A press that doesn't move past Windows' drag distance is a click, so a row still opens Limits. While the pointer is over it, its footer holds Refresh, Keep on top, Collapse to the strip and Open ClaudeBar; a click on the strip brings the card back, until you collapse it again; right-click it for Refresh, Hide the HUD, Settings and Quit ClaudeBar.
- Notifications. Once per limit and window when it turns critical (under 20%, or, with ClaudeBar's Warn when a quota will run out before it resets on, when it runs out within a tenth of its window), reaches 0, or comes back, with Show the HUD and Quiet until reset. A limit that states no reset can tell again once it has read fine. Under Do not disturb, Windows keeps them in the notification centre.
- The limits come from ClaudeBar's package: its quota monitor over the providers it finds here, with the provider settings ClaudeBar keeps in
%USERPROFILE%\.claudebar\settings.json, read and never written.
Settings → HUD: Show the HUD, Style (Card or Strip), Corner, Keep it on top, Tools on the HUD, and a Shortcut to show or hide it (none set). Start with Windows, under General, is offered once after the first reading and stays off until you accept; it's a Run entry for your user, which Settings → Apps → Startup lists too.
What Windows does with it, measured on Windows 11 (research.md, and scripts/check-hud.ps1 on this build):
- It never takes the focus to show itself, and it has no taskbar button. A click on it does activate it, because WinUI sets the focus itself, so after a click's action it hands the foreground back to the window you were in.
- It stays on top, with Mica kept active: the same tint whether it or another app is in front.
- It hides while a window covers its screen, full screen or borderless the screen's size, and comes back when that ends. A full-screen window on another screen leaves it alone. It also hides during a presentation, which isn't measured.
- A window's rectangle includes an invisible resize border (9 px left, right and below at 150%), so the HUD places the frame you see, not the rectangle.
- Self-contained builds of the Windows App SDK 2.5.1 leave out a DLL notifications need, so their buttons never reach the app (microsoft/WindowsAppSDK#6774). The project copies it from the SDK's runtime package.
- When Windows switches between light and dark, the HUD follows, Mica and text. A custom backdrop that leaves the change to the base
SystemBackdropends the app (0xC000027B, anArgumentExceptionfromOnDefaultSystemBackdropConfigurationChanged), so the HUD's Mica takes it itself.
scripts/check-hud.ps1 checks these on a PC, on a sample reading (ClaudeBar.exe --hud-check, which keeps its settings in %TEMP%). It moves the mouse, clicks, brings windows to the front and switches the Windows apps theme (putting it back after), so run it on a PC nobody is using. It prints PASS, FAIL or UNVERIFIED per check and exits 0 only when every check ran and passed.
Claude Code, Codex and the rest often run inside a WSL distro, with their sign-ins, logs and CLIs in its Linux home, where reading %USERPROFILE% finds nothing. So ClaudeBar runs itself there: claudebar-probe, ClaudeBar's package built for Linux, ships beside ClaudeBar.exe (linux\x64) and reads the distro's tools where ClaudeBar on Linux would (design, research). They show on the HUD, Limits and Settings, and their days count on the Leaderboard.
- Only running distros are read, at each HUD refresh, from
wsl.exe -l --running -q, which starts nothing. A stopped distro keeps its last numbers, dimmed: WSL isn't running · numbers from 14:05. Docker Desktop's and Rancher Desktop's own distros are never read. - On the HUD and Limits, a distro's tools are tools of their own, beside this PC's:
Claude · WSL, orClaude · WSL Ubuntu-26.04when more than one distro is read. A run takes about 25 s, most of it Claude's CLI, and over a minute the first time after the distro starts, so this PC's tools show first. - Settings → Tools in WSL lists each distro, whether it's running, a switch (on once a reading finds a tool; turning it on reads a running distro at once), and from its last reading each tool and where (its CLI's path, or logs only). A source both sides read, a WSL
~/.claudethat is the Windows folder, is left out and says shared with Windows, so nothing counts twice; one that can't be checked against Windows is left out too, and says couldn't check against Windows. - Your shell's settings: the probe asks your login shell, once per run, for the variables the provider definitions name (
CODEX_HOME,CLAUDE_CONFIG_DIR, …), so a folder set in.bashrcis the one read. If the shell can't be read in 3 s, Settings says Couldn't read your shell's settings. The first run after a distro starts can take that long (a cold login shell took 1.5 to 3.8 s on the PC), and the next run reads it. - Needs: an x86_64 distro with glibc,
libcurl.so.4andlibstdc++.so.6(checked on Ubuntu 26.04 under WSL 2). Without them, the HUD and Settings say ClaudeBar couldn't run in with the reason. A CLI installed only through a version manager (nvm, Volta, fnm, mise, asdf) isn't found yet; its logs still are. - Nothing outlives a run. Every process a run starts carries a marker in its environment, and is ended with it, or by the app when no answer comes. Updating waits for a run in progress; uninstalling ends every run first.
- On the Leaderboard, a distro's days are added to this PC's, in the providers you already share: a distro that's on adds its Claude days to your Claude days, and so on. The app says so once, in a bar and at the top of Settings → Tools in WSL; the distro's switch is the control. Each day is counted in Windows' time zone, which the probe is handed in
TZ, so a distro's day and this PC's with the same date are the same day, whatever the distro's clock says. A stopped, switched-off or removed distro's last days still count: each distro's last days are kept on Windows, so a day never goes smaller because a distro couldn't be read. A distro without the time zone data for Windows' zone (installtzdatain it), or a Windows zone with no name Linux knows (daylight saving's adjustment off at a half-hour offset), adds no new days, and Settings says so. A log folder two distros read counts once.
scripts/check-wsl.ps1 checks this on a PC: the probe as the app runs it, in Windows' zone, that nothing is left after, the days the running app kept and the zone the distro's kept days are counted in, ClaudeBar.exe --wsl-end-all, a folder with a space in its name, the cost of reading the shell, and, read from the screen's UI Automation tree without changing it, the HUD's WSL rows and WSL isn't running. It moves no mouse and raises no window, starts a distro only with -Start <distro>, and stops it again after. With -Upload, its upload check runs the hourly upload once, a real upload of this PC's days.
| What | Where |
|---|---|
| The membership: username, shared providers, shown or hidden, last upload, days the server refused, each recent day's total as the server took it (so a day that grows later goes again), and which PC made the key (its SMBIOS UUID hashed with the key, never the UUID) | %LOCALAPPDATA%\ClaudeBar\settings.json, never the key |
| The private key | Windows Credential Manager, a generic credential com.tddworks.claudebar/leaderboard-signing-key kept on this PC only |
| The hourly upload | A Task Scheduler task, ClaudeBar Leaderboard upload, that runs claudebar-upload.exe every hour while you're signed in. Joining adds it; leaving or uninstalling removes it; installing and each update point it at the new copy |
| The app | %LOCALAPPDATA%\ClaudeBarWindows: current holds the running version, which an update replaces, and packages the downloaded update. Uninstalling removes the folder |
| Logs | %LOCALAPPDATA%\ClaudeBar\Logs\ClaudeBar.log: outcomes only, never a key or a log's content. The app and the hourly upload both add lines to its end. Past 5 MB it becomes ClaudeBar.old.log and a new file starts; the empty ClaudeBar.log.lock beside it, made the first time that happens, lets the two take turns starting it |
| Each run's list of this PC's folders, for the probe to compare with (shared with Windows) | %LOCALAPPDATA%\ClaudeBar\wsl\windows-roots-<run>.json, deleted when the run ends |
| Each distro's last days for the Leaderboard, the time zone they were counted in and the log folders they came from | %LOCALAPPDATA%\ClaudeBar\wsl\days\<distro>.json, replaced by each run that reads the distro's days; kept when you leave the Leaderboard, and a day leaves it as it leaves the 30-day window |
| In a distro it reads | ClaudeBar's own log, and the folder it runs Claude's CLI in, under ~/.local/share/ClaudeBar; Claude Code's trust entry for that folder in ~/.claude.json; ClaudeBar's kept days in ~/.claudebar/usage-history, as ClaudeBar on Linux keeps them, and in ~/.local/share/ClaudeBar/wsl-zone the time zone they were counted in: when Windows' zone changes, the kept days are read again from the logs. Nothing is copied into the distro: the probe runs from the app's folder |
The app's own settings: the tray icon, the HUD (shown or not, card or strip, its corner and screen, on top, the tools taken off it, its shortcut), whether starting with Windows was offered, the tools of the last reading (drawn while the first reading after a start runs), each limit's last status, the crossings already notified and Quiet until reset, the last version a notification said was available, each WSL distro's switch and last reading (wsl), and whether the WSL Leaderboard notice was shown or seen (wslBoardNotice) |
%LOCALAPPDATA%\ClaudeBar\app.json |
A copied key. A cloned disk, a restored image or a copied virtual machine can bring the settings file and the key to another PC. The PC notices: its hardware UUID doesn't match the one the key was made on, so it uploads nothing and the window says why (design §2a). Keep the key here is for when the other PC is gone, or this is it after a repair: this PC uploads again under the same key. If both stay in use, they overwrite each other's days. This app can't yet make the copy its own device, as the Mac can; that comes with Devices settings, which it doesn't have yet. Until then, if both PCs stay in use, keeping the key here means they overwrite each other's days.
Adding this PC to a membership you already have. On the Join page, Already on the leaderboard from another computer? Add this PC shows a code. On the Mac, in ClaudeBar's settings, Leaderboard, Devices, Add a device, type it, check the device it names and approve it. The PC then says which member it was approved for: if that's you, choose what this PC shares and join; if it isn't, That's not me removes it again and keeps nothing. This PC gets its own key, so the member's days are the Mac's plus the PC's (design §2a). For its first week it uploads, and changes only what it shares and its own days: renaming, hiding, approving or removing devices, and leaving are for a device past its first week. The code expires after a few minutes unused.
The app and the hourly upload are separate processes over the same file. A named mutex keeps their writes to it one at a time, and each saves only what it changed since it read the file: an upload that started before you stopped sharing a provider records that it uploaded, and doesn't share the provider again. A membership that has left, or been replaced by a new join, since it read saves nothing. A save that can't reach the file, or wait 10 seconds for the lock, changes nothing and says so: the app shows it as an error, and the hourly upload exits with code 2. Leaving deletes your username and every uploaded day on the server, then the key, the file's membership and the task.
This client speaks a contract owned by the main repo. It does not redefine it.
- API and signing:
docs/features/leaderboard/design.md§5 - Signing test vectors:
vectors.json, which comes with the package - Provider definitions:
Modules/Providers/Resources/Providers, which come with the package
Changes to the contract or to the shared code, Windows adapters included, start as an issue or PR in tddworks/ClaudeBar.





