One command gives you real-time token usage, block timer, and context percentage, right in your Claude Code terminal. Here's how to set it up.
ccstatusline is a free, open-source status line formatter that shows live metrics (tokens used, time remaining, context percentage) directly in your Claude Code terminal. It's like a dashboard for your AI coding session.
Open your terminal and paste this. It downloads and launches the configuration tool, no global install needed.
npx -y ccstatusline@latest
You'll see an interactive menu open right in your terminal. That's the configuration tool.
The menu shows you everything you can display in your status line. There are a lot of options. Don't worry about most of them. Here's what I use:
Add those four using the menu, skip everything else for now. You can always rerun the command later to change things.
Click Install in the menu. It writes to your Claude Code settings automatically, no config files to edit by hand.
Open a new Claude Code session and your status line is live. That's it.
~/.config/ccstatusline/settings.json.
They persist across sessions and updates.