A practical statusline setup for OpenAI Codex CLI using Codex's built-in TUI footer and terminal title.
- Recommended
status_linelayout for model, directory, context usage, token usage, and rate limits - Recommended
terminal_titlelayout for project, branch, status, thread, and task progress - Minimal setup: copy the
[tui]block into~/.codex/config.toml - Reference
recommended-config.tomlyou can copy or adapt manually
[tui]
status_line = ["model-with-reasoning", "current-dir", "context-usage", "used-tokens", "five-hour-limit", "weekly-limit"]
terminal_title = ["project", "git-branch", "status", "thread", "task-progress"]This keeps the most useful live session state visible without trying to emulate Claude Code's custom multi-line shell-rendered statusline.
- Bash 4.0+
- Python 3
- Codex CLI
git clone https://github.com/matcluck/codex-statusline.git
cd codex-statuslineCopy the [tui] block from recommended-config.toml into ~/.codex/config.toml:
[tui]
status_line = ["model-with-reasoning", "current-dir", "context-usage", "used-tokens", "five-hour-limit", "weekly-limit"]
terminal_title = ["project", "git-branch", "status", "thread", "task-progress"]If you already have a [tui] section, merge these two keys into it rather than replacing unrelated settings.
recommended-config.tomlcontains the recommended[tui]block
Codex does not currently use the same external statusline command model as Claude Code. This repo configures Codex's native TUI fields to get a similarly useful footer and terminal title with the features Codex exposes today.
References:
- https://developers.openai.com/codex/config-basic
- https://developers.openai.com/codex/config-reference
MIT