Cmd. /statusline
Configure TUI footer status-line fields.
Written and reviewed by Eric Han · Co-founder & CTO, reopt
Key takeaways
- Configure TUI footer status-line fields.
- Your picks show in the footer immediately and are saved to
tui.status_lineinconfig.toml, so they persist across launches. Set the window or tab title separately with/title(tui.terminal_title).
Purpose
Configure TUI footer status-line fields.
/statuslineAvailability
| Field | Value |
|---|---|
| Input surface | Running CLI prompt |
| Kind | Built-in |
| Status | Current reference |
| Aliases | — |
| Documented minimum | Not specified |
| Reviewed against | 2026-10-23 · Codex CLI 0.163.0 |
The installed command menu and account or organization settings determine availability.
Examples
/statuslineChoosing footer items
- Run
/statuslinein the prompt to open the item picker. - Pick the footer items and set their order. The official command docs list the model, context usage, rate limits, git branch, token counters, session ID, current directory, and Codex version as examples.
- Confirm. The footer updates right away and your choice is saved as the
status_linearray under[tui]inconfig.toml.
tui.status_line is an array of item identifiers in display order. The official config reference does not publish the list of valid identifiers, so pick items with /statusline and copy the saved array into team settings rather than typing identifiers by hand.
When to use it
- During long work, keep context usage and rate limits in view instead of running
/statusrepeatedly. - When switching between worktree or branch sessions, add the git branch and session ID to tell them apart.
- When your team often toggles
/fastor changes models, add the model item so a switch is never missed.
Related commands and where they save
| Command | What it changes | config.toml key |
|---|---|---|
/statusline | TUI footer | tui.status_line |
/title | Terminal window or tab title (project, status, thread, branch, model, task progress) | tui.terminal_title (default ["spinner", "project"]) |
/theme | Syntax-highlighting theme | tui.theme |
/status | Prints the current session state once | Not saved |
Effects and persistence
Changes which footer items appear and in what order, and saves them to tui.status_line in config.toml; it does not change the model or permission policy.
The saved value applies to later launches as well. From 0.128.0 you can edit it during an active turn, so long work does not have to stop. Version changes are in the command history.
Cautions
- Item identifiers can be added or renamed between versions. Before adding them to shared team settings, confirm the same items appear in your installed picker.
- The footer only changes what is displayed. Use
/model,/permissions, or/usageto change the underlying settings. - If both user settings and a project
.codex/config.tomlset the value, check which one applies with/debug-config. - Too many items get cut off in narrow terminals. Pin only the information your team actually confuses.
Official sources
Complete command list · Verification scope · History for this command