What it is
Codex is OpenAI’s coding agent. In ChatGPT it runs tasks in isolated cloud sandboxes connected to your GitHub repos and returns pull requests; the open-source Codex CLI runs the same agent locally in your terminal, and an IDE extension brings it into VS Code.
- Parallel tasks in the cloud
- ChatGPT subscribers
- Open-source CLI agent
How to use OpenAI Codex
- 01
In ChatGPT, open Codex and connect your GitHub account.
- 02
Pick a repo, describe a task, and let it run in a sandbox; review the diff and open a PR.
- 03
Locally: npm i -g @openai/codex, then codex in your project.
- 04
Add an AGENTS.md so the agent knows how to build and test.
What people do with it
- Launch five bug fixes in parallel and review the PRs.
- Ask for an explanation of a codebase before touching it.
Pro tips
- Sandbox tasks run without internet by default — vendor dependencies in the repo.
Frequently asked questions
Codex vs Claude Code?
Very similar scope; Codex leans on cloud sandboxes, Claude Code on local terminal work. Many teams use both.



