Justin McKelvey
Fractional CTO · 15 years, 50+ products shipped
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.
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.
Next step Get the free repo audit →
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
Vercel vs Netlify in 2026: Netlify Meters Usage, Vercel Meters People, and Only One Free Plan Allows a Business
Vercel charges $20 per developer and gives you generous usage. Netlify charges $20 flat for unlimited developers and gives you 3,000 credits to spend. Vercel's free plan bans commercial use; Netlify's free plan just runs out. Which one you want depends on whether your constraint is people or traffic — and on whether you're shipping Next.js.
Is Render Free? The 15-Minute Sleep, the 30-Day Database Clock, and the robots.txt Nobody Mentions (2026)
Yes — Render has a genuinely free tier with no time limit and no card. It is also engineered to be unusable for a business: services sleep after 15 idle minutes, the free Postgres deletes itself after 30 days, and while your site is asleep it serves Google a disallow-all robots.txt. What free covers, what it quietly costs, and when to pay the $7.
How to Vibe Code in 2026: The 7-Step Method I Hand Founders Before They Need a Rescue
Pick one tool, write one page before you prompt, build one feature at a time, and put a hard gate in front of payments and personal data. The seven steps I give founders, the three beginner mistakes that cause most of my rescue work, and the project ideas actually worth building first.
Is Vercel Free? What the Hobby Plan Covers, and the Clause That Ends It (2026)
Yes — Vercel's Hobby plan is free, generous, and permanent. The meter isn't bandwidth, it's a sentence in the fair-use policy: personal, non-commercial use only. The moment your app makes anyone money, you're on Pro at $20 a seat. What free covers, what pauses it, and when to leave.
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