Skip to content

Guide AI & Tech News

Codex Pricing: Is Codex Free, Which ChatGPT Plan You Need, and What Happens at the Limit

Is Codex free? What OpenAI's coding agent costs on each ChatGPT plan, how many messages you get every 5 hours, and what to do when you hit the limit.

Paper price tags for Codex on each ChatGPT plan: Free $0, Go $8, Plus $20 with 15-160 messages per 5 hours, Pro $100+
On this page 9 sections
  1. Codex pricing at a glance
  2. Is Codex free?
  3. How many Codex messages do you get?
  4. Why is the range so wide?
  5. When does the Codex limit reset?
  6. How to check your Codex usage
  7. What happens when you hit the Codex limit?
  8. Which ChatGPT plan should you get for Codex?
  9. Quick answers

Codex is OpenAI's coding agent. You tell it what you want, and it reads your code, makes the changes and runs the commands for you. People keep asking two things about it: what does it cost, and why did it stop working halfway through my afternoon?

Here's the short answer. Codex doesn't have its own price tag. It comes with your ChatGPT plan, and that includes the free one. What changes from plan to plan is how much you can use it before you hit a limit.

This guide covers what each plan costs, how much Codex you get, when the limit resets and what to do when you run out.

Prices and limits checked on December 1, 2026, on OpenAI's own pages.

Codex pricing at a glance

ChatGPT plan Price Codex you get
Free $0 Limited, with GPT-6 Luna in the desktop app (still rolling out)
Go $8 a month Light coding tasks, with GPT-6 Luna in the desktop app (still rolling out)
Plus $20 a month About 15 to 160 messages every 5 hours on GPT-6.1 Sol, on the web, CLI, IDE extension and iOS
Pro $100, $200 or $500 a month No 5-hour limit, but a weekly limit applies
Business $25 a seat a month, or $20 billed yearly (2 seats or more) The same as Plus for each seat
Enterprise and Edu Ask OpenAI's sales team Depends on the contract

In some countries OpenAI charges in local currency, so your checkout may show a different price.

Is Codex free?

Yes, up to a point. OpenAI now lists Codex on the Free and Go plans, but only with GPT-6 Luna, its lowest-priced model, and only in the Codex desktop app. It's also still rolling out, so you may not see it on your account yet.

OpenAI calls the Free version "limited" and doesn't say how many messages you get. It's fine for trying Codex out or fixing a small bug. For daily work on a real project, you'll want Plus or higher, which also brings Codex to the web, the terminal (CLI), your code editor and the iPhone app.

How many Codex messages do you get?

OpenAI publishes ranges for Plus and Business, counted every 5 hours:

  • GPT-6.1 Sol: 15 to 160 messages
  • GPT-6.2 Sol: 17 to 180 messages
  • GPT-6 Luna: 350 to 3,000 messages
  • GPT-6.2 Astra, the most expensive model to run: 6 to 50 messages

Pro has no 5-hour limit at all. It does have a weekly limit, but OpenAI doesn't publish it.

Want a number for the way you work? Our free Codex usage limit calculator estimates your messages every 5 hours and every month for each plan and model, and shows when you'll hit the limit at your pace.

Why is the range so wide?

Because Codex doesn't really count messages. It counts work. Think of it like a mobile data plan: one message can be a quick text or a long video call.

These things make each message "heavier":

  • A big project. Codex reads more of your code to understand it.
  • A long session. Codex rereads the conversation so far with each new message.
  • Extra context. A long AGENTS.md file and every connected tool (MCP server) add to every message.
  • A bigger model or more reasoning. GPT-6.2 Astra uses your allowance much faster than GPT-6 Luna.
  • Cloud tasks. These can use more than tasks that run on your own computer.
  • Speed. Fast mode uses 2 to 2.5 times the normal amount. Ultrafast, on the $500 Pro plan, uses 6 to 8 times.

So "15 to 160" isn't vague on purpose. Fifteen is a heavy day on a large codebase. One hundred and sixty is a string of small, quick fixes.

