cconeline is a terminal status line for Claude Code, Anthropic's AI coding CLI. It displays real-time metrics directly in your terminal: git branch and diff stats, session token usage, API cost tracking, context window progress, memory usage, and more.
If you use Claude Code regularly and want to monitor token costs, track context window usage, or see git status without leaving your terminal, cconeline gives you all of that in a single configurable status line.
- Current directory
- Git branch + diff stats (
🌿 main +5 -2) - Session tokens + cost (
🔸 12.3K 💰 $0.042) - Context window usage bar (
23% ━━━─────────) - RTK token savings (
✂️ 1.5M (5.5%)) - Session time (
⏱️ 42m) - Memory usage (
🔋 8.2/32GB) - Model name (
🧠 Sonnet 4.6) - Today's tokens + cost (
Today: 🔸 45.2K 💰 $0.156) - Monthly cost (
Month: $12.34)
Each section is individually toggleable via ~/.claude/statusline.conf.
Via npm (recommended):
npm install -g cconeline
cconeline # interactive setup
cconeline -y # accept all defaultsVia npx (no install):
npx cconeline
npx cconeline -y # accept all defaultsVia git:
git clone git@github.com:medhatdawoud/cconeline.git ~/.claude/cconeline
cd ~/.claude/cconeline
bash bin/cconeline # interactive setup
bash bin/cconeline -y # accept all defaultsThe setup script will:
- Write
statusline.shinto~/.claude/ - Update
~/.claude/settings.jsonwith the statusLine command - Interactively configure which sections to show
To get the latest version of the status line script without changing your configuration:
npm install -g cconeline # upgrade the package
cconeline -u # update statusline.sh in place, keep your configThe -u flag rewrites ~/.claude/statusline.sh and patches settings.json but leaves ~/.claude/statusline.conf untouched.
- jq -
brew install jq - rtk (optional, for savings display) -
brew install rtk && rtk init -g --auto-patch
Sections are controlled by ~/.claude/statusline.conf:
STATUSLINE_DIR=1
STATUSLINE_GIT=1
STATUSLINE_SESSION=1
STATUSLINE_CONTEXT=1
STATUSLINE_RTK=1
STATUSLINE_SESSION_TIME=1
STATUSLINE_MEM=1
STATUSLINE_MODEL=1
STATUSLINE_TODAY=1
STATUSLINE_MONTH=1Re-run cconeline to reconfigure interactively.
