Claude Code status line

cc-statusline

Generates an informative status line script for Claude Code through an interactive setup.

645 stars 62 forksStatus lines Source

Install

Install
npx @chongdashu/cc-statusline@latest init
From source
git clone https://github.com/chongdashu/cc-statusline.git

From the README

cc-statusline

A beautiful, informative statusline for Claude Code

*Real-time directory, git branch, model info, costs, and session time tracking*

⚔ Quick Start

One command. Three questions. Custom statusline.

That's it! Answer a few simple questions, restart Claude Code, and enjoy your new statusline.

šŸ“‹ Prerequisites

Required
- Node.js 16+ - Required for the CLI tool
- Claude Code - The tool you're already using

Strongly Recommended
- jq - JSON processor for advanced features (see installation guide below)
  - Required for: context tracking, token stats, session timer
  - Without jq: basic features still work with fallback parser
Without jq, your statusline will have LIMITED functionality:
- āŒ No context remaining percentage
- āŒ No token statistics from ccusage
- āŒ No session timer
- āš ļø Basic fallback parser is used (less reliable)

macOS

Linux

Windows 10/11

Option 1: Package Manager (Recommended)

Option 2: Manual Download
1. Go to https://github.com/jqlang/jq/releases/latest
2. Download:
   - 64-bit: jq-windows-amd64.exe
   - 32-bit: jq-windows-i386.exe
3. Rename to jq.exe
4. Place in C:\Windows\System32\ (requires admin) or add to PATH
5. Test: jq --version

Verify Installation

Optional
- git - For branch display (you probably have this)
- ccusage - For usage stats (works via npx - no install needed)

šŸŽÆ Simple Setup

✨ What You Get

Enhance your Claude Code terminal with useful information:

- šŸ“ Directory Display - Current folder with ~ abbreviation
- 🌿 Git Integration - Current branch name
- šŸ¤– Model Info - Shows which Claude model you're using plus Claude Code version
- 🧠 Context Usage - Real-time context window usage with progress bars (requires jq)
- šŸ’° Cost Tracking - Live cost monitoring with burn rates via ccusage (partial without jq)
- āŒ›ā€¦
Read the full README on GitHub

How status lines work

  • A status line is a command Claude Code runs to draw the bar under the prompt. It gets the session as JSON on stdin (model, folder, cost, context) and prints one or more lines.
  • Point the statusLine setting in ~/.claude/settings.json at it: { "statusLine": { "type": "command", "command": "<the command from the README>" } }.
  • Or run /statusline inside Claude Code and describe what you want.
Claude Code docs

Details

Language
TypeScript
License
MIT
Last updated
16 February 2026

FAQ

What is cc-statusline?

Generates an informative status line script for Claude Code through an interactive setup. It is a status line for Claude Code, from chongdashu/cc-statusline on GitHub.

How do I install cc-statusline?

Run npx @chongdashu/cc-statusline@latest init, then follow the setup in the README.

Is cc-statusline popular?

chongdashu/cc-statusline has 645 GitHub stars and 62 forks, and is included in 1 curated Claude Code list. It was last updated on 16 February 2026.

More status lines

Browse the most popular Claude Code mods, all status lines, or the skills and MCP server directories.