cconeline
v1.0.10
Published
Terminal status line for Claude Code showing git info, token usage, cost tracking, and context window metrics
Downloads
523
Maintainers
Readme
cconeline — Claude Code Status Line
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.
What it shows
- 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.
Setup
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 [email protected]: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
Prerequisites
- jq -
brew install jq - rtk (optional, for savings display) -
brew install rtk && rtk init -g --auto-patch
Configuration
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.
