Answer: You can use the `/statusline` command to have Claude Code generate a script for you, or manually add a `statusLine` field to your user settings (`~/.claude/settings.json`) or project settings, setting `type` to `"command"` and pointing `command` to a script path or inline shell command. Status: Confirmed Entry: tool/claude-code/settings/set-up-status-line Revision: 2 Digest: sha256:6c664133483d6804 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:05:56Z Last changed: 2026-11-18T12:20:38Z (type value: — → command) Last verified: 2026-11-20T12:25:41Z Next check: 2026-11-21T12:25:41Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Unit | Source | As of command | /statusline | | [1] | 2026-11-20 settings file | ~/.claude/settings.json | | [1] | 2026-11-20 type value | command | | [1] | 2026-11-20 example command | ~/.claude/statusline.sh | | [1] | 2026-11-20 padding default | 0 | characters | [1] | 2026-11-20 refreshInterval minimum | 1 | seconds | [1] | 2026-11-20 Sources: [1] Anthropic. "Customize your status line". https://code.claude.com/docs/en/statusline.md Role: primary. Accessed: 2026-11-20T12:25:41Z Quote: "Use the [`/statusline` command](#use-the-%2Fstatusline-command) to have Claude Code generate a script for you" (Supports: command) Quote: "Add a `statusLine` field to your user settings (`~/.claude/settings.json`, where `~` is your home directory)" (Supports: settings file) Quote: "Set `type` to `"command"` and point `command` to a script path or an inline shell command." (Supports: type value) Quote: ""command": "~/.claude/statusline.sh"," (Supports: example command) Quote: "Defaults to `0`." (Supports: padding default) Quote: "The minimum is `1`." (Supports: refreshInterval minimum) Published: 2026-11-20T02:53:34Z Snapshot SHA-256: 6ed6ebdc024cf470219ffb455831185b524fd76d01e9d4cafba4a069c3a33cb4 (captured 2026-11-17T12:31:44Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-17T12:31:43Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T12:25:41Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:25:41Z Last attempt: 2026-11-20T12:25:41Z Notes and limitations: Extracted automatically from a single official source (section "Set up a status line"). Related: https://latestn.com/tool/claude-code/settings/set-working-directory-sdk How do I change the working directory for a Claude Code Agent SDK session? https://latestn.com/tool/claude-code/settings/setting-sources-precedence How do I control which settings sources the Claude Code Agent SDK loads? https://latestn.com/tool/claude-code/settings/settings-file-locations Where do I save Claude Code settings for myself, my team, or my organization? https://latestn.com/tool/claude-code/settings/set-cloud-environment-variables How do I set environment variables for a Claude Code cloud environment? https://latestn.com/tool/claude-code/settings/set-environment-variables How do I set environment variables for Claude Code in my shell or in a settings file? https://latestn.com/tool/claude-code/settings/set-environment-variables-sdk How do I set environment variables for a Claude Code Agent SDK session? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-18T12:20:38Z | changed | type value: — → command | [1] 2026-11-18T12:20:38Z | changed | type: command → — | [1] 2026-11-13T03:05:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/settings/set-up-status-line/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/settings/set-up-status-line POST: https://latestn.com/dispute/tool/claude-code/settings/set-up-status-line with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/settings/set-up-status-line?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I set up a custom status line in Claude Code? Revision 2, last verified 2026-11-20T12:25:41Z. https://latestn.com/tool/claude-code/settings/set-up-status-line (accessed 2026-11-21T10:00:20Z). @misc{LatestN_tool_claude_code_settings_set_up_status_line_r2, title = {How do I set up a custom status line in Claude Code?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/settings/set-up-status-line}}, note = {Revision 2; digest sha256:6c664133483d6804; last verified 2026-11-20T12:25:41Z; accessed 2026-11-21T10:00:20Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/settings/set-up-status-line