Skip to content

medhatdawoud/cconeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Screenshot 2026-03-06 at 11 41 44 AM

preview

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 defaults

Via npx (no install):

npx cconeline
npx cconeline -y  # accept all defaults

Via 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 defaults

The setup script will:

  • Write statusline.sh into ~/.claude/
  • Update ~/.claude/settings.json with the statusLine command
  • Interactively configure which sections to show

Updating

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 config

The -u flag rewrites ~/.claude/statusline.sh and patches settings.json but leaves ~/.claude/statusline.conf untouched.

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=1

Re-run cconeline to reconfigure interactively.

About

Neat statusline for claude code

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages