Skip to content

tharuxpert/ccstatus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ccstatus

12

A CLI tool that shows Claude Code session and weekly usage in the statusline.

Overview

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.

Installation

Homebrew (recommended)

brew tap tharuxpert/ccstatus
brew install ccstatus

Manual install from source

Requires Go 1.25.5 or later.

git clone https://github.com/tharuxpert/ccstatus.git
cd ccstatus
go install .

Setup

Run the install command to configure ccstatus:

ccstatus install

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

Usage

Commands

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

Release

Releases are published by GoReleaser when a v* tag is pushed. The workflow builds release artifacts, injects the tagged version into the binary, and updates the tharuxpert/homebrew-ccstatus tap.

The release workflow requires a TAP_GITHUB_TOKEN repository secret with write access to tharuxpert/homebrew-ccstatus.

Configuration

After running ccstatus install, the following entry is added to your Claude Code settings:

{
  "statusLine": {
    "type": "command",
    "command": "ccstatus"
  }
}

This tells Claude Code to execute ccstatus and display its output in the statusline.

Statusline Options

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.

Compatibility

  • macOS
  • Claude Code CLI

Security

  • 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

💬 Feedback & ideas: https://github.com/tharuxpert/ccstatus/discussions

License

MIT

About

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.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages