Claude Code terminal

Claude Code status line builder

Add a small readout under your Claude Code prompt. Pick what matters to you, then download the script and set it up on Mac or Windows. The script reads the data Claude Code already provides.

Choose what to show

These presets are for the standalone Claude Code terminal. Check that node --version works in the shell you use to start Claude.

Preset

Example output

View the script

Install your preset

Keep the filename claude-statusline.cjs when you download it. The steps below set it up for your user account. If you already have a status line, keep a copy of the current settings before changing them.

Mac

  1. Open Terminal. Run mkdir -p ~/.claude, then move the downloaded script into that folder. In Finder you can use Go to Folder and enter ~/.claude.
  2. Use echo "$HOME" in Terminal to find your home path. Open ~/.claude/settings.json in a plain-text editor. If it does not exist yet, create it with the example below.
  3. Replace /Users/YOUR-NAME with your full home path. If settings.json already has other settings, add or replace only the top-level statusLine entry. Keep the remaining settings and valid JSON commas.
{
  "statusLine": {
    "type": "command",
    "command": "node \"/Users/YOUR-NAME/.claude/claude-statusline.cjs\""
  }
}

Windows

  1. In PowerShell, run Write-Output $HOME to find your home path. Use File Explorer to open that folder and create .claude if needed. Move the downloaded script into .claude.
  2. Open settings.json inside that folder in a plain-text editor. If the file does not exist, create it with the example below and make sure the name ends in .json.
  3. Replace C:/Users/YOUR-NAME with your full home path, using forward slashes, for both Git Bash and PowerShell. If the settings file already has entries, add or replace only statusLine.
{
  "statusLine": {
    "type": "command",
    "command": "node \"C:/Users/YOUR-NAME/.claude/claude-statusline.cjs\""
  }
}

Open a new Claude Code terminal session in a trusted folder. Send one simple message and look under the prompt after Claude replies. To change presets, download a new script and replace the earlier copy. To remove it, remove the statusLine entry and restart Claude Code.

If a value is missing

Claude documents the 5-hour and 7-day fields for eligible Pro, Max and Ultra subscription sessions, after the first reply. Each window can be missing independently. The preset displays “Plan limits unavailable” when neither subscription window is present. Context usage also needs session data, and it measures the current conversation separately from your plan limits.

If the line is blank, check your script path and run node --version in the shell Claude Code uses. If that shell cannot find Node, use the full path to the Node executable in the settings command, with quotes if it contains spaces. Anthropic’s status line guide.