Claude Code setup guide
How to set up the Claude Code status line
At the Claude Code prompt, enter /statusline show model name and context percentage with a progress bar to create a status line. Review the proposed script and settings before approving them. Send a message and wait for Claude’s reply to check the display. If the line stays blank, check that the script is executable and prints to standard output.
By CWYN · Last updated · Not affiliated with Anthropic · Status line setup (as of Nov 19, 2026) · Published
1. Ask Claude to create the status line
Enter /statusline show model name and context percentage with a progress bar at the Claude Code prompt. Claude Code generates a script under ~/.claude/ and updates settings. Review any proposed script and settings edits before approving them.
2. Check which command the status line runs
Look for statusLine in ~/.claude/settings.json or your project settings. Its type should be "command" and its command should point to the script or contain the command to run. Claude Code passes session data as JSON on standard input and displays what the command prints to standard output.
3. Check the display after a reply
Send a message and wait for the response. Some fields can be empty until the first API response arrives. If your context percentage differs from /context, the status line uses data from the last response. The /context display also estimates usage from messages added since that response.
4. Trace a blank line to the script or workspace
Check that the workspace is trusted, the script is executable and the command prints to standard output. If your organization restricts hooks to managed settings, ask your administrator whether the restriction applies to your status line. To remove your own configuration, use /statusline clear or remove the statusLine key from the settings file where you set it. For edits to the script itself, see which changes /rewind can restore.
Once you know which model ran, price a day and a month of Claude Code usage.
Sources · Status line generation, script inputs and output, context usage and troubleshooting