# How to set up the Claude Code status line

Canonical: https://cwyn.com/pages/claude-code-guide-status-line-setup.html
Last updated: 2026-11-23T07:34:54-05:00

Claude Code setup guide

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 November 23, 2026 · Not affiliated with Anthropic · [Status line setup](https://code.claude.com/docs/en/statusline) (as of Nov 19, 2026) · Published November 19, 2026

## 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](https://cwyn.com/pages/claude-code-guide-rewind-checkpoints.html).

Once you know which model ran, [price a day and a month of Claude Code usage](https://cwyn.com/pages/claude-code-guide-cost-per-month.html).

Sources · [Status line generation, script inputs and output, context usage and troubleshooting](https://code.claude.com/docs/en/statusline)

## Related guides

- [Claude Code settings.json precedence (managed first)](https://cwyn.com/pages/claude-code-guide-settings-json-precedence.html)
- [Why is my Claude Code hook not firing?](https://cwyn.com/pages/claude-code-guide-hooks-not-firing.html)
- [Install Claude Code on Windows with PowerShell](https://cwyn.com/pages/claude-code-guide-windows-powershell-install.html)
- [Resume a previous Claude Code session](https://cwyn.com/pages/claude-code-guide-resume-local-session.html)

## Next steps

- [All 34 Claude Code guides](https://cwyn.com/guides/claude-code/)
- [Claude Code setup walkthrough](https://cwyn.com/setup/claude-code/)
- [Check your CLAUDE.md](https://cwyn.com/score/setup-file-checker/?profile=claude)
- [Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html)

### Set up your Claude Code project

[Claude Code Complete Setup Pack ($12.95)](https://cwyn.com/pages/pack-claude-code-complete-setup-pack.html) · Optional paid kit. For the repository setup around your terminal session, the pack includes project instructions, hooks and permission presets.
Kit details as of Nov 22, 2026

Claude Code Complete Setup Pack $12.95

Set up project instructions, permission rules, hooks, a reviewer skill and subagent, and MCP connections for Claude Code.
