frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
139•RichHickson•19h ago
I built a macOS menu bar app to track Claude usage in real time via API after hitting limits mid-flow too often.

Signed and notarised by Apple. Open source.

https://github.com/richhickson/claudecodeusage

https://x.com/richhickson

Comments

dewey•17h ago
Alternatively there's also this with 1.7k stars already and supporting more services (Despite the name): https://github.com/steipete/CodexBar (https://codexbar.app)
RichHickson•17h ago
Good shout. CodexBar covers a lot more ground. This one is intentionally minimal and Claude focused because that is all I personally needed.
ttoinou•17h ago
Is it safe ? It needs to reads Keychain. Like the OP app
RichHickson•17h ago
The app only reads ONE specific keychain entry:

  Service: "Claude Code-credentials"

  This is the entry created by the official Claude Code CLI when you log in. The app:

  1. Only reads - never writes, modifies, or deletes any keychain data
  2. Only accesses this one service name - cannot read any other passwords, keys, or credentials
  3. Extracts only the OAuth access token - used to call api.anthropic.com/api/oauth/usage
  4. Sends data only to Anthropic's API - no analytics, no third-party servers

  The token never leaves your machine except to Anthropic's own API endpoint. You can verify this yourself - the entire source is ~400 lines of Swift: https://github.com/richhickson/claudecodeusage

  macOS will also prompt you the first time the app tries to access this keychain entry, giving you control to allow or deny.
realharo•17h ago
Or just vibe code your own. Seems fitting.
kingkongjaffa•17h ago
If I wanted to vibe code my own macOS menu bar apps is this a good starter project to use as a template?

Are there any others?

Do I just not need one (claude code can do it without a starter template at all)?

RichHickson•17h ago
That is exactly what I did. Claude scaffolded it from scratch based on behaviour, then I iterated and had Codex review it for safety.
realharo•15h ago
Speaking of the macOS menu bar, is there some way to make it overflow into a hidden area behind an "expand" button that would appear when there is no more room, like the notification area in Windows does?

The macOS UI decision of "just pretend that whatever doesn't fit to the right of the notch doesn't exist" is baffling.

I've seen a few apps that claim to do that, but it's always done in some really hacky way (such as needing screen recording permissions), and the behavior is never that of simple overflow handling. Instead they have "always hidden" sections and things like that, which is not what I want.

bartvk•15h ago
I decrease the spacing that macOS applies between menubar icons:

  % defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 8
  % defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8
RichHickson•15h ago
I used to use Bartender, which worked really well, until the newest version, which had so many issues. Since then, I've just basically put up with it.
karlshea•14h ago
The new version has improved a bit since launch, you may want to give it another try.
einsteinx2•13h ago
I had stopped using it since the private equity buyout because it needs pretty serious permissions to do its job…maybe I’ll give it another look.
Etheryte•15h ago
Use Hammerspoon [0][1], it comes with a lot of macOS integrations out of the box and you write Lua, which takes zero effort to pick up and use. For me a big benefit is that you don't need to touch Xcode at all.

[0] https://www.hammerspoon.org

[1] https://www.hammerspoon.org/docs/hs.menubar.html

qaz_plm•13h ago
No template needed IMO.

I used CC just yesterday to build a native MacOS menu bar app by using plan mode (opus) until there was alignment then to edit mode for the build (I use Zed for the prompting).

CC walked me through the needed Xcode project setup and handled all of the code there after.

I’m sure something more complex would be more challenging but I was happy with a two-shot result for this native menu bar app.

codepoet80•17h ago
Love it, installed and set it to run at Login. Can I follow you on any social media that isn't Xitter?
RichHickson•17h ago
Thanks, appreciate it. Honestly, I am only really on X at the moment.
dionian•17h ago
i like it, thanks for sharing
RichHickson•17h ago
Thanks, Glad you like it!
rootlocus•15h ago
"Follow me on X"

Why... just why? Why do people keep insisting on using it?

rootusrootus•15h ago
The charitable explanation is "because that is where most people are." Network effect is real.
platevoltage•15h ago
Was that ever true, even during the Twitter days?
rootusrootus•14h ago
I guess that depends on the scope. For people who like that flavor of social media, Twitter was where it was at, and X remains the main place. But if the scope is 'of all people' then of course it is not true -- most of us (myself included) never got into Twitter or any of the similar social media sites.
bigyabai•15h ago
Form over followers over function, the 21st century design ethos.
dcreater•11h ago
you mean followers over form over function?
travisgriggs•11h ago
I certainly won't.

I wonder if it's because they don't see other relevant low-cost/overhead solutions. "Follow me on facebook" certainly isn't going to be a win. "Follow me on Bluesky or Mastadon" is going to be ignored. "You can see my comments on insta" won't be relevant. "My TikTok is where it's at" might get you some young followers.

Other solutions (your own blog, medium, substack, etc), all come with more overhead and setup.

userbinator•7h ago
"Remember to like, share and subscribe."
worldsavior•2h ago
Because that's what he uses. Instead of shaming about using X and going off-topic, don't comment at all or comment something about the project.
self_awareness•1h ago
Because people like using social media?
brtkwr•14h ago
I tried another alternative yesterday as I found myself hitting that /usage command too often and it didnt work too well but yours worked straight out of the box! Great job!

I built another tool that should have really been part of the core Claude Code CLI (which you may or may not find useful): https://github.com/agentic-utils/ccs

It lets you search and resume past Claude code conversations from anywhere.

SparkyMcUnicorn•12h ago
Have you seen aichat[0]?

Doesn't support the "from anywhere" part, but the resume strategies are pretty cool.

