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.
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
- 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. - Use
echo "$HOME"in Terminal to find your home path. Open~/.claude/settings.jsonin a plain-text editor. If it does not exist yet, create it with the example below. - Replace
/Users/YOUR-NAMEwith your full home path. Ifsettings.jsonalready has other settings, add or replace only the top-levelstatusLineentry. Keep the remaining settings and valid JSON commas.
{
"statusLine": {
"type": "command",
"command": "node \"/Users/YOUR-NAME/.claude/claude-statusline.cjs\""
}
}
Windows
- In PowerShell, run
Write-Output $HOMEto find your home path. Use File Explorer to open that folder and create.claudeif needed. Move the downloaded script into.claude. - Open
settings.jsoninside 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. - Replace
C:/Users/YOUR-NAMEwith your full home path, using forward slashes, for both Git Bash and PowerShell. If the settings file already has entries, add or replace onlystatusLine.
{
"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.