The Claude Code statusline is that bar under your prompt, and you decide what goes in it. Type /statusline plus what you want in plain words, and it can tell you which model you're on and how full your context is.
The status line is a customizable bar at the bottom of Claude Code that runs a shell script you choose. Claude Code hands that script your session data as JSON and displays whatever the script prints. You don't have to write the script yourself. Type /statusline plus what you want in plain words, and Claude Code generates the script and updates your settings. The bar runs locally and doesn't consume API tokens.
Disclosure: Skillpack, the site you're reading, is a tool to share skills with your whole team. The facts here come from the Claude Code docs page Customize your status line and the ccstatusline README as they stood on December 4, 2026.
What is the Claude Code statusline, exactly?
It's a row of text you choose, parked at the bottom of Claude Code. The bar gets its own row above the built-in footer badges and doesn't replace them.
There is one trade. With a custom status line, Claude Code stops showing some footer hints, such as ? for shortcuts.
It also ducks out now and then. The bar temporarily hides during certain moments, including the help menu and permission prompts. If yours vanishes while Claude asks for permission, that's why.
Want one without writing a script?
Type one sentence in Claude Code, or run one command in your terminal. Either way, you write no script yourself.
# Route A: inside Claude Code, say what you want in plain words
/statusline show model name and context percentage with a progress bar
# Route B: in your terminal, open the ccstatusline setup screen
npx -y ccstatusline@latest
Route A is the official one. The /statusline command accepts plain-language instructions. From there, Claude Code generates a script file in ~/.claude/ and updates your settings automatically. Approve the file edit prompts if it asks. It's the same lazy trick as when you let Claude write a skill for you.
Route B is ccstatusline, a community project the docs mention for its pre-built configurations with themes. Its README says no installation is needed. The command opens a setup screen in your terminal, and installing from that screen writes a statusLine entry to your Claude Code settings.
Prefer doing it by hand? Add a statusLine field to ~/.claude/settings.json and point it at your script:
{
"statusLine": {
"type": "command",
"command": "~/.claude/statusline.sh"
}
}
Save the file. Claude Code reloads settings automatically and runs your script right away.
Which three things are worth showing?
A useful pick, not a rule from the docs, is the model, the context percentage, and one extra of your choice. The docs only say to keep the output short, because the bar has limited width and long output may get truncated.
The model name is the easy one. Context is the useful one, and it has a quirk. The status line reports the counts from the last API response, while /context adds an estimate for messages added since then. So /context can read higher until the next response. The docs point to used_percentage as the simplest accurate reading.
The third slot is yours. Git branch is a classic, and it comes from your own script. There's a "Git status with colors" example in the docs to copy. Session cost is tempting, but read the label first. It's an estimate computed on your machine that may differ from your actual bill. It also resets to $0 when /clear starts a new session.
Then there's the session name. Stan Girard, who writes this blog, runs between 5 and 25 agents at once per project. The docs list working across multiple sessions that you need to distinguish among the reasons to set up a status line. The session name field holds the name you set with --name or /rename, or else the AI-generated session title. If parallel sessions are your thing, agent teams are worth a read too.
One more field for the curious: the name of your current output style.
Why is my statusline blank?
A blank bar comes from a short list of causes, and the docs cover each one. Go down the list.
- You haven't trusted the folder. Until you accept the workspace trust dialog, the status line stays blank. A status line runs a shell command, so Claude Code holds it to the same workspace trust rule as hooks in settings files. Restart Claude Code and accept the dialog.
- The script can't run. Make it executable with
chmod +x ~/.claude/statusline.sh. - The script talks to the wrong place. Check that it prints to stdout instead of stderr. Claude Code displays the output only after the script exits with code 0.
- A hooks switch is on. If
disableAllHooksistrueoutside managed settings, Claude Code runs only a status line from managed settings. If your organization setsallowManagedHooksOnly, your custom status line disappears without warning.
Still blank? Run claude --debug, which logs your script's stderr. You can also ask Claude to read your settings file and run the statusLine command directly to surface errors.
Seeing -- or empty values right after you start? Fields may be null before the first API response completes. Restart Claude Code if values remain empty after multiple messages.
Is a statusline a skill?
No. A statusline is a setting that runs a script on your machine. A skill is a folder with a SKILL.md file of instructions that teaches an AI agent one task. Different jobs, and you can have both.
Open Claude Code, type /statusline and name what you want to see. If the bar stays blank, start with the trust dialog. And once your setup has skills worth keeping, remember that Skillpack is a tool to share skills with your whole team. You can create a free Skillpack workspace when they're ready to pass around.
Does the Claude Code statusline cost tokens?
No, the Claude Code statusline does not cost tokens. The Claude Code docs say the status line runs locally and does not consume API tokens. Claude Code runs your script with JSON session data and displays whatever the script prints.
Can I turn the Claude Code statusline off?
Yes, you can turn the Claude Code statusline off. Run /statusline and ask it to remove or clear your status line, for example /statusline delete. You can also delete the statusLine field from your settings.json by hand.
Does the Claude Code statusline update in real time?
The Claude Code statusline updates on events. The script runs once when a session starts, including when you resume one. It runs again when a new assistant message arrives, /compact finishes, the permission mode changes, vim mode toggles, you change the command, a rate-limit window resets or a warm prompt cache expires. Rapid changes batch together. For a clock, set the optional refreshInterval field, which re-runs the command every N seconds, with a minimum of 1.