ccbrief is a minimalist, configurable status line (statusline) tool designed for Claude Code. It displays context window usage, token counts, session cost, and rate limit usage in the terminal. It is an independent open-source project and is not affiliated with Anthropic.
Key capabilities
- Displays information such as context window usage percentage, token count, session cost, rate limit usage percentage and reset countdown, and the current model.
- Provides two presets, standard and detailed, and also lets you customize which segments are displayed via an interactive selector.
- Supports color and symbol customization, uses the standard ANSI palette, and adapts to dark and light terminal themes.
- When the status line is wider than the terminal, it automatically moves whole segments onto up to three lines, without splitting segments or letting the terminal wrap.
- Automatically hides the corresponding segment when there is no data, and never shows a placeholder 0%.
Usage
- Install: run
npx ccbrief init, which copies the renderer to~/.claude/ccbrief/, backs upsettings.jsonand adds the statusLine configuration block. No need to restart Claude Code; the status line appears on the next interaction. - Upgrade: simply run
npx ccbrief initagain; the configuration and other settings are preserved. - Uninstall: run the uninstall command to restore the backed-up
settings.jsonor only remove the statusLine block added by ccbrief; you will be asked for confirmation before deleting the~/.claude/ccbrief/directory. - Configure: run
npx ccbrief configto open the interactive selector, preview in real time and choose which segments to display, and automatically updatesettings.jsonafter saving. - The configuration file is located at
~/.claude/ccbrief/config.jsonand is optional; if missing or malformed, defaults are used. You can change the base directory by setting theCLAUDE_CONFIG_DIRenvironment variable.
Use cases
Suitable for developers who use Claude Code and want to monitor context usage, cost, and rate limits in real time in the terminal. Supports Windows, macOS, Linux, and WSL, and requires Node 22 or later.
Limitations
- Rate limit segments are only reported on Claude Code's Pro and Max plans; on other plans these segments are hidden.
- The context percentage may be null early in a session and after
/compact, in which case the segment is hidden and restored once Claude Code reports a value. - The terminal width is read from the
COLUMNSenvironment variable; if it is not set, 80 columns is assumed. - Using the nerd-font symbol set requires Nerd Font to be installed, otherwise blank boxes are displayed; if the terminal has no emoji font, the ⏳ timer may appear as a box, so choosing the ascii symbol set is recommended.
- The tool itself makes no network requests, sends no telemetry, and has no postinstall script.