Claude Code status line

claude-usage-monitor

A status line plugin showing 5-hour and 7-day quota, context usage, tokens and reset countdowns.

58 stars 14 forksStatus lines Source

Install

From source
git clone https://github.com/aiedwardyi/claude-usage-monitor.git

From the README

claude-usage-monitor

  Claude Code statusline plugin that shows your quota usage, context, tokens, and reset countdowns directly in the terminal.

  No API keys. No telemetry. No dependencies. Runs locally.

  Real-time usage tracking - green to yellow to red as your session progresses.

Quickstart

Windows PowerShell

macOS / Linux

What you get

After install, restart Claude Code. Your statusline now shows:

- 5h / 7d quota - see how much is left before you hit limits
- Context % - see when you're running low before Claude tells you
- Token counts - input and output for the current session
- Reset countdown - know when your quota replenishes

Uses your existing Claude Code OAuth session. No extra API key or Python packages needed. Windows launches Python directly - no Git Bash requirement.

Prefer to audit first

On Windows, py -3 install.py works too.

The installer:

- copies launcher files into ~/.claude/plugins/claude-usage-monitor
- updates ~/.claude/settings.json (backs up to settings.json.bak first)
- runs a launcher smoke check and prints the verify command

Verify manually

If you want to verify the launcher yourself before restarting Claude Code:

- Windows: type nul | "C:\Users\you\.claude\plugins\claude-usage-monitor\statusline.cmd"
- macOS / Linux: printf '' | bash ~/.claude/plugins/claude-usage-monitor/statusline.sh

What it shows

All three bars show remaining % by default - they start full (green) and drain toward empty (red) as you use quota, like a fuel gauge. Prefer the fill-up style Claude Code uses? Set CQB_REMAINING=0.

Color coding

Trust and security

At runtime, the tool:

- reads Claude Code session JSON from stdin
- reads ~/.claude/.credentials.json for claudeAiOauth.accessToken (unless CLAUDE_CODE_OAUTH_TOKEN is set)
- runs git rev-parse…
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
Python
License
MIT
Last updated
31 October 2026
Topics
anthropicclaude-codeclideveloper-toolspluginproductivitypythonstatuslineterminal

FAQ

What is claude-usage-monitor?

A status line plugin showing 5-hour and 7-day quota, context usage, tokens and reset countdowns. It is a status line for Claude Code, from aiedwardyi/claude-usage-monitor on GitHub.

How do I install claude-usage-monitor?

Clone aiedwardyi/claude-usage-monitor from GitHub and follow the setup steps in its README.

Is claude-usage-monitor popular?

aiedwardyi/claude-usage-monitor has 58 GitHub stars and 14 forks. It was last updated on 31 October 2026.

More status lines

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