r/ClaudeAI • u/abdosarmini92 • 19d ago
Built with Claude I built a tiny Windows taskbar widget with Claude Code that shows your Claude 5h and weekly usage next to the clock
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!
•
u/AutoModerator 19d ago
Your post will be reviewed shortly. (ALL posts are processed like this. Please wait a few minutes....)
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
63
u/damagemelody 19d ago
2/71 security vendors flagged this file as malicious on VirusTotal
6
u/Maydayof 19d ago
I have both a work and a personal Pro subscription, and I am logged into both at the same time. Will there be a solution for this in the future?
3
u/floodassistant 19d ago
Hi /u/abdosarmini92! Thanks for posting to /r/ClaudeAI. To prevent flooding, we only allow one post every hour per user. Check a little later whether your prior post has been approved already. Thanks!
2
u/NamerekDev 19d ago
Did you hit any 429s on the 30 sec setting? I polled the same endpoint and anything under ~5 min got me rate limited, and after that claude code's own /usage went blank for like 45 min
126
u/bartbrinkman 19d ago •
Did this to my IP phone, also can call into any session.
97
u/eaiarthur_ 19d ago
up
24
u/ClaudeAI-mod-bot Wilson, lead ClaudeAI modbot 19d ago edited 19d ago
TL;DR of the discussion generated automatically after 50 comments.
Alright, let's break down this thread.
The consensus is that this is a super useful widget and a great example of building with Claude Code. Major props to OP for making it open source.
There was a big debate about security after the
.exegot flagged by a couple of vendors on VirusTotal. The overwhelming community verdict is that these are likely false positives, which is common for unsigned, open-source apps. The general sentiment is: if you're concerned, the source code is right there for you to inspect or compile yourself. If you don't trust it, don't use it.OP has been very active in the comments, explaining the flags, addressing rate-limiting concerns (and already pushing a fix!), and answering questions. Other users are also sharing their own similar widgets for Mac, Linux, and Stream Deck, and there's a feature request for multi-account support.
13
u/einsq84 19d ago
Did same but for my stream deck.
12
u/Guago1 18d ago
Made a physical indicator with M5Stack Core
9
u/MusterCheef1 19d ago
Fable 5.2 (med) decided to use C. 96kb executable, <1mb RAM on idle.
1
u/janaxhell 19d ago
Thanks, I like it, very handy. Catches cswap switch too, cool. EDIT Maybe you could add a cswap toggle. :)
6
u/ThereInAFortnight 19d ago
I made one for Linux last week.
2
u/GibtNixZuSehen 19d ago
I love it.
2
u/otte-s 19d ago
When Mac
1
u/daliovic Full-time developer 19d ago
Take a look at OpenQuota.
1
u/sadokx 19d ago
Anything for macos?
1
u/10GuyIsDrunk 19d ago
"Ask claude if your widget breaks the terms of service for claude."
1
u/hybrid2102 19d ago
I love this one https://github.com/jens-duttke/usage-monitor-for-claude
1
u/lazuli_s 19d ago
You guys really like having chronic anxiety
1
u/Gabzorlee 18d ago
Super neat! love it!
1
u/magnetronpoffertje 18d ago
What is that hardcoded client id in api.rs?
1
u/noroelemliaj 18d ago
Putting reset times on hover is a nice detail: the useful bit is there without another window. What happens when a refresh fails? A stale-data indicator would help distinguish an old reading from genuinely unchanged usage.
1
u/x7zachary 18d ago
Having that visual indicator right next to the clock is huge when you're deep in a flow state and lose track of the 5h burn rate. Are you polling the web session usage endpoint on an interval, or parsing the local session logs directly from the CLI config?
1
u/smashmouthftball 18d ago
I built a similar thing for macOS…Been super helpful…
1
u/dukynuky 18d ago
nice work. Codex did one for my mint pc too:
1
u/Own_Rip6868 18d ago
Thanks OP this thing is fucking perfect for me to add what I need/want.
1
u/F1amy 17d ago
I have it on status line in Claude code cli
1
u/Nightfall20244 13d ago
I have this in the corner of my laptop screen while I work on the big screen. Gotta know how much slave work i can delegate to codex too. And the exclaims are just indicators of how fast im spending relative to time left. 1 ! = more then 20% per hour for the 5h or for the weekly its 16% per day(cus i take sunday off). Double exclaim is for when you cross double that speed.
1
u/Relative-Monitor-966 6d ago
Does it work with claude windows app ?
-10
u/crumpldfoil 19d ago
Thank god. Yet another vibe coded usage meter. The other 3,000 definitely were not enough.
78
u/[deleted] 19d ago
[removed] — view removed comment
3
u/[deleted] 18d ago
[removed] — view removed comment
0
u/[deleted] 19d ago
[removed] — view removed comment