SuperAPIAI Directory

ccbrief

github.com · AI design

ccbrief is a minimalist, configurable status line tool designed for Claude Code that displays the context window, token count, session cost, and rate limit usage in the terminal. It installs with one command via npx ccbrief init, supports custom display content, colors, and symbols, makes no network requests and has no telemetry, works on Windows, macOS, Linux, and WSL, and requires Node 22 or later.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux

About this tool

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 up settings.json and adds the statusLine configuration block. No need to restart Claude Code; the status line appears on the next interaction.
  • Upgrade: simply run npx ccbrief init again; the configuration and other settings are preserved.
  • Uninstall: run the uninstall command to restore the backed-up settings.json or only remove the statusLine block added by ccbrief; you will be asked for confirmation before deleting the ~/.claude/ccbrief/ directory.
  • Configure: run npx ccbrief config to open the interactive selector, preview in real time and choose which segments to display, and automatically update settings.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 the CLAUDE_CONFIG_DIR environment 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 COLUMNS environment 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.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools