What is OpenAI Codex?
OpenAI's coding agent relaunched in 2025: CLI, IDE extension and cloud execution, not the old 2021 Codex model.
Codex today is OpenAI's agentic coding product, not the 2021 model of the same name: that first Codex, based on GPT-3 and used to power early versions of GitHub Copilot, was deprecated by OpenAI in 2023. The name was reused starting in 2025 for a family of models specialized in code generation (GPT-5-Codex, later GPT-5.1-Codex-Max, since replaced by general-purpose GPT-6 models) and for the product that exposes them: a terminal CLI, an IDE extension, a cloud execution environment for running tasks in the background, and an automated pull request review tool. Anyone who only remembers the 2021 Codex is thinking of a different product. The difference is not just naming: that first model was a completion engine embedded in third-party tools, while today's Codex is a standalone agentic product, built to work autonomously on long tasks rather than suggest individual lines of code while typing.
See also: CursorCursor is an AI-assisted code editor that proposes changes to code and calls for a careful assessment of privacy, administrative controls, and productivity.
What it does
The feature that sets Codex apart from other coding agents is its emphasis on cloud execution and long time horizons: a task can be delegated and keep running in a sandboxed environment for hours while the developer works on something else, instead of requiring a continuous interactive session. Compared to Cursor, which remains an editor built for real-time collaboration inside the IDE, and Claude Code, a terminal-based agent with an explicit planning mode before touching files, Codex leans more toward asynchronous automation: assign it, let it work, review the result (including through the built-in automated pull request review).
When to choose it, when not to
Codex makes sense for teams already inside the ChatGPT ecosystem (access is included in every ChatGPT plan, from Free to Enterprise, with no separate subscription) and for well-defined, long-horizon tasks that suit autonomous background execution, such as broad refactors or library migrations. It is a less natural choice for developers looking for a real-time pair-programming companion with line-by-line review, where Cursor or Claude Code remain more mature references. Either way, the same warning applies to all coding agents: the convenience of autonomous execution amplifies the risk of vibe coding, meaning changes generated and accepted without adequate human review, all the more so when the task has run for hours unsupervised.
Related terms
- CursorCursor is an AI-assisted code editor that proposes changes to code and calls for a careful assessment of privacy, administrative controls, and productivity.
- OpenAIOpenAI develops artificial intelligence models and products such as ChatGPT; buyers must assess them for response quality, data terms, and overall costs.
- Vibe codingVibe coding is building software by describing an outcome to AI and accepting the generated code without reading or reviewing it; risk depends on the use case.
- Agent harnessAn agent harness is the software scaffolding around an LLM that makes it an agent: the execution loop, the tools, the context and the limits you give it.
- opencodeopencode is an open source coding agent under the MIT license, born in the terminal, that edits repositories with models from dozens of providers or local ones.