Justin McKelvey

Justin McKelvey

Ran snowboard shops. Taught myself to code. Now I build AI that does real work.

• Vibe Code Rescue • 5 min read •

Is Codex Free? What Actually Costs Money (2026)

Quick Answer

The Codex CLI is free — open source, no license, no trial clock. The compute behind it is not. Every session burns model usage, billed one of two ways: bundled with ChatGPT Plus ($20/month, includes Codex credits that cover light-to-moderate daily use) or Pro ($200/month for heavy agentic work), or metered against an OpenAI API key at $5–$15/month light, $30–$60 moderate, $80–$250 full-time. If you already pay for ChatGPT Plus, Codex is included at the margin — that's the closest thing to free that exists here.

Verified August 2026 · Author: Justin McKelvey, fractional CTO & founder of Vibe Code Rescue, 15 years in software, 50+ products shipped

TL;DR: Free Harness, Metered Brain

"Is Codex free" has two honest answers, and which one applies depends on what you mean by Codex. The command-line tool — the thing you install — is free and open source on GitHub. Nobody will ever invoice you for the CLI. But the CLI is a harness: it orchestrates requests to OpenAI's models, and those tokens are always billed to something. A subscription's credit allowance, or an API key with a card attached. There is no third option, which means a genuinely $0 Codex workflow doesn't exist.

That's not a gotcha — it's the standard shape of the whole category now, and once you see it you can price any AI coding tool in about a minute: ignore the license, ask what one real task costs in usage.

What the Free Part Actually Covers

  • The CLI, fully — open source, inspectable, no feature-gated "community edition" games.
  • Installation and setup — you can have it on your machine in minutes without a card.
  • Nothing that touches a model — the first prompt you run needs a ChatGPT login or an API key behind it.

The practical consequence: if you already pay for ChatGPT Plus, you already have Codex. Plus at $20/month includes Codex credits, and for light-to-moderate daily use — an hour or two of real work — that allowance holds. No separate purchase, no new subscription. For the millions of people already paying for Plus, Codex arriving bundled is the closest thing to "free" this question has.

Where the Meter Starts Biting

Credits are a meter, and agentic work is the expensive unit on it. A quick "explain this function" sips; a long unsupervised run — "migrate this module, run the tests, fix what breaks" — gulps. Codex's superpower is precisely those long autonomous runs, which means the tool's best feature is also its most expensive one.

The crossover I see in practice lands around 4–5 hours of agentic work a day: that's where Plus limits start interrupting tasks mid-run, and you're choosing between watching API overage stack up in $10 increments or moving to ChatGPT Pro at $200/month. And here's the gap worth knowing before you commit: OpenAI has no middle tier. It's $20, then $200. Claude Code offers a $100 Max step in between, which is why a 3–4 hour/day user is arguably better priced on Claude — I ran that comparison properly in the full Codex pricing breakdown.

Update (September 2026): that gap has closed. OpenAI's Codex pricing page, read on September 8, 2026, lists Pro from $100/month (5x the Plus limits) alongside the $200 tier (20x), a Go plan at $8, and credits you can buy on Plus when you hit the wall instead of upgrading. What the wall actually is, a rolling five-hour allowance per model with a weekly cap that may apply, is in Codex usage limits explained.

The Pay-As-You-Go Route

Skip the subscription entirely and Codex bills against an OpenAI API key. From the tier math in the pricing guide: roughly $5–$15/month for about an hour a day, $30–$60 for 3–4 hours, $80–$250 for full-time agentic work. The API route makes sense at the edges — very light dabbling where $20/month would be wasted, or team setups where you want one billing surface. For everyone in the middle, the bundled subscription credits are simpler and usually cheaper.

How to Decide in One Afternoon

Don't price this from a blog post — including mine. Install the CLI (free), point it at your actual codebase, and give it one task you were dreading. Watch two numbers: how much of your Plus allowance the task consumed (that's your tier forecast), and how much of the diff you'd actually ship. The first number tells you whether you're a $20 user or a $200 one. The second tells you something more important.

Both numbers depend heavily on how you work it — scope, approval mode, and whether you delegate or supervise. If you want the allowance to stretch, start with how to use Codex.

The Part That Isn't on Any Pricing Page

Because here's what I owe you as the person who fixes these codebases for a living: the subscription is the cheapest line item in AI-assisted development. Codex's long unsupervised runs are genuinely impressive — and unreviewed output from them is exactly how projects end up in my rescue queue: apps that demo beautifully and are missing the boring 20% — authorization checks, input validation, webhook verification. Fixing that after launch runs $3,500–$15,000 on my real invoices. Against that, the difference between free, $20, and $200 is noise. The compounding version of this problem is what I call Vibe Debt, and "free" tools are where it usually starts, because free quietly encourages accepting more and reviewing less.

My Honest Recommendation

If you're Plus-subscribed already: use Codex today, pay nothing extra, and see whether your usage ever threatens the limits. If you're starting from zero: $20 Plus is the right first dollar, and don't pre-buy the $200 tier until the meter tells you you're that user. If you're comparing tools before committing, the three-way against Cursor and Claude Code is the comparison that actually settles it — and my six-month Codex review covers what the meter doesn't.

