Learn
Is Codex Free? ChatGPT Plans, CLI Costs, and API Billing
Codex can be free for limited quick tasks, but serious use depends on ChatGPT plan limits, credits, team seats, or API token billing.
Clarify the spend threshold before you commit. Use this page when the core product is familiar and the real question is whether to stay free, upgrade, or switch pricing tracks.
Editorial guide
Guide
Start with the spend threshold and the conditions that change the pricing decision.
Short answer: Codex can be free for limited use, but the free path is not the same as unlimited Codex work. OpenAI currently lists Codex access in ChatGPT Free and Go for a limited time, while Plus, Pro, Business, Edu, and Enterprise plans include Codex with larger limits or workspace controls. Treat the free route as an access path for quick coding tasks, not a promise that every repository, review, cloud task, or CLI/API workflow costs $0.
The cost boundary depends on how you use it. ChatGPT plan access covers included Codex usage until plan limits apply; credits can extend work after included limits; and API-key usage is separate from ChatGPT subscriptions and follows standard OpenAI API token pricing. For exact limits, model rates, team seats, promo dates, or credit behavior, use Codex Pricing rather than this short answer page.
What free Codex access means
Free users can try Codex for quick coding tasks, but the useful buying question is not simply whether the entry price is zero. The better question is whether the free allowance is enough for your actual work. Small prompts, short scripts, and lightweight code explanations are the natural fit for free access. Larger repositories, long-running sessions, cloud tasks, code review, image generation, or repeated implementation work move you toward a paid plan, credits, or API billing.
OpenAI separates access from usage. A plan can include Codex while still having limits that vary by model, task size, local versus cloud execution, and how much context a task consumes. That is why a learner asking one-off questions can start differently from a developer using Codex every day inside a real repository.
Decision table
Reader | Can start free? | Main access path | Cost boundary to watch |
|---|---|---|---|
Free learner | Yes, for limited quick tasks | ChatGPT Free with limited-time Codex access | Recheck the pricing page if tasks require more context, repeated sessions, cloud features, or access after a promo window |
ChatGPT subscriber | Yes, if the plan includes Codex | ChatGPT Plus, Pro, Business, Edu, or Enterprise | Included usage is plan-limited; credits can extend usage after limits |
Solo developer | Usually via Plus or Pro | Codex web, CLI, IDE extension, iOS, and supported cloud or review workflows | Heavier local sessions, higher models, fast mode, or cloud work consume limits faster |
Team buyer | Through Business, Edu, or Enterprise | Workspace seats, admin controls, credits, and enterprise governance | Check standard versus usage-based seats, workspace credits, RBAC, audit, and data controls |
API or automation user | Not as a meaningful free route | API key in CLI, SDK, or IDE extension | Pay standard API token rates; cloud-based Codex features are not part of the API-key route |
Subscription, credits, and API are different budgets
For most individuals, Codex starts as a ChatGPT plan feature. Plus raises the ceiling over free access, Pro raises it further, and ChatGPT plan pages describe Codex as part of the broader subscription bundle. That makes a subscription the right starting point when a developer wants an interactive coding agent without creating a separate API automation budget.
Credits matter when included limits are not enough. OpenAI describes credits as the way to continue using Codex after included limits, with usage drawing down based on the models and features used. For teams, Business, Edu, and Enterprise workspaces may use flexible pricing and workspace credits instead of treating every developer as a simple fixed-seat subscription.
API-key use is the cleanest separate boundary. The Codex CLI can be authenticated with a ChatGPT account or an API key. When you use an API key, Codex can run in local developer or automation surfaces such as the CLI, SDK, or IDE extension, but OpenAI says API-key usage pays only for the tokens Codex uses and does not include cloud-based Codex features such as GitHub code review or Slack integration.
When to check the full Codex pricing page
Open the full Codex Pricing page before paying, upgrading, or standardizing a team. This short guide answers the free-versus-paid boundary; the pricing page should own the exact plan matrix, current included limits, available models, credit rates, and any temporary usage promotions.
You should also check the pricing page when your work changes shape. A solo developer moving from quick local fixes into long refactors, an engineering team adding automatic code review, or an automation user moving Codex into CI all cross different billing boundaries and should not rely on the free-access answer alone. The same product name can mean a ChatGPT plan allowance, workspace credits, or API token usage depending on the route.
For product fit after the cost answer, read Codex Review. For workflow alternatives, compare Codex vs GitHub Copilot, Codex vs Cursor, and Codex vs Windsurf. If the pricing or access boundary is wrong for your team, use Codex Alternatives to pick a different route.
FAQ
Common questions
Is Codex free?
Yes, for limited quick tasks. OpenAI currently lists Codex access in ChatGPT Free and Go for a limited time, and the Codex pricing page includes a Free route. Do not treat that as unlimited free Codex work for larger repositories, reviews, cloud tasks, or API-key automation.
Does Codex require ChatGPT Plus or Pro?
No. Plus and Pro are not the only ways to access Codex. OpenAI lists Codex across Free, Go, Plus, Pro, Business, Edu, and Enterprise routes, but Free and Go access is described as limited-time access and serious usage usually moves toward paid plans, credits, or API billing.
Is Codex included with ChatGPT?
Yes. OpenAI says Codex is included with ChatGPT Plus, Pro, Business, and Enterprise/Edu plans, and currently lists limited-time access on Free and Go. The amount of usable Codex work still depends on plan limits, task size, model choice, and whether the work uses cloud features.
Does Codex CLI cost extra?
The CLI is not a separate subscription by itself. The first-run choice is the billing boundary: sign in with a ChatGPT account to use plan-based access, or authenticate with an API key and pay standard API token rates for supported local use.
Is Codex priced per task, subscription, or API usage?
It can be all three depending on route. ChatGPT users start from subscription plan access and included limits, credits can extend usage after limits, and API-key use is charged by standard OpenAI API token pricing. Some legacy or enterprise accounting may also use rate-card language.
What should teams check before adopting Codex?
Teams should check whether they need Business Codex, Business ChatGPT and Codex, Edu, or Enterprise; whether standard or usage-based Codex seats apply; who can approve repository access; whether credits are shared at the workspace level; and whether API-key automation needs a separate budget.
Next steps
Take the next buying step
Use these next pages to confirm the plan, tool, or alternate route that fits once the spend boundary is clear.