How to check context usage in Codex?

To check context usage in Codex, type /status in the Codex CLI; OpenAI’s command reference says it shows the chat ID, context usage and rate limits.

As of December 4, 2026, OpenAI’s Codex documentation describes these options:

  • /status: reports the active model, approval policy, writable roots and current token usage. In Codex CLI 0.174.0, released December 4, 2026, /status opens a tabbed report with live usage, rate limits and the chat’s confirmed permissions, and you can copy a single field or the whole report.
  • /statusline: opens a picker to add items such as context stats, token counters and rate limits to the footer. The choice is saved to tui.status_line in config.toml.
  • /compact: after a long exchange, confirm the prompt and Codex replaces earlier turns with a concise summary to free context.
  • /usage: shows account token activity, such as /usage daily or /usage weekly, rather than the current chat’s context.

Related: What is the Codex context window?, How to change the model in Codex? and How to check context usage in Claude Code?

Source: ChatGPT Learn, Codex developer commands; ChatGPT and Codex changelog (Codex CLI 0.174.0)

Image: ChatGPT logo by OpenAI, public domain (PD shape), via Wikimedia Commons, placed on a white background and resized. Codex and ChatGPT are trademarks of OpenAI. FreeAnswers is not affiliated with or endorsed by OpenAI.



Related answers

Leave a Comment