When does the Codex limit reset?

Codex has two limits:

  1. A 5-hour limit on Plus, Business and the other plans with fixed limits. When you hit it, you wait until that window resets.
  2. A weekly limit, which can apply on every plan, including Pro.

OpenAI doesn't give a single reset time for everyone. Your own usage page shows exactly when each of your limits resets.

How to check your Codex usage

  • In the browser: open Codex settings and go to Usage (chatgpt.com/codex/settings/usage). It shows what you've used and your reset times.
  • In the terminal: type /status during a Codex CLI session.

OpenAI suggests checking every week or two. It helps you spot a heavy week before the limit stops you on a deadline.

What happens when you hit the Codex limit?

If you hit the limit in the middle of a task, Codex lets that turn finish, within fair use. After that, you have four choices:

  1. Wait. Your usage page shows when the limit resets.
  2. Buy credits. On Plus and Pro, an "add credits" button appears when you hit the limit. You can also buy them under Settings > Usage. Your plan's own allowance is always used first, then credits. A typical task on GPT-6.2 Sol uses about 2 to 15 credits. Credits expire 12 months after you buy them, and the price shows at checkout.
  3. Use an API key. You can keep working in the CLI or your editor with an OpenAI API key, paying normal API prices instead of using your plan.
  4. Upgrade. Pro removes the 5-hour limit.

Free and Go users can buy credits only if OpenAI has turned the option on for their account.

Which ChatGPT plan should you get for Codex?

  • Just curious? Start with Free and see if Codex suits you.
  • Coding a few evenings a week? Plus at $20 is enough for most people. Use GPT-6.1 Sol or GPT-6 Luna for everyday tasks and save Astra for hard problems.
  • Hitting the Plus limit now and then? Buy credits for those days instead of upgrading.
  • Hitting it most days? Pro removes the 5-hour wait, which matters when Codex is part of your job.
  • A team? Business gives each person their own Plus-level allowance and one bill.

Also using Claude Code? Its limits work differently. Here's what happens when Claude's usage limit is reached and when it resets.

Quick poll

Which ChatGPT plan do you use Codex on?

Tap an answer to see how other readers voted.

Quick answers

Is Codex free? Yes, with limits. Free and Go include Codex with GPT-6 Luna in the desktop app, as OpenAI rolls it out. For regular use you need Plus ($20 a month) or higher.

How much does Codex cost? Nothing extra. It comes with ChatGPT: Free, Go ($8), Plus ($20), Pro ($100, $200 or $500 a month) or Business ($25 a seat a month).

Is Codex included in ChatGPT Plus? Yes. Plus gives about 15 to 160 GPT-6.1 Sol messages every 5 hours, on the web, CLI, IDE extension and iOS.

Does Codex have a weekly limit? It can. OpenAI says weekly limits may apply on top of the 5-hour limit, even on Pro.

When does my Codex limit reset? Check the Usage page in Codex settings or type /status in the CLI. Both show your own reset times.

Can I use Codex with an API key? Yes, in the CLI, SDK and IDE extension. You pay normal API prices, and cloud features aren't included.

How many credits does a Codex task use? OpenAI says a typical GPT-6.2 Sol task uses about 2 to 15 credits. Bigger models and longer tasks use more.

OpenAI changes these plans and limits often. Check its pricing page before you buy, especially for team plans.

Free calculatorCodex Usage Limit Calculator Open it

Sources

The facts in this guide were checked against these sources.

  1. OpenAI: Codex pricing and usage limits learn.chatgpt.com
  2. OpenAI: ChatGPT pricing chatgpt.com
  3. OpenAI Help: Using credits for flexible usage help.openai.com
  4. OpenAI Help: Codex rate card (credits per task) help.openai.com
  5. OpenAI Help: GPT-6 in ChatGPT help.openai.com
  6. OpenAI API pricing developers.openai.com

Keep reading

Tools for this guide

Get new guides and tools by email

Security alerts, AI explainers, tax rule changes and new free tools, in one short email. No spam.