@patrickdappollonio/claude-usage-tray
v1.0.3
Published
Tray icon showing Claude Code 5-hour and weekly usage, for Linux and macOS.
Maintainers
Readme
@patrickdappollonio/claude-usage-tray
A minimal tray icon that shows your Claude Code subscription usage: the 5-hour session percentage and the 7-day weekly percentage, with reset times. It lives in the Linux system tray (StatusNotifierItem) and in the macOS menu bar.
This package ships prebuilt binaries for linux-x64, linux-arm64,
darwin-x64 and darwin-arm64. The Linux ones are statically linked.
Usage
Run it without installing:
npx @patrickdappollonio/claude-usage-trayOr install it globally:
npm install -g @patrickdappollonio/claude-usage-tray
claude-usage-tray hook install # wire up the Claude Code statusline
claude-usage-tray # run the trayhook install records the absolute path of the binary it was run from, so
re-run it after upgrading the package.
Requirements
- Linux with a StatusNotifierItem host: KDE Plasma, XFCE 4.16+, LXQt, Cinnamon or MATE work out of the box. GNOME needs the AppIndicator and KStatusNotifierItem Support extension.
- Or macOS 12 or newer, where the icon goes in the menu bar. Notifications are
best effort here: npm ships the bare binary, and macOS only delivers
notifications properly on behalf of an app bundle. For real Notification
Center banners, grab the
.appfrom the releases page instead. Everything else behaves the same. - Claude Code >= 2.1.80 (the version that added
rate_limitsto the statusline JSON), on a Pro/Max subscription account.
No network calls, no credentials
This tray makes zero network requests and never reads your Claude credentials. It only reads a local JSON file — the data Claude Code itself already hands to your statusline on stdin.
Full documentation: https://github.com/patrickdappollonio/claude-usage-tray
License
MIT. See LICENSE.
