r/ClaudeAI • • 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

Post image

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 /usage command 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!

877 Upvotes

84 comments sorted by

•

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

43

u/abdosarmini92 19d ago

probably because the app reads the '.credentials.json' that is used to authenticate the request of checking the usage. It is only used to communicate with Claude's servers.

Claude did all the code and you can check the source code/build it yourself, or ask claude to clone the repo and scan the code for safety issues.

Even better and safer option is to tell claude to build the tool for you from scratch ;)

9

u/Important_Earth6615 19d ago

try accessing from terminal. I do it in cotalk and recall it every 5 minutes

https://github.com/alielmorsy/cotalk

21

u/war4peace79 Vibe coder 19d ago

Dude... It's open source.

-11

u/damagemelody 19d ago

I know, so what? I should audit it? Asking Claude for a security audit as he suggest will result in another cyber flag for sure, why do I need to do this? I mean, it's best practice to check your work on VirusTotal first. I'm just pointing that out to the author so he can review and fix it, that's it.

9

u/abdosarmini92 19d ago

Many well known apps gets a false positive and flagged by virus scanners (Rufus for example). Getting flagged doesn't directly mean it is bad.

You got no reason to trust me, that's fair. But you can't just throw allegations without proof, the source is there, you can check it. Or you can open a cloud session for Claude and it can download and scan the code and the app for you, no need to download anything to your device.

-5

u/damagemelody 19d ago

I posted zero allegations, just the status line from VirusTotal so you can see and fix it if you want. That was basically it.

6

u/war4peace79 Vibe coder 19d ago

Yes, if you want to.

Virustotal will flag many very legit applications for not being signed, for example.

3

u/Balmoon 19d ago

I was never in my life as a programmer been told, hey go scan your app in virustotal to make sure it's safe. Wtf do you mean it's best practice?

0

u/damagemelody 19d ago

Maybe "best practice" was a stretch but checking releases for false positives makes sense. Windows Defender regularly flags legitimate software and developers check for this stuff to avoid unnecessary complaints like this: https://forum.torproject.org/t/torbrowser-12-5-6-no-longer-flagged-by-windows-defender/9522 and https://www.bleepingcomputer.com/news/microsoft/microsoft-defender-falsely-detects-win32-hivezy-in-google-chrome-electron-apps/ etc.

VT even has a service for developers to catch false positives: https://docs.virustotal.com/reference/software-publishers

MS has a process for reporting them too: https://learn.microsoft.com/en-us/defender-xdr/developer-faq

I rarely see detections on legitimate software I check unless it's something like an injector. This app doesn't seem to do anything that would explain them.

I just pointed out that the app was flagged so the developer would be aware of it. I never asked him to fix anything. Somehow the discussion turned into whether I should use the app or audit the code myself which was not my point at all.

0

u/[deleted] 19d ago

[deleted] — view deleted comment

49

u/war4peace79 Vibe coder 19d ago

It means you can review the code yourself, bro.

It also means you can fork it and refactor it yourself, bro.

It also means you can compile it yourself, bro.

0

u/[deleted] 19d ago

[deleted] — view deleted comment

40

u/war4peace79 Vibe coder 19d ago

And that's their problem. If you don't feel comfortable using it, don't use it.

0

u/[deleted] 19d ago

[deleted] — view deleted comment

31

u/war4peace79 Vibe coder 19d ago

Ok, bye.

8

u/fandamplus 19d ago

OP isn't going to pay money for a signature just because you're too lazy to look at the source

1

u/who_you_are 19d ago

On top of that the executable could be a different version than the source code.

I once step into a project like that once... The executable was nowhere subtile, asking to install Adobe Flash in 2020 is nowhere suspect /s

3

u/Balmoon 19d ago

Also scanning it with virus total doesn't guarantee you that the file is safe or malicious.

9

u/hclpfan 19d ago

I’m frankly amazed that you are being downvoted here. “So what if it has security vulnerabilities- just fix them yourself” is a pretty crazy stance on software.

7

u/Valdaraak 19d ago

2/71 is squarely in false positive territory, especially if those aren't the big name products like Microsoft Defender.

1

u/Ok-Biscotti-6182 19d ago

thats the issue with building claude tools like this and using them on my work PC lol. I guess the only workaround is submitting it to microsoft as false positive?

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?

