Guide · Codex statusline

Codex Statusline: All 33 Items and How to Set Them

You want the bottom of the Codex CLI to show something useful while you work: how much of your five-hour window is left, how full the context is, which branch you’re on. That line is the Codex statusline, and you set it by typing /statusline in a running session, ticking items with Space and pressing Enter.

Codex 0.171.0, released November 20, 2026, added a second way in: a custom status line drawn by a small MCP server, still behind an experimental switch. We installed 0.171.0 on November 22, tried the picker, the config file and the one-session command in a real session, and took the full list of 33 items from Codex’s own source for that release.

ContextBolt makes Context Board, whose AI usage widget shows the same Codex limits with their reset times, so weigh the bias.

Quick answer
  • Set it: type /statusline, tick items with Space, move them with the left and right arrows, then press Enter. Codex saves the list to tui.status_line in ~/.codex/config.toml. Escape discards it.
  • Defaults: with nothing set, the footer shows model-with-reasoning, current-dir and thread-name.
  • For your limits: add five-hour-limit, weekly-limit and context-remaining. They show the percentage left, not when it resets.
  • Custom line, new in 0.171.0: tick Custom status line in /experimental, restart Codex, then choose Create a custom status line in /statusline.
  • Both agents at once: a status line covers one Codex session. Context Board shows Codex and Claude Code limits, with reset times, on one screen.

How to set up the Codex statusline

  1. Open the picker. In a running Codex CLI session, type /statusline and press Enter.
  2. Tick what you want. Move with the up and down arrows and press Space to tick or untick an item. Start typing to filter the list.
  3. Put them in order. Press the left or right arrow to move the highlighted item along the line.
  4. Check the preview. The line under the list shows your footer as it will look.
  5. Save. Press Enter. Escape closes the picker and keeps your old line.
The /statusline picker in Codex CLI 0.171.0, captured from a real session on November 22, 2026. The three ticked items are the defaults.

The defaults come from Codex’s config source: with no tui.status_line set, the footer shows model-with-reasoning, current-dir and thread-name. The thread name only appears once you name a thread. Use theme colors, ticked by default, colors each item from your /theme.

Every Codex statusline item (33 in 0.171.0)

These are the 33 items in the status line source for Codex 0.171.0, grouped by what they’re for. The descriptions follow Codex’s own picker text. Most items stay hidden while Codex has no value for them, so a git item never shows outside a repository.

ItemWhat it shows
Limits and context
five-hour-limitWhat’s left of your five-hour usage window, as a percentage
weekly-limitWhat’s left of your weekly usage limit
context-remainingPercentage of the context window left
context-usedPercentage of the context window used. The old name context-usage still works
context-window-sizeThe context window in tokens
used-tokensTotal tokens used this session, hidden at zero
total-input-tokensInput tokens used this session
total-output-tokensOutput tokens used this session
thread-creditsEstimated credits for this thread, Enterprise workspaces only
estimated-thread-costEstimated cost of this thread in USD, Enterprise workspaces only
Model
modelThe model name
model-with-reasoningThe model name with its reasoning level
reasoningThe reasoning level on its own
fast-modeThe processing tier the model is running on
providerThe model provider for this thread
profileThe config profile you started Codex with, hidden when there isn’t one
Where you are
current-dirThe working directory
project-nameThe project name
hostnameThe machine Codex runs on
Git
git-branchThe current branch
pull-request-numberThe open pull request for this branch
branch-changesCommitted changes against the default branch
Session
run-stateReady, Working or Thinking
approval-modeThe command approval mode
permissionsThe permission profile or sandbox mode
task-progressThe latest progress on Codex’s task checklist
thread-nameThe thread’s name, hidden until you name it
thread-titleThe thread’s title, or its ID when it has no name
thread-idThe thread’s full ID, once the thread starts
raw-outputWhether raw scrollback mode is on
daybreakWhether Daybreak is on for this thread
workspace-headlineThe workspace notification headline, Enterprise workspaces only
codex-versionThe Codex version you’re running

Show your usage limits in the status line

Tick five-hour-limit, weekly-limit and context-remaining. In our session on November 22, with git-branch on the end, the footer read:

GPT-6.2-Sol default · Context 100% left · 5h 100% left · weekly 99% left · main

The limit items filled in as soon as the session opened, before we sent a message. Both show what’s left, as a percentage. Neither says when the window resets. For that, type /status or open Usage in your ChatGPT settings, as our guide to checking Codex usage shows, and Codex limit reset explains why the weekly time can move.

When Codex has no figure for one of them, it leaves the item out rather than showing zero. How big each window is depends on your plan, as Codex usage limits lays out.

Set it in config.toml, or for one session

The picker writes to your config file. You can write it yourself instead:

[tui]
status_line = ["model-with-reasoning", "context-remaining", "five-hour-limit", "weekly-limit", "git-branch"]
status_line_use_colors = true

The order of the list is the order on screen. A project can carry its own line in .codex/config.toml; OpenAI’s config basics say Codex loads a project’s .codex/ layer only once you trust the project.

A typo doesn’t break anything. We put five-hour-limt in the list: Codex dropped it, drew the rest, and logged “Ignored invalid status line item” in the warnings you open with F2. If an item never appears, look there first.

