A customizable status line formatter for Claude Code CLI that displays model info, git branch, token usage, and other metrics in the terminal. Current stable version is 2.2.19, released actively on npm with recent updates including version pinning, extra usage widgets for pay-as-you-go overage limits, persistent Git caching, and Windows compatibility improvements. Differentiates from generic CLI tools by being purpose-built for Claude Code, supporting localization, configurable TUI, and supply chain security via npm provenance attestations. Requires Node.js >=14.0.0 and is maintained on GitHub.
npm install ccstatuslineNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import ccstatusline (ESM), format a status line with git/model/token info, and create a custom widget with intervals.
Switch to ESM imports (import ccstatusline from 'ccstatusline') or use dynamic import() in CJS contexts.
Uninstall auto-update version via TUI, then reinstall using the new pinned global install flow. Settings are preserved.
Upgrade to >=2.2.14 which passes --no-optional-locks and caches Git output in ~/.cache/ccstatusline/git-cache.
Set CCSTATUSLINE_WIDTH environment variable to an explicit width (e.g., 80) before running Claude Code.
Upgrade to >=2.2.14 which sets windowsHide=true on helper commands. See docs/WINDOWS.md for additional steps.
Replace require('ccstatusline') with import 'ccstatusline' or use dynamic import('ccstatusline').Ensure you use named import: import { formatStatusLine } from 'ccstatusline'.Run 'npm install ccstatusline' in your project directory.
Update ccstatusline to >=2.2.14 or set environment variable GIT_OPTIONAL_LOCKS=0.
No dependency data recorded yet.