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.
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.
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, 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
Antigravity vs Claude Code (2026): Google's $0 Agent IDE That Runs Claude vs the Terminal Agent Metered on Your Claude Plan
Antigravity vs Claude Code, as of September 2026: Google's Antigravity is generally available at $0 for individuals with unlimited Tab and Command and weekly rate limits on its agents, and its model menu includes Claude Sonnet and Opus 4.6. Claude Code is Anthropic's terminal agent, included on Pro from $17 a month, Max from $100, and Team seats, running the current Sonnet 5 and Opus 5 against a five-hour usage pool. Free last-generation Claude in an IDE vs current Claude in a terminal: the decision, the limits, and the math.
Codex Usage Limits Explained: The 5-Hour Window, the Weekly Cap, and What Actually Resets (2026)
Codex doesn't have a message count. It has a rolling five-hour allowance that varies by model, a weekly cap that may sit on top of it, and a set of behaviors that quietly burn it faster. Here's what OpenAI's own pricing page says the limits are on Plus, Pro 5x, Pro 20x, and Business as of September 2026, what happens when you hit one mid-task, and the three moves that stretch the allowance before you pay $100 more a month.
Emergent vs Lovable (2026): Agent-Built Apps vs Prompt-Built Apps, and Which One You Can Actually Ship
Emergent vs Lovable is a bet on two different workflows. Lovable is the prompt-to-React builder with a $25/month Pro tier and the biggest ecosystem in the category. Emergent runs autonomous agents that plan, build, and test full-stack apps on a credit meter ($20 Standard, $200 Pro). Real 2026 prices, the credit math, the ownership question, and who should pick which.
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.
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