For this session only, list the items after the command, per OpenAI’s slash command docs:

/statusline model-with-reasoning context-remaining five-hour-limit weekly-limit git-branch

That changes the footer at once and leaves config.toml alone. A misspelled item gets “Unknown status-line item” and the old line stays. /statusline --clear hides the line for the session. When we cleared it, the footer fell back to a plain “100% context left” on the right.

Custom status lines in Codex 0.171.0

Until November 20, the status line could only show Codex’s own items. A GitHub request for a custom one, opened in April, gathered 57 comments. OpenAI closed it on November 21, pointing to Codex CLI 0.171.0.

  1. Turn it on. Type /experimental, tick Custom status line, press Enter and restart Codex. The menu itself says “Restart the TUI, then use /statusline.”
  2. Open the picker. Type /statusline. Two new rows sit at the top.
  3. Pick a route. Create a custom status line: describe what you want, and Codex helps build it. Choose a status line provider: select one you have installed. With none installed, the list holds just Default status line.
With Custom status line on, two rows join the top of the picker. Codex CLI 0.171.0, November 22, 2026.

A provider is a small MCP server that runs on your computer. OpenAI’s provider guide registers one like this:

codex mcp add my-statusline -- python3 -u /absolute/path/to/statusline.py
  • What it gets: a snapshot of the thread on screen, with the model, the working directory and the usage data Codex has.
  • What it returns: plain text, or a small tree of rows and colored items.
  • How often: each read has one second to finish, and Codex reads again one second after each success. An error or a timeout stops it until you pick the provider again in /statusline. F2 shows the failed attempt.
  • Your old script: OpenAI says an existing status line script can be wrapped in a provider, and ships a Python starter and TypeScript types for the input and output.

We stopped short of building a provider, so the steps above are OpenAI’s. It’s an experiment, and the switch and the picker may change.

Codex statusline vs Claude Code’s

If you came from Claude Code, the two work differently. Claude Code runs any script you point it at. Codex picks from its own items, or, with the new switch, asks an MCP server. The Claude Code column follows Anthropic’s status line docs.

Codex CLI 0.171.0Claude Code
Set it up/statusline, then tick items/statusline plus a description; it writes a script for you
Saved intui.status_line in config.tomlstatusLine in settings.json, pointing at a command
What it can show33 built-in items, or anything a provider returns (experimental)Anything your script prints from the JSON it gets
Usage limitsFive-hour and weekly, as percentage leftFive-hour and seven-day, as percentage used, on Pro, Max and Ultra, after the first reply
Reset timesNot in the built-in itemsIn the JSON, for your script to show
RefreshA provider is read again one second after each readOn each update, plus a timer you can set from one second

For the Claude Code side of the same job, see how to check Claude Code usage.

Keep both agents’ limits in sight

A status line lives in one terminal and shows one session. Run Codex in two windows and Claude Code in a third, and you’re reading three footers, none of which says when a window resets.

Context Board’s AI usage widget puts both plans on one screen: rings for Codex and Claude Code that empty as you work, one for the five-hour window and one for the week, each with when it resets, such as “resets in 1h 42m.” Beside it, Agent activity lists every Codex and Claude Code session on your computer with its project, and whether it’s working, done or waiting for you.

Context Board's public demo with the AI usage widget: Codex has 88% of its current session left, resetting in 3h 41m, and 76% of its week, resetting Sunday at 9:32 PM, with Claude Code's two rings above

The AI usage widget on Context Board’s public demo, zoomed in. Every number is sample data.

The numbers come from the agents themselves, through a small program you set up once with one line from Connect. Link a second computer with the same line and its sessions join the board. Only names, states and percentages leave your computer, never what was said in a session.

Put your Codex limits on a board: free for 3 days, then $12 a month for all of Context Board.

Where next

Frequently asked questions

Something else on your mind? Get in touch.

How do I turn on the status line in Codex?

Type /statusline in a running Codex CLI session. Tick the items you want with Space, move them with the left and right arrows, and press Enter to save. Codex writes your choice to tui.status_line in ~/.codex/config.toml. Escape closes the picker without saving.

What can the Codex status line show?

Codex CLI 0.171.0 has 33 built-in items: the model and reasoning level, the folder, project and machine, the git branch, pull request and branch changes, context left or used, your five-hour and weekly limits, token counts, and session details such as the thread name and run state.

Can the Codex status line show when my limits reset?

Not with the built-in items. five-hour-limit and weekly-limit show the percentage left. For the reset time, type /status in the CLI or open Usage in your ChatGPT settings.

Can I run my own script in the Codex status line?

Since Codex CLI 0.171.0, released November 20, 2026, yes, as an experiment. Turn on Custom status line in /experimental, restart Codex, then use /statusline to create one or pick a provider. A provider is a small MCP server, and OpenAI says an existing script can be wrapped in one.

Why is an item missing from my Codex status line?

Most items are left out when Codex has no value for them, such as git-branch outside a repository or a limit Codex has no figure for. A misspelled item in config.toml is dropped too: press F2 in Codex to see the warning naming it.