16 comments

  • dewey22 hours ago
    Alternatively there&#x27;s also this with 1.7k stars already and supporting more services (Despite the name): <a href="https:&#x2F;&#x2F;github.com&#x2F;steipete&#x2F;CodexBar" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;steipete&#x2F;CodexBar</a> (<a href="https:&#x2F;&#x2F;codexbar.app" rel="nofollow">https:&#x2F;&#x2F;codexbar.app</a>)
    • iLemming1 hour ago
      btw, I have failed to make the proper use of either of them - claudecodeusage keeps saying that I&#x27;m not signed in (I have Claude Desktop and CLI installed and signed in on both). CodexBar keeps saying &quot;Claude usage probe timed out&quot;, even though it does show some numbers. I don&#x27;t have a subscription, I just use the API.
    • RichHickson22 hours ago
      Good shout. CodexBar covers a lot more ground. This one is intentionally minimal and Claude focused because that is all I personally needed.
    • realharo22 hours ago
      Or just vibe code your own. Seems fitting.
    • ttoinou22 hours ago
      Is it safe ? It needs to reads Keychain. Like the OP app
      • RichHickson22 hours ago
        The app only reads ONE specific keychain entry:<p><pre><code> Service: &quot;Claude Code-credentials&quot; 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&#x2F;api&#x2F;oauth&#x2F;usage 4. Sends data only to Anthropic&#x27;s API - no analytics, no third-party servers The token never leaves your machine except to Anthropic&#x27;s own API endpoint. You can verify this yourself - the entire source is ~400 lines of Swift: https:&#x2F;&#x2F;github.com&#x2F;richhickson&#x2F;claudecodeusage macOS will also prompt you the first time the app tries to access this keychain entry, giving you control to allow or deny.</code></pre>
    • touristtam18 hours ago
      [flagged]
      • prawn14 hours ago
        &quot;I&#x27;m on Intel and would be interested in this if you find a way to make that work.&quot;
        • DrammBA14 hours ago
          Funny thing I went down a rabbit hole, cause I first scanned the open PRs and saw a PR to enable universal builds to support intel macs but the whole thing was pure AI slop and someone commented that codexbar already supports intel, and sure enough v.15 added it (the AI slop PR completely missed that), I then looked into the cask script and it has a hardcoded dependency on arm which prevents brew from installing v.17 even if it&#x27;s already an universal binary since v.15.
          • touristtam8 hours ago
            I came to the same conclusion before making that snarky and apparently offensive comment. Live to learn I guess.
  • 8mobile12 hours ago
    This is a great idea and a useful one for avoiding having to monitor Claude&#x27;s consumption. I&#x27;ve often exceeded the limit mid-process. If I&#x27;m not mistaken, something like this already exists, but I like the graphics and how the information is displayed. Congratulations!
  • ebbi16 hours 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 &quot;Authentication expired. Run &#x27;claude&#x27; to re-aut...&quot; so I run claude in terminal and still nothing...
    • RichHickson8 hours ago
      Hmmm. What version are you running?
  • DrammBA14 hours ago
    I loved the screenshot section of the readme followed by zero screenshots.
  • seriocomic13 hours ago
    Interesting, but not original - a simple search shows at least a dozen same&#x2F;similar (better?) solutions? Anything that yours does that those don&#x27;t?
  • codepoet8022 hours ago
    Love it, installed and set it to run at Login. Can I follow you on any social media that isn&#x27;t Xitter?
    • RichHickson21 hours ago
      Thanks, appreciate it. Honestly, I am only really on X at the moment.
      • cbeach19 hours ago
        [flagged]
        • einsteinx218 hours ago
          If you honestly think only “leftwingers” don’t like X you’re living in a bubble (ironically probably on X lol).<p>Plenty of us hated Twitter well before Elon renamed it.
  • JLO6416 hours 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&#x27;t until I pointed Claude at your repo and had it make something based off of that that I got it to work well.<p>Thank you!
  • virajk_3110 hours ago
    cool! I had to always go to claude settings for this.
  • brtkwr19 hours ago
    I tried another alternative yesterday as I found myself hitting that &#x2F;usage command too often and it didnt work too well but yours worked straight out of the box! Great job!<p>I built another tool that should have really been part of the core Claude Code CLI (which you may or may not find useful): <a href="https:&#x2F;&#x2F;github.com&#x2F;agentic-utils&#x2F;ccs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;agentic-utils&#x2F;ccs</a><p>It lets you search and resume past Claude code conversations from anywhere.
    • SparkyMcUnicorn17 hours ago
      Have you seen aichat[0]?<p>Doesn&#x27;t support the &quot;from anywhere&quot; part, but the resume strategies are pretty cool.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;pchalasani&#x2F;claude-code-tools#aichat-session-management" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;pchalasani&#x2F;claude-code-tools#aichat-sessi...</a>
  • kingkongjaffa22 hours ago
    If I wanted to vibe code my own macOS menu bar apps is this a good starter project to use as a template?<p>Are there any others?<p>Do I just not need one (claude code can do it without a starter template at all)?
    • Etheryte20 hours 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&#x27;t need to touch Xcode at all.<p>[0] <a href="https:&#x2F;&#x2F;www.hammerspoon.org" rel="nofollow">https:&#x2F;&#x2F;www.hammerspoon.org</a><p>[1] <a href="https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;docs&#x2F;hs.menubar.html" rel="nofollow">https:&#x2F;&#x2F;www.hammerspoon.org&#x2F;docs&#x2F;hs.menubar.html</a>
    • RichHickson22 hours 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.
    • realharo20 hours ago
      Speaking of the macOS menu bar, is there some way to make it overflow into a hidden area behind an &quot;expand&quot; button that would appear when there is no more room, like the notification area in Windows does?<p>The macOS UI decision of <i>&quot;just pretend that whatever doesn&#x27;t fit to the right of the notch doesn&#x27;t exist&quot;</i> is baffling.<p>I&#x27;ve seen a few apps that claim to do that, but it&#x27;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 &quot;always hidden&quot; sections and things like that, which is not what I want.
      • bartvk20 hours ago
        I decrease the spacing that macOS applies between menubar icons:<p><pre><code> % defaults -currentHost write -globalDomain NSStatusItemSelectionPadding -int 8 % defaults -currentHost write -globalDomain NSStatusItemSpacing -int 8</code></pre>
      • RichHickson20 hours ago
        I used to use Bartender, which worked really well, until the newest version, which had so many issues. Since then, I&#x27;ve just basically put up with it.
        • karlshea19 hours ago
          The new version has improved a bit since launch, you may want to give it another try.
          • einsteinx218 hours 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.
    • qaz_plm18 hours ago
      No template needed IMO.<p>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).<p>CC walked me through the needed Xcode project setup and handled all of the code there after.<p>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.
  • luisvillamil19 hours ago
    Looks really cool
  • dionian21 hours ago
    i like it, thanks for sharing
  • rootlocus20 hours ago
    &quot;Follow me on X&quot;<p>Why... just why? Why do people keep insisting on using it?
    • travisgriggs16 hours ago
      I certainly won&#x27;t.<p>I wonder if it&#x27;s because they don&#x27;t see other relevant low-cost&#x2F;overhead solutions. &quot;Follow me on facebook&quot; certainly isn&#x27;t going to be a win. &quot;Follow me on Bluesky or Mastadon&quot; is going to be ignored. &quot;You can see my comments on insta&quot; won&#x27;t be relevant. &quot;My TikTok is where it&#x27;s at&quot; might get you some young followers.<p>Other solutions (your own blog, medium, substack, etc), all come with more overhead and setup.
    • rootusrootus20 hours ago
      The charitable explanation is &quot;because that is where most people are.&quot; Network effect is real.
      • platevoltage19 hours ago
        Was that ever true, even during the Twitter days?
        • rootusrootus19 hours 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 &#x27;of all people&#x27; then of course it is not true -- most of us (myself included) never got into Twitter or any of the similar social media sites.
        • spiderfarmer19 hours ago
          [flagged]
    • worldsavior7 hours ago
      Because that&#x27;s what he uses. Instead of shaming about using X and going off-topic, don&#x27;t comment at all or comment something about the project.
    • self_awareness6 hours ago
      Because people like using social media?
    • userbinator12 hours ago
      &quot;Remember to like, share and subscribe.&quot;
    • bigyabai20 hours ago
      Form over followers over function, the 21st century design ethos.
      • dcreater16 hours ago
        you mean followers over form over function?
    • cbeach19 hours ago
      [flagged]
      • quietmonkey18 hours ago
        Why do you assume it’s political? Child pornography is, at least ostensibly, not a partisan issue.
      • gwilikz18 hours ago
        [dead]
    • hasperdi9 hours ago
      [flagged]
      • antfarm8 hours ago
        Same here, it reads like a political statement. Easy enough to remove it though.<p><a href="https:&#x2F;&#x2F;github.com&#x2F;richhickson&#x2F;claudecodeusage&#x2F;blob&#x2F;0bb26c0530478b653b7a75920b147b3a4ac34c1c&#x2F;ClaudeUsage&#x2F;UsageView.swift#L53" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;richhickson&#x2F;claudecodeusage&#x2F;blob&#x2F;0bb26c05...</a>
        • RichHickson7 hours ago
          Thanks for the feedback. The new version is being notarised now.
  • diimdeep21 hours ago
    [flagged]
    • arondeparon20 hours ago
      Very constructive comment, the “grow up already” really was the cherry on top.<p>(Yes, this is sarcasm)