xbar plugin showing Claude.ai 5-hour and 7-day usage in the macOS menu bar (refreshes every minute).
Colour: green below 50%, orange above 50%, red above 80% (based on 5-hour window).
Dropdown shows a usage bar for each limit plus time until reset and link to claude usage page.
- Install xbar: https://xbarapp.com
- Open xbar, go to Plugin Browser or open the plugins folder directly
- Symlink or copy
claude_usage.5m.pyinto your xbar plugins folder:ln -s "$(pwd)/claude_usage.5m.py" ~/Library/Application\ Support/xbar/plugins/claude_usage.5m.py - Make it executable:
chmod +x claude_usage.5m.py - Edit
config.jsonand paste yoursessionKeycookie value (from Firefox DevTools on claude.ai) - Refresh xbar
The session key typically lasts months. You should rarely need to do this.
If the plugin shows a red warning (session expired):
- Open Firefox, go to claude.ai
- DevTools (F12) > Storage > Cookies > claude.ai
- Copy the value of
sessionKey - Paste into
config.json