Codex is a coding agent introduced by OpenAI in 2025. It can inspect a codebase, edit files and run tests, and is available through ChatGPT and command-line tools, among other interfaces. The command-line tool is called Codex CLI.
OpenAI also released a code-generation model called Codex in 2021. Distinct from the later coding agent, that model provided the foundation for early versions of GitHub Copilot.