Codex pricing: ChatGPT plans vs API
Codex comes with every ChatGPT plan and draws on one shared allowance. An API key swaps that allowance for pay-per-token billing.
You pay for OpenAI's Codex in one of two ways. You sign in with a ChatGPT account and use the allowance your plan includes, or you sign in with an API key and pay standard API rates per token. This guide compares the two, explains the limits, and shows what changes when you run several Codex agents at once. Prices are from OpenAI's Codex pricing page as of November 28, 2026. Check that page before you buy, because OpenAI changes plans often.
ChatGPT Plans
The table lists each plan’s monthly price and included Codex usage. Some plans also offer additional speed modes.
| Plan | Price, as of November 28, 2026 | Codex usage |
|---|---|---|
| Free | $0 per month | Lightweight access, no published numeric limit |
| Go | $8 per month | Lightweight access, no published numeric limit |
| Plus | $20 per month | 5 to 3,000 local messages per five-hour window, depending on the model. Weekly limits may apply. |
| Pro | $100, $200 or $500 per month | No five-hour limit at present. The $500 tier adds Ultrafast mode. |
| Business | $20 per user per month billed annually, or $25 billed monthly | Same as Plus, per seat |
| Enterprise and Edu | Contact sales | Flexible pricing has no fixed rate limit and scales with credits. Otherwise about the same per-seat limits as Plus. |
The spread of 5 to 3,000 messages is wide because a message is not a fixed unit. OpenAI says model choice, context size, reasoning, tool use and caching all change how much of the allowance one message uses. Local messages and cloud tasks share the same allowance, and a cloud task can use more of it than a local message.
Credits and Speed Modes
When you reach your plan's limit, Plus, Pro and Business users can buy credits to keep working. OpenAI prices credits per million input, cached input and output tokens. Input rates run from 2.5 to 312.5 credits per million tokens, depending on the model. OpenAI estimates a typical task at 2 to 15 credits. The page does not list a dollar price per credit, because the purchase price depends on your plan or agreement.
Speed modes trade allowance for latency. Fast mode uses 2 to 2.5 times the included usage of Standard. Ultrafast uses 6 to 8 times and is available on eligible Pro, Enterprise and Edu plans.
Codex CLI Pricing
The Codex CLI itself is free. It is open source under the Apache-2.0 license, and you install it with npm install -g @openai/codex or brew install --cask codex. What you pay for is the usage behind it, and that depends on how you sign in.
| Sign-in | Codex CLI cost, as of December 4, 2026 |
|---|---|
| ChatGPT Free or Go | Not listed. The pricing page offers these plans Codex only in the desktop app |
| ChatGPT Plus | $20 per month, from the plan's shared Codex allowance |
| ChatGPT Pro | $100, $200 or $500 per month, with no five-hour limit at present |
| ChatGPT Business | $20 per user per month billed annually, or $25 billed monthly |
| API key | Standard OpenAI API rates per token, with no cloud features |
On a ChatGPT plan, CLI sessions draw on the same allowance as Codex on the web, in the IDE extension and on iOS. A CLI session does not get a separate budget. Other tools can draw on that allowance too. Warp can sign in with ChatGPT and use your plan's Codex usage, as Warp pricing explains. Sources: the Codex pricing page and the Codex CLI repository.
API Key Billing
Sign in to Codex CLI with an API key and every request bills at standard OpenAI API rates instead of your ChatGPT allowance. You pay per token, with no five-hour window and no weekly cap beyond your API account's rate limits. Cloud features such as GitHub code review and the Slack integration are not included with API key sign-in.
Pick the API key when the work runs unattended, such as in CI, or when you want cost to track usage exactly. Pick a ChatGPT plan when you work interactively and want a fixed monthly bill. On a plan, a heavy day ends at the limit. On an API key, a heavy day ends in a bigger invoice.
Checking Your Usage
Run /status inside a Codex CLI session to see your remaining limits. The usage dashboard shows the same numbers in the browser. Check both before you start a long batch of tasks, so a limit does not stop an agent halfway through a change.
Running Several Agents in Parallel
Sessions on the same account share its usage allowance. On a plan with a five-hour limit, starting another session does not start a new window. Check /status before and after a typical batch to see how much of your allowance it uses. With API billing, track the tokens each batch consumes.
Give each agent its own working directory so one task cannot overwrite another task’s uncommitted edits. You can create Git worktrees yourself or run Codex in Treq workspaces. Treq launches your installed Codex CLI with the account or API key you already use.
Codex vs Claude Code Cost
Claude Code bills differently: it needs a paid Claude plan or a Console account, and the free Claude plan does not include it. Claude Code vs Codex CLI compares the two tools on pricing, sandboxing and CI use. Grok Build, formerly Cursor, meters agents against a weekly pool instead, as Cursor pricing explains.
Next Steps
- Parallel Coding Agents: the three ways parallel agents fail and how to avoid each one
- Best Coding Agent CLIs: how Codex CLI compares with other terminal agents
- Run Coding Agents in Git Worktrees: why each agent needs its own working directory