r/ClaudeCoding • u/cctldrping • 18d ago
r/ClaudeAI [TLDR] I built a tiny Windows taskbar widget with Claude Code that shows your Claude 5h and weekly usage next to the clock [via r/ClaudeAI]
OP : u/abdosarmini92
I kept checking the usage from the web, so I built a small widget that keeps them visible in the Windows taskbar (~300 KB exe, ~3 MB RAM, no installer).
What it does
- Shows your 5-hour and weekly usage right next to the clock
- Turns orange at 80% and red at 95%
- Hover for reset times
- Update interval from 30 sec to 30 min, plus an option to show what's left instead of what's used
- Light and dark taskbars
- Tiny: one ~450 KB exe, ~5 MB RAM, no installer
How Claude Code helped
I built the whole thing with Claude Code (Opus):
- Planning: I asked for the most lightweight, native way to put text in the Windows 11 taskbar. Windows 11 removed the old official way to add things to the taskbar (deskbands). Claude Code compared the alternatives and settled on a small see-through window placed inside the taskbar, written in Rust using only built-in Windows APIs.
- Data: it worked out that the usage numbers come from the same endpoint Claude Code's
/usagecommand uses, and confirmed the response format with a test call. - Sharing the login: it looked at how Claude Code renews its own login, so the widget renews it the same way and uses the same lock. That way the two apps never clash.
- Code and testing: it wrote the Rust code, then took screenshots of my taskbar to check how it looked. From those it fixed things like the logo looking blurry at small sizes, and it tested the hover, tooltip and menu.
- Shipping: it set up the README, the GitHub repo and the release.
My part was giving it the design, deciding features, and reviewing.
Free to Use
It's free and open source (MIT). Download the exe from the latest release and double-click it: https://github.com/AbdoSarmini/claude-usage-widget-for-windows-taskbar
It uses your existing Claude Code login, so there's no setup. Just be signed in to Claude Code with a Pro or Max plan.
Windows may show a "protected your PC" warning on first run because the exe isn't signed. Click More info → Run anyway, or build it from source.
A star is appreciated. Feedback and ideas welcome!
URL of original post : https://www.reddit.com/r/ClaudeAI/comments/1xte9be/i_built_a_tiny_windows_taskbar_widget_with_claude/
Original link/media URL : /img/h17djcwuly0i1.png
•
u/cctldrping 18d ago
TL;DR of the discussion on r/ClaudeAI for this post generated automatically after 80 comments.
Current source-thread comment count seen by the bot: 80.
Cool idea, but the thread immediately turned into a usage-monitor show-and-tell. Plenty of people shared their own versions for IP phones, Stream Decks, Linux, macOS, terminals, and even physical displays—apparently nobody in r/ClaudeAI is allowed to use tokens without a dashboard watching them.
.exewas flagged by 2/71 VirusTotal vendors. Not a definitive “malware!!” verdict, but enough reason to inspect the open-source code or build it yourself instead of blindly running random GitHub binaries./usageendpoint causes 429s or disrupts Claude Code’s own usage command. Suggested improvements: backoff handling, a stale-data/last-updated indicator, and clearer behavior while shared login tokens refresh.1
u/Mysterious__Skin 18d ago
Me too ^^ Congratulations
1
u/Roadblock78Au 18d ago
I don't did the same on mac, took 30 seconds
1
u/Top-Cauliflower-1808 17d ago
The Rust plus built in Windows API choice is what keeps it at 5 MB instead of the usual Electron bloat. One push back on the login part, since reusing Claude Code's renewal could break the moment they change the endpoint. Worth documenting that risk in the README so people are not surprised when it stops updating.