To always display cost and model information in Claude Code, use ccusage statusline in the custom status line below the chat area.
Status Line Settings - Claude Code Docs
Setup
Recommended: Edit the configuration file directly
Add the following to .claude/settings.json.
For Node.js
json
{
"statusLine": {
"type": "command",
"command": "npx ccusage@latest statusline"
}
}
For Bun
~/.claude/settings.json json
{
"statusLine": {
"type": "command",
"command": "bun x ccusage@latest statusline"
}
}
Alternative: Use the /statusline command
To have Claude Code set this up for you, use the /statusline slash command.
For Node.js
plain
/statusline Please display `npx ccusage@latest statusline`
For Bun
plain
/statusline Please display `bun x ccusage@latest statusline`
Note: This method may generate settings that differ from the instructions. Starting Claude Code in the ~/.claude directory may help.
Troubleshooting
Custom status line not displaying
If you're using shell prompt tools like Starship, the custom status line may not display. To prioritize the custom status line, disable the shell prompt tool.