AI EngineerGuide

How to Track Claude Code Usage in Real Time

by Ashik Nesin Ashik Nesin

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 👇

2025-08-10 at 11.12.05@2x.png

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"
  }
}

2025-08-10 at 09.22.33@2x.png

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!

#Claude-Code

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.