[0] https://github.com/pchalasani/claude-code-tools#aichat-sessi...

luisvillamil•14h ago
Looks really cool
JLO64•11h ago
Just yesterday I was trying to figure out a method to accurately estimate my remaining usage for the five hour sessions for a shell script. It wasn't until I pointed Claude at your repo and had it make something based off of that that I got it to work well.

Thank you!

ebbi•11h ago
This looks great. What am I doing wrong? I downloaded it, installed, but all I see is a red X in the toolbar. When I click on it, it says "Authentication expired. Run 'claude' to re-aut..." so I run claude in terminal and still nothing...
RichHickson•3h ago
Hmmm. What version are you running?
DrammBA•9h ago
I loved the screenshot section of the readme followed by zero screenshots.
seriocomic•8h ago
Interesting, but not original - a simple search shows at least a dozen same/similar (better?) solutions? Anything that yours does that those don't?
8mobile•8h ago
This is a great idea and a useful one for avoiding having to monitor Claude's consumption. I've often exceeded the limit mid-process. If I'm not mistaken, something like this already exists, but I like the graphics and how the information is displayed. Congratulations!
virajk_31•5h ago
cool! I had to always go to claude settings for this.

Show HN: Executable Markdown files with Unix pipes

62•jedwhite•11h ago•51 comments

Show HN: macOS menu bar app to track Claude usage in real time

https://github.com/richhickson/claudecodeusage
139•RichHickson•19h ago•46 comments

Show HN: Star Trek: The Next Generation Episode Guessing Game

https://tng.episodle.com/
2•francisofascii•31m ago•0 comments

Show HN: A geofence-based social network app 6 years in development

https://www.localvideoapp.com
65•Adrian-ChatLocl•16h ago•41 comments

Show HN: Commit-based code review instead of PR-based

https://commitguard.ai
9•moshetanzer•7h ago•0 comments

Show HN: DeepDream for Video with Temporal Consistency

https://github.com/jeremicna/deepdream-video-pytorch
63•fruitbarrel•1d ago•24 comments

Show HN: Ever wanted to look at yourself in Braille?

https://github.com/NishantJoshi00/dith
3•cat-whisperer•6h ago•0 comments

Show HN: A Wall Street Terminal for Everyone

https://marketterminal.com/chart
6•adamfontan•6h ago•4 comments

Show HN: I visualized the entire history of Citi Bike in the browser

https://bikemap.nyc/
109•freemanjiang•1d ago•31 comments

Show HN: I built a tool to create AI agents that live in iMessage

https://tryflux.ai/
28•danielsdk•5d ago•12 comments

Show HN: An all-in-one image crop/split/collage tool (no uploads, no watermark)

https://imagesplitter.tools
3•harperhuang•7h ago•6 comments

Show HN: I built a "Do not disturb" Device for my home office

https://apoorv.page/blogs/over-engineered-dnd
93•quacky_batak•5d ago•49 comments

Show HN: Watch LLMs play 21,000 hands of Poker

https://pokerbench.adfontes.io/run/Large_Models
29•jazarwil•1d ago•18 comments

Show HN: Image Scaler – Privacy-focused image resizing with 60-image batches

https://image-scaler.com/
2•nmczzi•9h ago•1 comments

Show HN: SMTP Tunnel – A SOCKS5 proxy disguised as email traffic to bypass DPI

https://github.com/x011/smtp-tunnel-proxy
136•lobito25•2d ago•44 comments

Show HN: Layoffstoday – Open database tracking for 10k Companies

https://layoffstoday.io/
2•doremon0902•10h ago•2 comments

Show HN: Open database of link metadata for large-scale analysis

https://github.com/rumca-js/RSS-Link-Database-2025
15•renegat0x0•5d ago•1 comments

Show HN: Tailsnitch – A security auditor for Tailscale

https://github.com/Adversis/tailsnitch
277•thesubtlety•3d ago•28 comments

Show HN: Claude Code for Django

https://github.com/kjnez/claude-code-django
4•cui•11h ago•2 comments

Show HN: Free and local browser tool for designing gear models for 3D printing

https://gears.dmtrkovalenko.dev
52•neogoose•2d ago•13 comments

Show HN: DoNotNotify – Log and intelligently block notifications on Android

https://donotnotify.com/
343•awaaz•3d ago•165 comments

Show HN: Mantic.sh – A structural code search engine for AI agents

https://github.com/marcoaapfortes/Mantic.sh
78•marcoaapfortes•3d ago•37 comments

Show HN: Fzf-navigator, a terminal file system navigator

https://github.com/benward2301/fzf-navigator
2•benward2301•12h ago•0 comments

Show HN: We built a permissions layer for Notion

https://notionportals.com/
11•PEGHIN•17h ago•7 comments

Show HN: VaultSandbox – Test your real MailGun/SES/etc. integration

https://vaultsandbox.com/
58•vaultsandbox•3d ago•13 comments

Show HN: Legit, Open source Git-based Version control for AI agents

5•jannesblobel•13h ago•0 comments

Show HN: 48-digit prime numbers every git commit

https://textonly.github.io/git-prime/
66•keepamovin•1w ago•54 comments

Show HN: How I generate animated pixel art with AI and Python

https://sarthakmishra.com/blog/building-animated-sprite-hero
16•sarthak_drool•1d ago•2 comments

Show HN: Prism.Tools – Free and privacy-focused developer utilities

https://blgardner.github.io/prism.tools/
371•BLGardner•3d ago•101 comments

Show HN: KeelTest – AI-driven VS Code unit test generator with bug discovery

https://keelcode.dev/keeltest
28•bulba4aur•2d ago•15 comments