OpenAI Codex Agents
What it is
Codex is OpenAI’s AI coding agent. It takes on software engineering work — writing features, answering questions about a codebase, fixing bugs, proposing pull requests — and does it in the cloud while you do something else. Each task runs in its own isolated cloud sandbox, preloaded with your repository, and Codex can read and edit files, run commands including test harnesses, linters and type checkers, and iterate on tests until they pass. A task typically takes between 1 and 30 minutes depending on complexity, and you can watch its progress in real time.
Codex comes in several forms that share one account: Codex in ChatGPT, Codex cloud, a Codex IDE extension, and Codex CLI, a lightweight open-source coding agent that runs in your terminal. OpenAI says Codex is included in a ChatGPT plan.
Who made it
Codex is made by OpenAI, the company behind ChatGPT. OpenAI launched Codex as a research preview in May 2025, and it is powered by the codex family of models, with codex-1 based on OpenAI’s o3 model and optimised for software engineering.
What it does
Codex handles the full arc of a coding task. You describe the work — a new feature, a bug, a refactor — and Codex plans it, edits the code, runs the tests, and shows you verifiable evidence of what it did through citations of terminal logs and test outputs. You can then review the results, ask for revisions, open a GitHub pull request, or integrate the changes into your local environment. It can run many agents in parallel, using computer and browser tools to verify work until your requirements are met, and you can follow progress, steer agents and review results in one place.
Codex also reviews code. It can automatically review pull requests, surface findings and answer questions about the changes, so a team can keep code moving while focusing human review where judgement matters most. It keeps working when you close your laptop, with reusable cloud environments for every repository, and you can pick up where you left off from another device.
How it works
In ChatGPT, you open Codex from the sidebar, type a coding task and click Code, or click Ask to ask a question about the codebase. Each task is processed independently in a separate, isolated environment preloaded with your code. Codex reads and edits files and runs commands, and you can configure the environment to match your real development environment as closely as possible. In the terminal, Codex CLI runs the same kind of agent locally, and in the editor, the IDE extension brings it into your workflow. Plugins let you connect tools and add specialised capabilities, giving Codex the context and access it needs to take action across your apps.
How to start
- Open the ChatGPT app and find Codex in the sidebar, or install Codex CLI in your terminal.
- Connect the repository you want Codex to work on, and check the environment matches your real setup.
- Add an AGENTS.md file to the repository with the project’s conventions, test commands and rules.
- Start with a small, well-defined task — a bug fix or a small feature — and click Code.
- Watch the run, read the terminal logs and test output it cites, and review the diff before accepting anything.
- Ask for a revision if the result is wrong, or open a pull request from the result for team review.
- Confirm current availability and limits on the official site — Codex rolled out to ChatGPT Pro, Enterprise, Business and then Plus users, and the exact access depends on your plan, so check the official docs.
Who it is for
Codex is for developers and engineering teams who want an agent to carry out coding tasks in parallel while they review the results. It suits teams with real repositories and test suites, where the agent’s work can be verified by tests, and solo developers who want to hand off well-defined tasks and keep moving on the next one.
Watch out for
Codex is a research preview that has changed quickly since launch, so behaviour, access and limits move — check the official docs for the current state. The agent works in an isolated sandbox, which is good for safety but means the environment must be configured to match your real one, or tests will pass in the sandbox and fail in production. Review every diff: an agent that writes plausible-looking code can still introduce subtle bugs, and test output is only as good as the tests themselves. And parallel agents multiply cost and review work — run a few at first and check the results before scaling up.
Source
Official site: Codex — OpenAI