Overview
OpenAI Codex is OpenAI's agentic coding system. Rather than completing single lines, it takes a delegated task — "fix this bug", "add this feature", "refactor this module" — reads the relevant parts of a repository, makes the edits across files, runs tests in an isolated sandbox, and returns a reviewable diff or pull request. It is available both as a cloud agent inside the ChatGPT ecosystem and as an open-source command-line tool (the Codex CLI) that brings the same capability into the local terminal.
Key Benefits
- Task delegation, not just autocomplete: Codex is designed to own a whole change end to end and hand back a diff for review.
- Sandboxed and parallel: each task runs in its own isolated environment, so several can run at once without interfering.
- Local or cloud: the open-source CLI runs on your machine with your own API key, while the cloud agent integrates with ChatGPT plans.
- Frontier models: it is powered by OpenAI's coding-tuned frontier models for strong real-world code accuracy.
Use Cases
- Delegated feature work — hand off a well-scoped feature or fix and review the resulting pull request.
- Test and refactor passes — ask Codex to add tests or refactor a module, then verify the diff.
- Terminal-based agentic coding — use the open-source CLI for local, command-line driven changes.
- Parallel chores — run multiple independent tasks across sandboxes simultaneously.