How to Track Claude Code Usage in Real Time
Claude Code team has recently shipped customizable status lines feature.
We can combine this with ccusage and we have a a beautiful CLI like this ๐
Getting Started
Make sure you’re on latest version of claude code. If not update it by running the following command
npm i -g @anthropic-ai/claude-code
Add this in your ย ~/.claude/settings.json
file
{
"statusLine": {
"type": "command",
"command": "npx -y ccusage statusline"
}
}
That’s pretty much it.
Honestly, Anthropic should have provided this as a first class feature. Maybe they’re not doing so for business reasons ๐ค
Credits
https://x.com/iannuttall/status/1954272037976842547
Happy tracking usage!
Was this content helpful?
Help us improve by giving us your feedback.