OpenAI Codex today: what it is and what it costs
The short answer. As of 30 October 2026, "Codex" is no longer a model: it is a coding agent from OpenAI that reads your code, edits it, runs commands and reports back. It comes in six surfaces (the ChatGPT desktop and mobile apps, ChatGPT on the web, the CLI, an IDE extension and Codex Cloud) plus an SDK for driving it from code. You sign in with a ChatGPT account or use an API key. On the Plus plan ($20 a month) the documentation lists web, CLI, IDE and iOS; with an API key you pay per token but lose the cloud features. The CLI is open source under the Apache-2.0 licence. If you already live in the terminal and have a ChatGPT subscription, trying it costs an afternoon; if you work inside an editor and your team already uses Copilot or Cursor, the advantage is not automatic, and part 8 of this series tackles that with numbers.
Independence and method. I am not affiliated with OpenAI. Everything here comes from the official documentation and the repository, consulted on 30 October 2026; I did not run the commands in this session and I say so where it matters. Prices and limits change within weeks, so every number sits next to its source and date.
Why you need a map: the name "Codex" has had three lives
Search for "Codex" today and you find three different things under one name, and guides written in 2023 or 2025 describe products that are not today's. For the history I had to rely on secondary sources, because OpenAI's announcement pages were not reachable from my research tool (a 403 response): treat it as a reconstruction, not an official chronicle.
- 2021: the model. A GPT-3 variant specialised for code, offered in the API as its own family (
code-davinci-002,code-cushman-001). One blog gives 23 March 2023 as the retirement date, but I found no second source, so I write "in 2023" and stop there. If a tutorial asks you to call those names, it is obsolete. - 2025: the CLI and the cloud agent. Several secondary sources date the CLI to 16 April 2025 and Codex Cloud, as a research preview, to 16 May 2025. From then on "Codex" is an agent, not an autocompleter.
- Today: a family of surfaces. The same agent with several entry points, included in the ChatGPT subscription. This is what the current documentation describes.
One detail says a lot about the state of the product: the old developers.openai.com/codex page now answers with a permanent redirect (308) to learn.chatgpt.com/docs. The Codex documentation lives inside the ChatGPT one. If your bookmarks point to older developer pages, update them.
The six surfaces (plus one)
The documentation home page, under "Available on", lists: the ChatGPT desktop app, the mobile app, ChatGPT on the web, Codex CLI, the IDE extension and Codex Cloud. The SDK appears separately, under "Build with Codex", next to the App Server, the GitHub Action and non-interactive mode. In practice it helps to think in terms of where the work runs:
| Surface | Where it runs | When it makes sense |
|---|---|---|
| CLI | On your computer, in the project folder | You work in a terminal and want to see and stop every command |
| IDE extension | On your computer, inside the editor | You want to stay in the editor |
| Desktop / mobile / web apps | Local (desktop) or remote, depending on mode | More descriptive tasks, projects, reviewing results |
| Codex Cloud | In a remote environment, one workspace per task | Long or parallel jobs you do not want on your laptop |
| SDK, non-interactive mode, GitHub Action | Wherever you launch them (scripts, CI) | Repeatable automation |
The core trade-off: local means control and fast feedback, but it occupies your machine and stops when you close it; cloud means the work continues "while your computer is asleep", as the documentation puts it, but you must set up an environment and accept that the code runs elsewhere. Parts 3 and 7 of the series go into each side.
Plans and prices as listed on 30 October 2026
Source: the Pricing page of the documentation. Prices in US dollars; check the page before deciding.
| Plan | Stated price | What the page says |
|---|---|---|
| Free | $0 a month | Quick tasks; Luna model at Standard speed in the desktop app, "subject to rollout" |
| Go | $8 a month | Lightweight tasks; same model as Free |
| Plus | $20 a month | Codex on web, CLI, IDE and iOS; cloud integrations; ChatGPT credits |
| Pro | From $100 a month | Tiers at $100, $200 or $500; Ultrafast mode on the $500 tier |
| Business | $20 per user a month (annual, 2+ users); $25 if monthly | Shared workspace, SAML SSO, MFA, credits |
| Enterprise and Edu | Contact sales | SCIM, EKM, RBAC, Compliance API, retention and data-residency controls |
| API key | Pay per use, per the API price list | Codex in CLI, SDK or IDE; no cloud features such as GitHub or Slack review |
Two things not to misread. First, the table does not say the CLI is available on Free and Go; for those plans it mentions only the desktop app. If you need the CLI, start from Plus or an API key. Second, usage limits are not in dollars but in "local messages per five-hour window", with weekly limits that may apply on top; part 5 breaks them down by model. Some third-party sites report different and even mutually contradictory figures (Pro at $100, $200 or $500, CLI access on Free yes or no): I chose to cite only the vendor's own page.
ChatGPT account or API key: the first choice you make
The repository README says authentication is either by ChatGPT sign-in (Plus, Pro, Business, Edu, Enterprise plans) or by an API key, which requires extra setup. The practical consequences:
- ChatGPT sign-in. Predictable cost (a subscription), quotas in five-hour windows, access to cloud features. The risk is the quota: when it runs out you wait or buy credits.
- API key. You pay exactly what you consume, no windows, but no cloud and no automatic ceiling: a long session on an expensive model can surprise you on the invoice. In CI this is what the documentation recommends.
The discriminator is regularity: if you use the agent daily and for hours, the subscription is almost always more predictable; if you use it in bursts or in automation, the API key charges you only for the peaks, provided you set a spending limit on your account.
The state of the software, measured
The releases page of the openai/codex repository showed, on 30 October 2026, version 0.166.0 published on 29 October, preceded by 0.165.0 on 27 October. The notes for those two releases mention a built-in Google Cloud Vertex AI provider, the addition of the GPT-6.1 Terra model to the catalogues, and the commands codex queue --resume and codex doctor --network-only. The version number, still below 1.0 and shipping almost daily, tells you something: the command surface changes fast. That applies to the whole series: where I cite a flag, check it with codex --help before copying it into a script that must stay stable for months.
Models rotate too: the documentation lists recent retirements (GPT-5.4 and GPT-5.4-mini on 31 August 2026, a Codex-Spark model on 14 September 2026, GPT-5.5 on 14 October 2026 for ChatGPT sign-in). If a guide suggests a model name, check it against the Models page.
How this series is organised
Eight articles, meant to be read in order but usable on their own:
- This product map.
- Codex CLI: install and first task.
- Sandbox and approvals: how far to trust the agent.
- AGENTS.md and config.toml: stable rules.
- Models, reasoning and costs.
- codex exec and the SDK: the agent in CI.
- Cloud, subagents, skills and MCP.
- The honest comparison with Claude Code, Copilot and Cursor.
If you come from another tool, I have written about those too: the Claude Code workflow, the Cursor guide and the GitHub Copilot one.
When Codex is not the right choice
- You do not want the code to leave your machine. The model runs on the provider's servers, even when you use the CLI locally: the sandbox protects your filesystem, not the confidentiality of your prompts. For code under contractual constraints you need a Business or Enterprise plan and a careful read of the data terms, not a personal subscription.
- Your team is already standardised on another agent. The cost of switching (rules, habits, reviews) often exceeds the quality gap between tools, which depends heavily on the task.
- You want completion while you type. Tools built for the editor exist for that; an agent pays off where the task is delegable and verifiable with a test.
What I did not verify
I did not install or run version 0.166.0 for this series: I read the documentation and the repository. I did not measure speed, quality of the code produced or real quota consumption. When an article contains a quality comparison, it is a criterion for deciding and for measuring on your own code, not a result of mine. The Pricing page, moreover, at one point mentions "GPT-5.6 Sol" while elsewhere it says "GPT-6 Sol": an inconsistency in the source that I flag without resolving.
Sources (consulted 30 October 2026)
- Codex documentation, home page (surfaces, SDK, redirect from developers.openai.com/codex).
- Pricing (plans, limits, credits, retirement dates).
- Models (model retirements).
- openai/codex repository (Apache-2.0 licence, authentication) and releases (0.166.0 of 29 October 2026).
- History, secondary sources: aiwiki.ai on Codex CLI and kumestra.github.io.
Commenti
Caricamento commenti...
Sign in to comment