Justin McKelvey

Justin McKelvey

Fractional CTO · 15 years, 50+ products shipped

Vibe Code Rescue 4 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.

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.

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.

Next step Get the free repo audit →

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?
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 while OpenAI jumps straight from $20 to $200 — so a 3-4 hour/day user is arguably better priced on Claude. 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

Is Replit Worth It in 2026? Verdict by Who's Holding the Meter

Is Replit worth $25/month? Wrong number — the credit meter decides your real bill, and daily Agent builders land at $40-$80/month with $150+ months on record. Worth it for validating an idea? Emphatically yes. As your production home? Usually not. A segmented verdict with the real math, from someone who gets paid to rescue what AI builders ship.

5 min

Is Lovable Free? What the Free Plan Actually Covers (2026)

Lovable has a free tier — a small daily credit allowance and public projects. It's enough to build a prototype over a week of daily sessions and decide whether you like the tool. It is not enough to ship: no private projects, no custom domain, and the daily allowance ends any serious session by lunch. Here's the honest math.

4 min

Is Cursor Free? What the Hobby Tier Actually Gets You (2026)

Cursor has a free Hobby tier — genuinely free, genuinely an evaluation tier. It's enough to decide whether you like the editor and not enough to work in. Here's what free covers, how fast limited usage runs out under real work, and the honest entry price ($20 Pro) once you're actually building.

4 min

Is Base44 Free? What the Free Plan Actually Covers (2026)

Base44 has a Forever Free plan — 25 message credits, 100 integration credits, unlimited apps. That's enough to build one small working prototype, not enough to ship anything. Here's what the free tier really covers, how fast the credits burn, and the honest monthly number to budget when a prototype turns into a product.

3 min
Justin McKelvey, Fractional CTO and AI consultant in Austin, TX

Written by

Justin McKelvey

Fractional CTO & AI consultant in Austin, TX. 15 years building software, 50+ products shipped, $53M+ in client revenue generated. I help $1M–$50M founders ship production software and automate operations with AI — without hiring a full-time executive team.

Work with me

If this was useful, here are two ways I can help: