A CLI tool that shows Claude Code session and weekly usage in the statusline.
ccstatus is designed specifically for Claude Code. It uses Anthropic's API to display real usage data directly in your Claude Code statusline, giving you visibility into your session and weekly consumption without leaving your workflow.
brew tap tharuxpert/ccstatus
brew install ccstatusRequires Go 1.21 or later.
go install github.com/tharuxpert/ccstatus@latestRun the install command to configure ccstatus:
ccstatus installThis command safely updates ~/.claude/settings.json to add the statusline configuration. No configuration is modified without user consent—you will be prompted before any changes are made.
| Command | Description |
|---|---|
ccstatus install |
Configure ccstatus in Claude Code settings |
ccstatus uninstall |
Remove ccstatus from Claude Code settings |
ccstatus config |
Configure statusline display options |
ccstatus doctor |
Run diagnostic checks on your configuration |
ccstatus version |
Print the version number |
Note: Running ccstatus without arguments outputs statusline data. This is intended to be called by Claude Code and will not produce meaningful output in a normal terminal session.
After running ccstatus install, the following entry is added to your Claude Code settings:
{
"statusline": {
"command": "ccstatus"
}
}This tells Claude Code to execute ccstatus and display its output in the statusline.
Use ccstatus config to customize what information is displayed in the statusline. This interactive command allows you to toggle the following options:
- Session Usage: Show current session usage percentage
- Weekly Usage: Show weekly usage percentage
- Reset Times: Show when usage limits reset
- Git Branch: Show current git branch name
Configuration is saved to ~/.claude/ccstatus.json and takes effect immediately.
- macOS
- Claude Code CLI
- OAuth tokens are retrieved from the system keychain (stored by Claude Code)
- No telemetry or tracking
- No data is sent to third parties
💬 Feedback & ideas: https://github.com/tharuxpert/ccstatus/discussions
MIT