ccstatusline README

The project's README from github.com/sirmalloc/ccstatusline. As one markdown file: README.md.

              _        _             _ _            
  ___ ___ ___| |_ __ _| |_ _   _ ___| (_)_ __   ___ 
 / __/ __/ __| __/ _` | __| | | / __| | | '_ \ / _ \
| (_| (__\__ \ || (_| | |_| |_| \__ \ | | | | |  __/
 \___\___|___/\__\__,_|\__|\__,_|___/_|_|_| |_|\___|
                                                     

ccstatusline

🎨 A highly customizable status line formatter for Claude Code CLI Display model info, git branch, token usage, and other metrics in your terminal

npm version npm downloads License: MIT Node.js Version install size Maintenance

Mentioned in Awesome Claude Code ClaudeLog - A comprehensive knowledge base for Claude

Demo


📚 Table of Contents


🆕 Recent Updates

v2.2.28 - v2.2.29 - Service health, flexible formatting, and resilient rendering

v2.2.27 - Portable configuration import and export

v2.2.25 - v2.2.26 - Fable usage, migrated usage API support, compaction accuracy, and rendering reliability

v2.2.22 - v2.2.24 - Powerline flex mode, cache/CI/sandbox visibility, layout controls, composable metrics, and safer config

Powerline Flex Mode

v2.2.21 - Cache widgets, compaction details, extra usage currency, and package fixes

v2.2.20 - Gradients, token accuracy, usage reliability, and Git PR/MR fixes

v2.2.14 - v2.2.19 - Version pinning, npm provenance, usage overage widgets, and Git lock avoidance

v2.2.13 - Weekly model usage, voice status, hooks, and docs

v2.2.9 - v2.2.12 - GitLab support, reset timers, context, compaction, and git widgets


Older updates (v2.2.8 and earlier)

v2.2.8 - Git widgets, smarter picker search, and minimalist mode

  • 🔀 New Git PR widget - Added a Git PR widget with clickable PR links plus optional status and title display for the current branch.
  • 🧰 Major Git widget expansion - Added Git Status, Git Staged, Git Unstaged, Git Untracked, Git Ahead/Behind, Git Conflicts, Git SHA, Git Origin Owner, Git Origin Repo, Git Origin Owner/Repo, Git Upstream Owner, Git Upstream Repo, Git Upstream Owner/Repo, Git Is Fork, Git Worktree Mode, Git Worktree Name, Git Worktree Branch, Git Worktree Original Branch, and Custom Symbol.
  • 👤 Claude Account Email widget - Added a session widget that reads the signed-in Claude account email from ~/.claude.json while respecting CLAUDE_CONFIG_DIR.
  • 🧼 Global Minimalist Mode - Added a global toggle in Global Overrides that forces widgets into raw-value mode for a cleaner, label-free status line.
  • 🔎 Smarter widget picker search - The add/change widget picker now supports substring, initialism, and fuzzy matching, with ranked results and live match highlighting.
  • 📏 Better terminal width detection - Flex separators and right-alignment now work more reliably when ccstatusline is launched through wrapper processes or nested PTYs.
  • 🎨 Powerline theme continuity - Built-in Powerline themes can now continue colors cleanly across multiple status lines instead of restarting each line.
  • 🚀 New Token Speed widgets - Added three widgets: Input Speed, Output Speed, and Total Speed.
    • Each speed widget supports a configurable window of 0-120 seconds in the widget editor (w key).
    • 0 disables window mode and uses a full-session average speed.
    • 1-120 calculates recent speed over the selected rolling window.
  • 🧩 New Skills widget controls (v2.2.1) - Added configurable Skills modes (last/count/list), optional hide-when-empty behavior, and list-size limiting with most-recent-first ordering.
  • 🌐 Usage API proxy support (v2.2.2) - Usage widgets honor the uppercase HTTPS_PROXY environment variable for their direct API call to Anthropic.
  • 🧠 New Thinking Effort widget (v2.2.4) - Added a widget that shows the current Claude Code thinking effort level.
  • 🍎 Better macOS usage lookup reliability (v2.2.5) - Improved reliability when loading usage API tokens on macOS.
  • ⌨️ New Vim Mode widget (v2.2.5) - Added a widget that shows the current vim mode, with ASCII and optional Nerd Font icon display.
  • 🔗 Git widget link modes (v2.2.6) - Git Branch can render clickable GitHub branch links, and Git Root Dir can render clickable IDE links for VS Code and Cursor.
  • 🤝 Better subagent-aware speed reporting - Token speed calculations continue to include referenced subagent activity so displayed speeds better reflect actual concurrent work.
  • 🧩 New Usage widgets (v2.1.0) - Added Session Usage, Weekly Usage, Block Reset Timer, and Context Bar widgets.
  • 📊 More accurate counts (v2.1.0) - Usage/context widgets now use new statusline JSON metrics when available for more accurate token and context counts.
  • 🪟 Windows empty file bug fix (v2.1.1) - Fixed a Windows issue that could create an empty c:\dev\null file.
  • 🔗 New Link widget (v2.1.3) - Added a new Link widget with clickable OSC8 rendering, preview parity, and raw mode support.
  • ➕ New Git Insertions widget (v2.1.4) - Added a dedicated Git widget that shows only uncommitted insertions (e.g., +42).
  • ➖ New Git Deletions widget (v2.1.4) - Added a dedicated Git widget that shows only uncommitted deletions (e.g., -10).
  • 🧠 Context format fallback fix (v2.1.6) - When context_window_size is missing, context widgets now infer 1M models from long-context labels such as [1m] and 1M context in model identifiers.
  • **⏳ Wee

ccstatusline (sirmalloc/ccstatusline)

themes
Searching Database…

What is this?ccstatusline is a highly customizable status line for the Claude Code CLI, showing model info, git branch, token usage and other metrics right in your terminal.
How do I get it into my Claude Code terminal?Install the npm package — a pinned global install is the default flow — then use the built-in TUI to arrange widgets and write the statusLine entry into Claude Code settings.
What else needs to be on my machine for every widget to work?Node.js 14 or newer with npm or Bun for the install; git for the branch widgets; the gh or glab CLI if you want pull-request and CI status widgets.
Which features need a newer Claude Code or extra tools?Setting the refresh interval needs Claude Code 2.1.97 or newer, usage widgets show loading placeholders until Claude Code's usage data arrives, and PR/MR widgets need gh or glab installed.
Does it work on Windows?Windows is explicitly supported: helper processes run window-hidden and the git cache works around Windows file-lock quirks; as a Node CLI it also runs on macOS and Linux.
What can I customize in the status line?Widget selection and order, per-widget or line-wide color gradients, dim styling, padding, number formatting, conditional hiding, and a Powerline mode with flex separators — all edited inside the TUI.
Which widgets does it ship with?Model info, context length and percentage, token counts, session and weekly usage with Sonnet/Opus/Fable buckets, block and reset timers, compaction counter, cache hit/read/write, git branch, PR/MR and CI status, sandbox and voice status, Claude service health, and custom commands.
Will a long Claude Code session slow the status line down?No. Token, duration and speed metrics stream through the transcript in one shared scan instead of loading it whole, and no-active-block results are briefly cached to avoid repeated full-history scans.
Can I move my configuration to another machine?Yes — the TUI can export your configuration to JSON and import it back with validation and preview, either replacing all settings or merging only the supplied fields.
Creator
sirmalloc
Size
14.7 MB
Stars
13.3K
Age
1y
Commits · 90 Days