Amirhossein HosseinpourAmirhpCom
Resume Book a consultationBook
Active Shell script · Open source

Claude Code status line

Your limits and reset times, in two lines.

A bash script that replaces the status line in Claude Code. The session is on the left: model, context, cache, cost and time. On the right edge are the day your plan ends and the 5-hour and weekly limits, each with a bar and the time left until it resets.

Source on GitHub Install

Free, MIT licence. Not affiliated with Anthropic.

On GitHub2026 to today

What it looks like

The script's own output with sample figures: normal use, getting close, and almost out.

Three states of the two-line status line. Model, context, cache, cost and time are on the left; the plan end date, 5-hour limit and weekly limit with progress bars are on the right. The colours go from green and blue to yellow, orange and red.

What it shows

Everything comes from the data Claude Code gives to a status line, except the plan date.

5-hour and weekly limits

Percent used, a bar and a countdown to the reset for each. Yellow from 70%, orange from 80%, red from 90%.

Plan end date

Days left and a bar for the month, read from a one-line file. Gregorian by default, Jalali with one setting.

The session

Model and effort, cost, context window, cache hit ratio, session time and the time spent waiting for the model.

Install

One line in the terminal. It sets the status line in Claude Code and keeps a backup of your settings. Best in a window of about 135 columns or more.

brew install amirhp-com/tap/claude-code-statusline && claude-code-statusline install
With Homebrew, which also installs jq
curl -fsSL https://raw.githubusercontent.com/amirhp-com/claude-code-statusline/main/install.sh | bash
Without Homebrew, if you already have jq

After installing

Installed with curl? Use ~/.claude/claude-code-statusline.sh in place of the command name.

  1. Add your plan date

    Optional: claude-code-statusline plan-ends 2026-12-20, with your own date. Change it after each renewal, or use off to hide it.

  2. Use the Jalali calendar

    Run claude-code-statusline install --jalali.

  3. Remove it

    claude-code-statusline uninstall puts your previous status line back. Run it before removing the Homebrew package.

branch main 36 active projects ↑ 148 releases open-source/claude-code-statusline.md Sari --:-- UTC+3:30 its@amirhp.com