← Back to context

Comment by dewey

2 days 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)

Good shout. CodexBar covers a lot more ground. This one is intentionally minimal and Claude focused because that is all I personally needed.

btw, I have failed to make the proper use of either of them - claudecodeusage keeps saying that I'm not signed in (I have Claude Desktop and CLI installed and signed in on both). CodexBar keeps saying "Claude usage probe timed out", even though it does show some numbers. I don't have a subscription, I just use the API.

Is it safe ? It needs to reads Keychain. Like the OP app

  • 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.

[flagged]

  • "I'm on Intel and would be interested in this if you find a way to make that work."

    • 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's already an universal binary since v.15.

      2 replies →