How-toCodexcoding agentsusage
A plain textured rectangle with a trail of small particles flowing out of it and counted along a thin line

How to check your Codex usage, and what it costs in tokens

Where Codex shows your usage and limits, how the 5-hour window, weekly cap and credits work, and how to meter what Codex spends in tokens, energy and CO2e.

CBCory Bergh, CEO and co-founder, Crbon LabsPublished 7 September 2026Updated 9 September 20267 min read

In ChatGPT, open Settings and then Usage to see your Codex allowance and credit balance; in the Codex app it is under Usage and billing. Codex draws from a shared agentic allowance with a rolling five-hour window and a weekly cap, then from purchased credits. What OpenAI does not show is tokens. For that, meter Codex locally.

If you are reading this you have probably just hit a usage-limit notice and want to know how much is left and when it resets. The first half of this post answers that from OpenAI’s documentation. The second half covers what OpenAI’s meter leaves out, which is what a Codex session actually spends in tokens, energy and carbon.

Where to look

OpenAI shows the allowance in three places. In ChatGPT, Settings and then Usage shows the allowance your plan includes and any credit balance. In the Codex app, the same view is under Usage and billing. And when you hit a limit, the notice in Codex links straight to it. Members of workspaces on credit-based billing see a monthly Work and Codex allowance and their credit history under Settings and then Usage and billing in ChatGPT Desktop. Practitioners also report that the Codex command line can show the meters on its status line, which saves opening the page.

How the limits work

Codex has no limit of its own; it draws from the agentic usage allowance of your ChatGPT plan, shared with the other agentic features, and the allowance is metered in two units: local messages, for work on your machine, and cloud tasks, for work on OpenAI’s infrastructure. Two limits apply at once, a rolling five-hour window that spreads use across the day and a separate weekly cap above it, so you can exhaust the window with most of the week still in hand. Your plan’s included usage is spent first; after that, usage draws from credits you buy, which top up any supported feature on the account.

The size of the allowance depends on the plan and the model, the Pro tiers carry multiples of the Plus allowance, and OpenAI changes the numbers. In August 2026 it restored the five-hour window for Plus subscribers after a period without one, while leaving the Pro tiers exempt for the following months. Any table of message counts is out of date within weeks, so this post does not reproduce one; OpenAI’s help page has the current version.

What the meter does not tell you

A message or a task is not a fixed amount of work. A Codex task that reads a handful of files and edits one is a few thousand tokens; a task that reads a large repository and rewrites a module is tens of thousands. Two tasks count the same against your allowance and cost very different amounts of compute. And nothing in OpenAI’s meter says what any of it used in energy or emitted in carbon, which is the number a company reporting AI usage needs.

Counting the tokens yourself

The crbon CLI hooks Codex on your machine, alongside Claude Code, Gemini CLI, Cursor and OpenClaw, and records each session’s tokens per model from the agent’s own logs. It syncs on a schedule, and the dashboard shows the sessions per agent, per model and per week, with the cost, the energy and the CO₂e computed under methodology v1.2. Redaction runs before anything leaves the machine, and the metering needs only metadata. Your plan’s limits stay in OpenAI’s app; the CLI reports what you used, not what you have left.

What a Codex turn costs

Codex runs on OpenAI’s reasoning models, so the reasoning tier is the closer fit; the medium tier is shown for comparison. The figures are per turn, under methodology v1.2, with on-site water at Berkeley Lab’s 2023 US average of 0.36 litres per kilowatt-hour.

TurnTierSite energyOn-site waterCO₂e, full lifecycle
Small: 2,000 tokens in, 400 outMedium1.05 Wh0.38 mL0.51 g
Small: 2,000 tokens in, 400 outReasoning2.26 Wh0.81 mL1.01 g
Large: 8,000 tokens in, 1,200 outMedium3.93 Wh1.42 mL1.91 g
Large: 8,000 tokens in, 1,200 outReasoning8.08 Wh2.91 mL3.65 g

