A KDE Plasma 6 widget that displays your Claude Code usage statistics in the taskbar.
- Compact Panel Display: Shows session and weekly usage percentages right in your taskbar

- Color-coded Indicators: Green (<50%), Yellow (<80%), Red (≥80%)
- Detailed Popup: Click to see full statistics
- Session and weekly usage with progress bars
- Reset times for both limits
- Per-model breakdown (Sonnet/Opus)
- Your subscription plan badge
- Auto-refresh: Updates every minute automatically
- Error Handling: Clear messages when not logged in or token expired
- No Dependencies: Pure QML, no Python or external tools required
- KDE Plasma 6.0 or later
- Claude Code CLI installed and logged in
- Right-click on your panel
- Select "Add Widgets..."
- Click "Get New Widgets..." > "Download New Plasma Widgets..."
- Search for "Claude Usage"
- Click Install
kpackagetool6 -t Plasma/Applet -i claude-usage-widget.plasmoidgit clone https://github.com/anthropics/claude-usage-widget.git
cd claude-usage-widget
kpackagetool6 -t Plasma/Applet -i .- Make sure you're logged in to Claude Code (run
claudein terminal) - Add the widget to your panel
- Click the widget to see detailed usage statistics
The widget reads your Claude Code OAuth credentials from ~/.claude/.credentials.json and calls the Anthropic usage API directly. No data is stored or sent anywhere else.
GET https://api.anthropic.com/api/oauth/usage
Headers:
Authorization: Bearer <oauth-token>
anthropic-beta: oauth-2025-04-20
Make sure you're logged in to Claude Code:
claudeYour OAuth token has expired. Run Claude Code again to refresh it:
claude- Click the refresh button in the popup
- Check logs:
journalctl --user -f | grep -i claude
claude-usage-widget/
├── metadata.json # Widget metadata
├── contents/
│ ├── ui/
│ │ └── main.qml # Widget implementation
│ └── icons/
│ └── claude.svg # Claude logo (orange)
└── screenshots/ # Preview images
GPL-3.0-or-later
izll
- Initial release
- Session and weekly usage display
- Per-model breakdown (Sonnet/Opus)
- Auto-refresh every minute
- Error handling for login issues
