I’ve been experimenting with Claude Code quite a bit recently, and found myself wanting to be able to view my usage at a glance. Unfortunately, Anthropic don’t yet provide this information in a format consumable by a status line helper, so I’ve hacked together a little script that’ll do it for you.
I have it set to show me how much of my 5 hour cap I’ve used (the solid bar), how far through the 5 hour window we are (the * in the progress bar), as well as my 7d usage and how full the context currently is. It’ll change colours to warn you when you’re potentially going to hit your limit.

Here’s a gist with the files you need: copy the scripts to your ~/.claude/scripts directory, and add the settings to your ~/.claude/settings.json. Run ~/.claude/scripts/refresh-usage.sh --force to get fresh data immediately.
Given that it’s unofficial behaviour, it may break or get you banned at any time, but I hope not. 🙂