Whatever tier you land on: before real users or real money touch what Codex built, run it against my free 20-point vibe coding security checklist — the same audit I run on paid rescue work. Already live and getting a bad feeling? Book a strategy call and I'll give you a straight answer.

Update: the $200 Pro tier is open again

Update (September 20, 2026): OpenAI paused new sign-ups and upgrades to Pro 20x ($200/month) on September 10, 2026, after demand for GPT-6 Astra (launched September 3) outran capacity. September 29, 2026: the pause is over. New Pro 200 subscriptions are open again, OpenAI canceled the allowance cut it had planned on October 29, and Pro 500 ($500/month) now sits on top. Moving up from a free or Plus setup, I'd still try Pro at $100 before either.

Next step Get the free cost sheet →

Free Resource Justin McKelvey

What your AI stack actually costs

Prices changed 3x this year. The always-current cost sheet: sticker price vs what heavy use actually costs for Cursor, Claude, Replit, Lovable, Bolt & more.

Frequently Asked Questions

Is Codex free?
The Codex CLI itself is free — it's open source on GitHub, with no license fee and no trial period. What costs money is the model usage behind every session. You pay one of two ways: bundled with a ChatGPT subscription (Plus at $20/month includes Codex credits that cover light-to-moderate daily use; Pro at $200/month covers heavy agentic work), or pay-as-you-go against an OpenAI API key at roughly $5-$15/month for light use, $30-$60 moderate, and $80-$250 for full-time agentic work.
Can I use Codex without paying anything at all?
You can install it for free, but running it requires either a ChatGPT subscription or an API key with billing attached — so a genuinely $0 Codex workflow doesn't exist. The closest thing: if you already pay for ChatGPT Plus for other reasons, Codex is included at the margin with no separate purchase, which for a Plus subscriber makes it feel free for light work.
Is Codex free with ChatGPT Plus?
Included, yes — Plus at $20/month comes with Codex credits, and for an hour or two of daily use that allowance holds. It is not unlimited: the credits are the meter, and a long multi-file agent run consumes far more of them than a quick question. The crossover comes around 4-5 hours a day of agentic work, where Plus limits start interrupting tasks and ChatGPT Pro at $200/month becomes the honest tier.
Why did my Codex usage cost money if the CLI is open source?
Because the open-source part is the harness, not the intelligence. The CLI orchestrates requests to OpenAI's models, and those tokens are billed — against your subscription's credits or your API key. This is the same split across the whole category: free tool, metered model. Judge any 'free' AI coding tool by what one real task costs in usage, not by the license.
Is Codex cheaper than Claude Code or Cursor?
Update, October 16, 2026: new Cursor buyers now get The X Subscription instead of Pro (Plus $8 runs Grok models only; Premium $30 runs Claude and GPT, billed on top at API list prices), so the $20 Cursor Pro price here applies only to existing subscribers. Entry pricing has converged: ChatGPT Plus, Claude Pro, and Cursor Pro are all $20/month. The differences show up in the middle and at the top. Claude has a $100/month Max tier, and as of September 2026 OpenAI's Codex pricing page lists Pro from $100 (5x) as well as $200 (20x), so the two ladders now match at the middle rung; the older $20-then-$200 jump is gone. Copilot Pro at $10/month is the budget play if autocomplete is your main use. On raw API billing, Codex and Claude Code land in similar bands ($5-$250/month by workload).

More on Vibe Code Rescue

Claude Code Tutorial (2026): What to Learn, in What Order, and the Free Courses Worth Your Time

Anthropic's own free courses teach Claude Code in about 5 hours and 15 minutes across five of them. The courses are free, the tool isn't: you need Claude Pro or higher. Here's the order to take them in, the week of real work that goes in the middle, and the tutorial advice Anthropic now says to stop following.

7 min

What Is Prompt Injection? How It Hits the AI Feature You Added to Your Lovable or Cursor App

Prompt injection is when text your AI feature reads carries instructions the model follows instead of yours. OWASP ranks it the #1 risk for AI apps, and there's no full fix. Here's what it looks like in a founder's app, three real cases, and the fixes that limit the damage.

8 min

Is Supabase Secure? Yes, If RLS Is On: How to Check Yours in 5 Minutes (2026)

Supabase the platform is secure: SOC 2 Type 2, encrypted data, regular pen tests. Your app on Supabase is only as secure as its Row Level Security rules, and those are yours to set. Here's what Supabase covers, what you own, how RLS works in plain English, and a 5-minute check for a Lovable or Bolt app.

6 min

Supabase Anon Key vs Service Role Key (Now Publishable vs Secret): Which One Is Safe in Your Frontend?

The anon key (now called the publishable key) is meant to sit in your frontend. The service role key (now the secret key) bypasses every security rule in your database and must never leave your server. Here's the old-name to new-name map, where to find each one, and what to do if the wrong one leaked.

7 min
Justin McKelvey, Austin, TX

Written by

Justin McKelvey

I spent 12 years running snowboard and mountain-bike shops in Colorado, then taught myself to code. Since then: 50+ products shipped, Head of Product at a national sports platform, CTO at an AI startup. Now I put AI to work in real businesses in Austin, TX and remote, and write down what actually works.

Work with me

Want more help? Get the free AI stack cost sheet · Have your agent audit its own work