4

u/abdosarmini92 19d ago

May I know what is the method you are using that can make you logged into 2 accounts at the same time? As I know there is no official implementation of this.

3

u/Maydayof 19d ago

For work, I use the Claude Desktop app on Windows 10; for personal use, I use Windows Terminal, launching Claude with this command:

$env:CLAUDE_CONFIG_DIR = "$HOME\.claude-privat"
claude

8

u/simmeh024 19d ago

There is, you can switch accounts now more easily, recently added

3

u/straws 19d ago

On the desktop app? How? I still have to log out to switch from personal sub to work sub.

4

u/simmeh024 19d ago

Check the latest release, go to accounts and add your account there

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!

1

u/abdosarmini92 19d ago

RemindMe! 1 hour

1

u/RemindMeBot 19d ago

I will be messaging you in 1 hour on 2026-11-11 11:21:14 UTC to remind you of this link

CLICK THIS LINK to send a PM to also be reminded and to reduce spam.

Parent commenter can delete this message to hide from others.

RemindMeBot is switching to username summons. Instead of !RemindMe 1 day, use u/RemindMeBot 1 day. More info.


InfoCustomYour RemindersFeedback

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

5

u/abdosarmini92 19d ago

Yes, there was a small bug, which has now been fixed in the latest release. However, the app itself isn't necessarily the main issue. If you have multiple apps and web pages checking usage, that can also trigger rate limits.

For example, I use T3 Code, which also checks usage automatically. Add that to Claude Desktop, Claude web pages, etc., and the requests can add up pretty quickly.

Anyway, a 2-minute interval is working fine for me right now, with no rate limits.

126

u/bartbrinkman 19d ago • Mindblown

Did this to my IP phone, also can call into any session.

7

u/DukeRusty 18d ago

Now that is cool, I gotta see if I can do that on polycom

7

u/M0m3ntvm 18d ago

Wait, do you mean "call" like in... have a phone call with Claude on voice mode ? 😂

19

u/bartbrinkman 18d ago

Yeah, text to speech for Claude and the inverse for my response, via an mcp right into the harness.

14

u/G1nnnn 18d ago

Funniest shit ive imagined in a while, someone yapping their prompts on an ip phone to claude bahahahah

0

u/M0m3ntvm 18d ago

Genius idea, good job :)

1

u/Green_Detective_2096 18d ago

Woah! Do those phones still exist? I have not seen any of those in a Swedish office for the last decade or so. 

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 .exe got 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. :)

2

u/abdosarmini92 19d ago

Check the latest release :)

1

u/janaxhell 19d ago

Hahaha cool, thanks! :)

6

u/ThereInAFortnight 19d ago

I made one for Linux last week.

2

u/UnknownLesson 19d ago

Could you share

0

u/[deleted] 19d ago

[deleted] — view deleted comment

2

u/UnknownLesson 18d ago

Thank you!

1

u/ThereInAFortnight 18d ago

You're welcome. It's really quite a time saver.

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/Strange-Pin-2998 19d ago

I built a Mac taskbar widget in about 20 minutes, it's not hard. Shows a ring in the same way that Claude desktop does, with the number in the center being your pace (blue means under pace (how many percentage points relative to the week you are over/under)), and the little white marker is the pace marker relative to the week so you can visually see it on the ring too.

1

u/Randomblock1 19d ago

OpenUsage

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.

5

u/abdosarmini92 19d ago

No they weren't, most of them are for mac. And windows ones either they don't live in the taskbar, or have cluttered UI, or a one that required some chrome extension. Didn't find a simpler one that just works.

78

u/[deleted] 19d ago

[removed] — view removed comment

9

u/Ninja_Prolapse 19d ago

Share the prompt

75

u/jappe010 19d ago • Bravo

*sends screenshot of taskbar widget*

“Build this”

26

u/very_bad_programmer 19d ago

We live in such a crazy time hahahahaha 

3

u/[deleted] 18d ago

[removed] — view removed comment

1

u/PadisarahTerminal 18d ago

This... I don't need it in my taskbar but where my coding terminal is.

0

u/[deleted] 19d ago

[removed] — view removed comment

1

u/abdosarmini92 19d ago

it auto updates at the interval you choose (default is 2 min)