For scale, a chat query on the same factors is about 0.18 watt-hours, so a large Codex turn on a reasoning model is forty times a chat message. A developer running a hundred such turns a day spends about 0.8 kilowatt-hours and emits about 365 grams of CO₂e, a third of a kilogram, before the water behind the electricity is counted. Multiply that across a team and it becomes the figure a company is now being asked to report.

Keeping it down

The allowance and the footprint move together, because both are spent in tokens. Smaller contexts help most: point Codex at the files that matter rather than the whole repository, and split a large change into tasks that each read less. Reuse a session where the context is already loaded instead of starting cold. And use the reasoning-heavy modes for the work that needs them; a large turn on the reasoning tier costs twice a large turn on the medium tier for the same tokens. The energy calculator in our post on how much energy AI uses runs the same arithmetic for any turn size.

Sources

  1. 01
    OpenAI Help Center, Using Codex with your ChatGPT plan

    Which plans include Codex, the shared agentic allowance, the five-hour window and weekly limits, and what happens at the limit.

  2. 02
    OpenAI Help Center, Using credits for flexible usage in ChatGPT

    Plan usage is used first, then credits; the balance is under Settings and then Usage in ChatGPT, or Usage and billing in the Codex app.

  3. 03
    OpenAI Help Center, Reviewing Work and Codex usage in ChatGPT Desktop

    Where workspace members see their monthly Work and Codex allowance and credit history.

  4. 04
    9to5Mac, OpenAI restores 5-hour Codex and Work limits for ChatGPT Plus users (24 August 2026)

    The five-hour window returned for Plus from 25 August 2026; Pro tiers were exempt for the following months.

  5. 05
    Justin McKelvey, Codex usage limits: 5-hour window, weekly cap, what resets (2026)

    A practitioner’s guide to the three limits and where the analytics page lives.

  6. 06
    CrbonFree, crbon CLI

    Meters Codex, Claude Code, Gemini CLI, Cursor and OpenClaw from their own logs, per session, per model and per week.

Figures attributed to CrbonFree come from methodology v1.2, published in full with every factor and formula. Read the methodology.

About the author

Cory Bergh

Cory leads Crbon Labs, which originates its own climate projects and builds CrbonFree, the platform that measures the footprint of AI usage per token. He was previously VP of Technology and Innovation in the energy industry and holds a BComm, an MBA and the CFA.

Questions

Questions this post gets asked.

Short answers. The sources above and the methodology have the arithmetic.

Read the methodology
  • In ChatGPT, open Settings and then Usage to see your allowance and any credit balance; in the Codex app it is under Usage and billing. When you hit a limit, the usage-limit notice in Codex links to the same place. None of these show tokens; for tokens per session and per model, meter Codex locally with the crbon CLI.

  • Yes. Codex draws from the agentic usage allowance of your ChatGPT plan, with a rolling five-hour window and a separate weekly cap, and local messages and cloud tasks count against the same allowance. When the included usage runs out you wait for the reset or buy credits. The size of the allowance depends on the plan and the model, and OpenAI changes it; its help page has the current table.

  • Codex is OpenAI’s coding agent. It reads a repository, writes and edits code, runs tests and opens pull requests, either in the cloud from ChatGPT or locally through the Codex command line and IDE extensions, and it is included with ChatGPT plans that carry an agentic allowance.

  • ChatGPT answers in a conversation; Codex acts on a codebase. A Codex task can read thousands of tokens of files and produce a long change, so a single task is often ten to fifty times the tokens of a chat message, which is why Codex is metered in messages and tasks on a separate allowance and why its energy per turn is several times a chat query.

See your own number instead of ours.

However your team already runs AI, that is how you connect. Paste a read-only provider key, drop in an SDK, add the MCP server, install the CLI or switch on the browser extension, and the first measured tokens reach your dashboard within seconds.

Create your free account

Free plan · first tokens in seconds