Search topic
codex credits billing 2026
Practical outcome
How Codex's 2026 credit billing maps to tokens — and how to track what you actually spend.
Quick answer
npx whoburnedmore --local and multiply them by the rate card to see what a day of Codex costs.Under the earlier rate card, OpenAI quoted average credits per message or per cloud task. Since April 2, 2026, the Codex rate card prices the tokens a session actually moves: the instructions and context you send, the cached prefix that gets reused across turns, and the code and reasoning the model writes back. The included plan allowance still exists, with five-hour and weekly limits on Plus. Credits are what you buy to keep working past it. On Business and Enterprise plans with credit-based pricing, credits are also how the workspace is billed. This guide was checked against OpenAI's Codex pricing page on November 8, 2026.
What is Codex credit billing?
Credits are a prepaid unit. Every Codex exchange spends them in proportion to the tokens processed, at the rate for the model you picked. A refactor that pulls a large repository into context costs far more than a one-line fix, even though both are a single prompt. Who can use credits, as of November 8, 2026:
- 1
Plus and Pro
When you hit a Codex limit you may see an Add credits option. You can buy credits from ChatGPT Settings → Usage or from Usage & Billing in the Codex app. Purchased credits are valid for 12 months, and automatic reload with a monthly cap is available on some accounts. - 2
Business, Enterprise and Edu
Workspaces on credit-based or flexible pricing buy workspace credits under their plan or agreement. OpenAI keeps a separate “ChatGPT Rate Card” help article for these plans. - 3
Free and Go
These plans have lightweight Codex access on GPT-6 Luna. Credit purchases are currently offered only to a limited group of these accounts. - 4
API-key users
API-key users do not use credits at all. Codex bills them at standard API prices through the OpenAI Platform account.
The credit price is not published as a single number
OpenAI's pricing page lists credits per million tokens but not a dollar price per credit. It says prices “can vary by account, region, and plan.” Check the purchase screen for your price. One useful observation: every text model in the table below has a credit rate exactly 25 times its standard API dollar price. GPT-6.1 Sol input is $2.00 per 1M tokens on the API and 50 credits per 1M on the rate card. So relative costs between models carry over unchanged.How do Codex credits map to tokens?
A few modifiers sit on top. Fast mode uses 2× credits and Ultrafast uses 6× credits (on GPT-6 Astra and GPT-6.1 Sol). Image generation has its own rates. Desktop voice is billed at 1.25 credits per minute on Business, Edu and Enterprise credit billing. OpenAI's guide figure is that a typical GPT-5.6 Sol task uses about 2–15 credits.
How much does Codex cost per token in 2026?
Take your token counts for a period, multiply each class by its rate (per million), and add them up:
Worked example: a week moved 40M input tokens, 34M of them cached, plus 1.2M output, all on GPT-6.1 Sol. Fresh input is 6M × 50 = 300 credits. Cached input is 34M × 2.5 = 85 credits. Output is 1.2M × 250 = 300 credits. The total is 685 credits. The same week on GPT-6 Astra is 1,500 + 850 + 1,500 = 3,850 credits. On GPT-6 Luna it is 15 + 8.5 + 15 = 38.5 credits. On a plan, purchased credits are only spent after the included allowance runs out, so read this as what the week would cost in credits, not a guaranteed charge.
The three levers, in order of impact
Model choice changes the bill by up to 100×. Output is the dearest class, so asking for diffs instead of whole files and choosing lower reasoning effort help. Starting a fresh session when stale history dominates cuts the uncached input each turn re-sends.How is this different from the old plan allowance?
How do I track my Codex spend?
The ChatGPT usage dashboard (chatgpt.com/codex/settings/usage) is authoritative for limits, resets and credit balance. OpenAI suggests checking it every week or two. In the CLI, /usage shows account token activity. To see which days and models moved the meter, read the local rollout logs:
$ npx whoburnedmore --local Counting your token usage… Local dashboard: file:///Users/you/.config/whoburnedmore/dashboard.html Re-run `npx whoburnedmore --local` to refresh it. Nothing left your machine.
The dashboard splits tokens into input, output, cache-write and cache-read, by day and by model, with an API-equivalent dollar estimate. It does not show credits. Multiply the per-model token classes by the rate card above, or take the dollar estimate × 25 as a quick cross-check, since the rate card tracks API prices at that ratio. A spike in output means a generation-heavy day. A spike in fresh input means context kept being rebuilt from scratch.
Why your credit balance can fall faster than your local totals
Local rollouts only cover Codex CLI and IDE sessions that ran on this machine. Cloud tasks, GitHub code reviews, other devices, and other ChatGPT features that share the allowance (ChatGPT Work, and ChatGPT for Excel on Plus and Pro) all draw on the same allowance without appearing in~/.codex.What leaves your machine?
Nothing, with --local. If you sign in and submit, aggregates leave the machine: daily token counts, estimated cost and request counts per tool and model, plus usage metadata such as tool and MCP tool names with counts, skill names, peak-hour blocks, your timezone offset, a device-key hash and the CLI version. Prompts, file contents, file paths and code stay local. npx whoburnedmore --dry-run prints the exact payload without sending it.
Compare with the limits and cost guides
For how the five-hour and weekly limits work before credits kick in, see Codex usage limits. For API-key dollar math, see Codex CLI cost.token classes priced separately
credits per API dollar, listed text models
purchased credit validity
Bottom line: Codex credits are API token prices in a different unit. Pull your token mix with npx whoburnedmore --local, apply the rate card, and the credit meter stops being a surprise. 🔥
Sources checked November 8, 2026: Codex pricing, limits and credit rate card, Using credits for flexible usage (personal plans), ChatGPT rate card for Business and Enterprise, OpenAI API pricing.
Related guides
How to Check Codex CLI Usage and Token Cost
Codex shows the current limits; here's how to see your full token history and cost by day.
OpenAI Codex CLI Cost: Estimate and Track It
The token math behind Codex CLI pricing — plus how to track what you really spend.
Codex Usage Limits: 5-Hour and Weekly Caps
Where to check Codex's 5-hour and weekly limits—and what local token history cannot tell you.