Yes, Codex has a free tier, and that is exactly where it differs from Claude Code. OpenAI's help center says Codex is included in every ChatGPT plan, Free and Go among them: you sign in with your ChatGPT account in the desktop app, the Codex CLI, the IDE extension or Codex web. What Free and Go leave out is Codex Cloud, which runs tasks on OpenAI's computers, and OpenAI calls both plans “limited trial access to Codex”. Its pricing docs describe the free allowance as “GPT-6 Luna at Standard speed in the desktop app, subject to rollout”; regular use starts with Plus at $20 a month, or with an API key billed per token. Claude Code has no free tier: Claude's Free plan does not include it.
So the useful questions are how far the free tier reaches and what each step past it costs. This page answers both from OpenAI's own pricing page, puts every route in one table with what a real coding task costs on it, and ends with the per-token route for Codex CLI. On that route GPT-6 Luna, the Free plan's model, is $0.04 input and $0.20 output per million tokens on Kunavo: about $0.025 for a 20-step task.
What the free tier includes, and what it leaves out
This section comes from OpenAI's Codex pricing page and its help center article Using Codex with your ChatGPT plan, both read on November 24, 2026. The pricing page's Free card has one line, so the edges of the free tier show up in what OpenAI says about the other plans.
- Model: GPT-6 Luna at Standard speed. No other model is listed for Free or Go.
- Where it runs: wherever you sign in with ChatGPT. The help center lists the desktop app, the Codex CLI, the IDE extension and Codex web for every plan, Free and Go included; the pricing page's Free and Go cards name only the desktop app, which is where OpenAI describes the free allowance.
- Not on Free or Go: Codex Cloud, which runs tasks on OpenAI-managed computers. The help center offers it to eligible Plus, Pro, Business, Enterprise, Healthcare and Education accounts and says it is not included with Free or Go.
- Who has it: “subject to rollout” means it reaches accounts in stages, so yours may not have it yet.
- How much: no allowance is published for Free or Go. OpenAI's five-hour estimates cover Plus and Standard Business only (on Plus, 350–3,000 local GPT-6 Luna messages per five hours, which it calls estimates rather than fixed limits), and weekly limits may also apply. The Codex usage dashboard shows your own account's limits and reset times.
- Not included: image generation, which “isn't available on the Free plan”.
- Past the limit: buying credits is described for Plus and Pro, not for Free. What the page says of all users is that they “may also run extra local chats using an API key”, billed at standard API rates.
- For how long: OpenAI added Codex to Free and Go “for a limited time” when it launched the Codex app on February 2, 2026, and both plans still include it on November 24, 2026.
OpenAI's one-line pitch for each tier says the same in its own words: Free is to “explore Codex capabilities on quick coding tasks”, Go to “use Codex for lightweight coding tasks”, and Plus to “power a few focused coding sessions each week”. The free tier is for trying Codex; regular work is what the plans and the keys are priced for.
How to use Codex for free
- Install a Codex client. The ChatGPT desktop app has a Codex mode, and the Codex CLI and the IDE extension are free to install.
- Sign in with your ChatGPT account. A Free account works: OpenAI's help center says Codex is included across plans, Free and Go among them, and each client asks you to sign in with ChatGPT.
- Keep an eye on the allowance. The Codex usage dashboard shows your limits and reset times, and
/statusshows what is left during a CLI session. - When it runs out, wait for the reset, move to a paid plan, or point the CLI at an API key and pay per token. Cloud tasks need Plus or higher in any case.
Codex plans and prices
| Plan | Price | What the pricing page lists for Codex |
|---|---|---|
| Free | $0/month | GPT-6 Luna at Standard speed in the desktop app, subject to rollout |
| Go | $8/month | The same line as Free |
| Plus | $20/month | Codex on the web, in the CLI, in the IDE extension and on iOS; cloud integrations such as automatic code review and Slack; more usage through ChatGPT credits |
| Pro | From $100/month ($100, $200 or $500) | Everything in Plus; no five-hour limit for now; Ultrafast mode on the $500 tier |
| Business | $20 per user/month billed annually (2+ users), $25 billed monthly | ChatGPT and Codex across the desktop and mobile apps, admin controls, ChatGPT credits |
| Enterprise and Edu | Contact sales | Everything in Business, plus priority processing, enterprise security and controls, and data residency |
| API key | No plan: API pricing | Codex in the CLI, SDK or IDE extension; no cloud-based features such as GitHub code review or Slack |
US dollars, as listed on November 24, 2026. On the plans, usage runs in windows: OpenAI's estimates show “local messages per five-hour period for Plus and Standard Business”, “Pro plans currently have no five-hour limit”, and weekly limits may apply on top. Once the included limits are used, credits keep Plus and Pro working. When Codex stops mid-task, Codex usage limits works out which limit it hit and what fixes it.
Every route side by side, with Claude Code for comparison
One coding task here is 20 agentic steps of about 25,000 input and 1,200 output tokens each, the unit the other Codex and Claude Code cost pages on this site use, so the figures compare across them. A plan has no per-task price; it has a usage window instead.
| Route | Monthly fee | What you get | Usage cap | One 20-step task |
|---|---|---|---|---|
| Codex on ChatGPT Free | $0 | Desktop app, CLI, IDE extension or web; no Codex Cloud | Not published | No charge while the allowance lasts |
| Codex on ChatGPT Plus | $20 | Web, CLI, IDE extension and iOS, plus cloud features | Five-hour estimates and weekly limits; credits after | No charge until a limit |
| Codex on an OpenAI API key | None | CLI, SDK or IDE extension; no cloud features | Your API balance | GPT-6 Luna $0.062 · GPT-6 Sol $1.24 |
| Codex CLI on a Kunavo key | None; prepaid from $10 | Codex CLI over the Responses API | Your balance, plus an optional monthly limit per key | GPT-6 Luna $0.025 · GPT-6 Sol $0.50 |
| Claude Code, for comparison | No free plan; Pro is $20 | Pro, Max, Ultra, Team or Enterprise, or an API key | Five-hour session and weekly limits on Pro and Max | Claude Sonnet 5 $0.87 on Kunavo · $1.24 at Anthropic's list price |
Two things stand out. The model the free tier runs is cheap to buy outright as well: at Kunavo's rate a 20-step GPT-6 Luna task is $0.025, so the $10 minimum top-up covers roughly 400 of them. And what the free tier lacks is allowance more than reach: a Free account can sign in to the CLI and the IDE extension, but OpenAI publishes no allowance for it and leaves Codex Cloud out. For regular work in a terminal or an editor, the choice is between a plan and a key, and Codex pricing works out the break-even between them. The Claude Code row comes from claude.com/pricing and Anthropic's help article on Claude Code with Pro, Max or Ultra, both read on November 22, 2026.
What a Codex task costs on an API key
On a key the bill is tokens times rate, with no monthly fee. Kunavo's rates are read from its catalog when this page renders; OpenAI's come from its API pricing page, read on November 24, 2026.
| Model | Kunavo, per 1M in / out | OpenAI API, per 1M in / out | Task on Kunavo | Task at OpenAI's rate |
|---|---|---|---|---|
| GPT-6 Luna, the Free plan's model | $0.04 / $0.20 | $0.10 / $0.50 | $0.025 | $0.062 |
| GPT-6 Sol | $0.80 / $4.00 | $2.00 / $10.00 | $0.50 | $1.24 |
| GPT-5.6 Sol, the setup block's default | $2.00 / $12.00 | $4.00 / $20.00 promotional, at least through November 30, 2026; list $5.00 / $30.00 | $1.29 | $2.48 ($3.22 at list) |
A heavy month, five such tasks a day for 20 days, comes to $2.48 on GPT-6 Luna, $49.60 on GPT-6 Sol and $128.80 on GPT-5.6 Sol at Kunavo's rates, and a month you do not code costs nothing. Those figures move in both directions. Prompt caching lowers them: cached input on GPT-6 Sol bills at $0.08 per million instead of $0.80. Reasoning tokens raise them, because they bill as output, and Kunavo's GPT routes can report context the provider adds as input. Read the billed usage in your dashboard before trusting any estimate, this one included.
Running Codex CLI per token through Kunavo
Codex CLI accepts a custom provider only over the Responses API (wire_api has one legal value, "responses"), and Kunavo, an independent gateway rather than OpenAI, serves POST /v1/responses natively. Create an account, top up, make a key in the dashboard, and put this block, the one on Kunavo's Codex CLI setup page, in your Codex config:
model = "gpt-5-6-sol"
model_provider = "kunavo"
[model_providers.kunavo]
name = "Kunavo"
base_url = "https://api.kunavo.com/v1"
env_key = "KUNAVO_API_KEY" # the NAME of the variable, not the key
# wire_api defaults to "responses", which is the only supported valueenv_key holds the name of an environment variable, not the key, so the file is safe to commit. Export the key under that name and start Codex; -m picks the model for one session without touching the file:
export KUNAVO_API_KEY=sk-kn-... # the variable env_key names
codex # GPT-5.6 Sol, the block's default
codex -m gpt-6-luna # GPT-6 Luna, the Free plan's model, per token
codex -m gpt-6-sol # GPT-6 Sol, for heavier tasksThere is no monthly fee, top-ups start at $10, and the balance does not expire. Know what it does not buy: a Kunavo balance pays for these API calls only. It adds nothing to a ChatGPT plan's allowance, does not reset a plan's limit, and does not unlock Codex on the web or the cloud features. Capacity is shared, with no dedicated quota and no SLA; if you need guarantees, buy from OpenAI directly. Getting the CLI onto your machine first is covered in how to install Codex CLI.
Codex and Claude Code answer this question in opposite ways
Codex's cheapest door is a free plan. Claude Code has none: Claude's pricing page shows no Claude Code on Free, and access starts with Pro at $20 a month ($17 billed annually) or with an API key. Past that, Claude's plans meter usage much as ChatGPT's do, since Pro and Max each have “a five-hour session limit and a weekly limit”. On a key, a 20-step Claude Sonnet 5 task is $0.87 on Kunavo against $1.24 at Anthropic's list price.
The one way to try Claude Code without paying is a guest pass: an eligible Pro, Max or Ultra subscriber can send a seven-day Pro trial that includes Claude Code to someone new to Claude's paid plans. It asks for payment details at signup and becomes a paid Pro plan unless cancelled. The Claude side in full is on Is Claude Code free?
Frequently asked questions
Is Codex free?
Yes, as limited trial access. OpenAI's help center says Codex is included in every ChatGPT plan, Free and Go among them: you sign in with your ChatGPT account in the desktop app, the Codex CLI, the IDE extension or Codex web. Free and Go leave out Codex Cloud, and OpenAI publishes no allowance for them; its pricing docs describe the Free allowance as GPT-6 Luna at Standard speed in the desktop app, subject to rollout. Regular use starts with Plus at $20 a month, or with an API key billed per token.
Is Codex CLI free?
The CLI is free to install, and a ChatGPT Free or Go account can sign in to it: OpenAI's help center lists the CLI among the clients for every plan. Its use then counts against that plan's allowance, which OpenAI does not publish. With no plan, the CLI runs on an API key billed per token with no monthly fee. On Kunavo, GPT-6 Luna, the model the Free plan runs, is $0.04 input and $0.20 output per million tokens, about $0.025 for a 20-step coding task.
What are the Codex usage limits on the free plan?
OpenAI publishes no allowance for Free or Go. Its five-hour estimates cover Plus and Standard Business only — 350 to 3,000 local GPT-6 Luna messages per five hours on Plus, as an estimate rather than a fixed limit — and weekly limits may also apply. The Codex usage dashboard shows an account's current limits and reset times, and /status shows what remains during a Codex CLI session. Image generation is not available on the Free plan.
What is the difference between Codex on Free and on Plus?
Both sign in to the desktop app, the CLI, the IDE extension and Codex web. Free costs $0 with an allowance OpenAI does not publish, described as GPT-6 Luna at Standard speed in the desktop app. Plus costs $20 a month and adds Codex Cloud and cloud integrations such as automatic code review and Slack, published five-hour estimates, more models, and ChatGPT credits to keep working after a usage limit. Image generation is not available on Free.
Is Codex free in VS Code?
The Codex IDE extension is free to install, and OpenAI's help center says it works with most VS Code forks. Signed in with a ChatGPT Free or Go account, it draws on that plan's limited allowance; signed in with an API key, it bills per token at API prices and has no cloud features.
Is there a free trial of Codex?
Not a separate one. OpenAI's Codex pricing page calls the Free and Go plans themselves “limited trial access to Codex”. The Free plan costs nothing and Go costs $8 a month; neither includes Codex Cloud.
Will Codex stay free?
OpenAI has not given an end date. It added Codex to ChatGPT Free and Go “for a limited time” when it launched the Codex app on February 2, 2026, and its pricing page and help center still include both plans as of November 24, 2026.
How much does Codex cost on an API key?
An API key has no monthly fee; you pay per token. A 20-step coding task of about 25,000 input and 1,200 output tokens per step costs about $0.062 on GPT-6 Luna and $1.24 on GPT-6 Sol at OpenAI's API prices, and about $0.025 and $0.50 at Kunavo's rates. A month with no coding costs nothing, which is where a key beats a plan.
Is Claude Code free like Codex?
No. Claude's Free plan does not include Claude Code; it starts with Pro at $20 a month or with an API key billed per token. The one free way to try it is a guest pass: an eligible Pro, Max or Ultra subscriber can send a seven-day Pro trial, which includes Claude Code, to someone new to Claude's paid plans.
OpenAI's pages checked on November 24, 2026, Anthropic's on November 22, 2026. Your own account's dashboard is the authority on current limits and reset times.