OpenAI Codex review: the coding agent in CLI, cloud and IDE
Read in : Français

Contents
- What is OpenAI Codex in 2026?
- What Codex does well
- A sandbox on by default
- The cloud for delegation
- AGENTS.md: instructions that travel with your project
- Automation with codex exec
- How much does OpenAI Codex cost?
- Strengths and weaknesses
- Strengths
- Weaknesses
- Is Codex right for you?
- Get started with the Codex CLI in five steps
- Frequently asked questions
- Frequently asked questions
- Sources
OpenAI Codex is OpenAI's coding agent: it reads your repository, edits files, runs commands and can keep working in the cloud while your laptop sleeps. Our OpenAI Codex review in short: it is the most logical choice if you already pay for ChatGPT, with one consistent agent across terminal, editor and cloud. Here is what stands out from the documentation, the pricing and published feedback.
What is OpenAI Codex in 2026?
Codex is a coding agent, not the old completion model that once carried the same name. It comes in three main surfaces that share the same logic and the same ChatGPT account:
| Surface | What it is | What it's for |
|---|---|---|
| Codex CLI | Terminal agent, open source under Apache-2.0 | Working on your local repo, scripts, CI |
| IDE extension | Codex panel in VS Code, Cursor or Windsurf; integrations in Xcode and JetBrains | Focused edits with the open file as context |
| Codex Cloud | Tasks run in a remote environment, started from the web, desktop app or mobile | Delegating long tasks, in parallel, laptop closed |
On top of that come automatic code review on GitHub pull requests and a Slack integration, both reserved for ChatGPT plans (not API keys).
The GitHub repository for Codex describes the CLI as a "lightweight coding agent that runs in your terminal". Being open source matters: you can read what runs on your machine.
What Codex does well
A sandbox on by default
This is the most reassuring point for a vibe coder. The security docs say the agent runs with network access turned off by default, inside an OS-enforced sandbox typically limited to the current workspace. An approval policy decides when Codex must stop and ask you.
For a first read-only exploration:
codex --sandbox read-only --ask-for-approval on-request
Inside a session, the /permissions command shows and adjusts what Codex may do without asking.
The cloud for delegation
Codex Cloud runs a task in its own remote workspace, which keeps going while your computer is asleep, according to the docs. You can start from a connected GitHub or GitLab repository, or from a default environment with no repository. When it finishes, you review the changed files, ask for fixes, then open a pull request.
From the terminal, codex cloud lists your remote tasks, submits new ones and applies the result to your local repo.
AGENTS.md: instructions that travel with your project
Codex reads AGENTS.md files before doing any work:
- a global file at
~/.codex/AGENTS.mdfor your preferences; - then the project's
AGENTS.mdfiles, from the root down to the current folder, with the closest one having the last word; - an
AGENTS.override.mdtemporarily replaces the file at the same level.
By default, Codex stops adding files once the combined size reaches 32 KiB (the project_doc_max_bytes setting). Keep instructions short. Bonus: Cursor and Claude Code can read AGENTS.md too, so one file serves several agents. Our guide to CLAUDE.md, AGENTS.md and rules files covers the method.
A starter template:
# AGENTS.md
## Commands
- Install: npm install
- Check before handing back: npm run lint && npm test
## Rules
- Propose a plan before any change touching more than 2 files.
- Never put a secret key in front-end code.
- Ask me before adding a production dependency.
Automation with codex exec
The codex exec command runs Codex without the interactive interface, for a script or a CI pipeline. Progress streams to stderr and only the final message goes to stdout, so you can chain it with other tools:
codex exec "summarize the repository structure and list the top 5 risky areas"
How much does OpenAI Codex cost?
Codex comes with ChatGPT plans, which share their usage limits with ChatGPT's other agentic features. Prices checked on November 21, 2026 on the official Codex pricing page:
| Plan | Price | What you get for Codex |
|---|---|---|
| Free | $0 | A lightweight model in the desktop app, subject to rollout |
| Go | $8/month | Same scope as Free, for light tasks |
| Plus | $20/month | Codex on the web, CLI, IDE extension and iOS; automatic code review and Slack; extra credits available |
| Pro | From $100/month ($100, $200 or $500) | Everything in Plus with more usage; Ultrafast mode on the $500 tier |
| Business | $20 per user per month billed annually (2+ users), $25 billed monthly | Secure workspace, SSO, no training on your data by default |
| Enterprise and Edu | Contact sales | Advanced controls, audit logs, data residency |
| API key | Pay per use at API rates | CLI, SDK and IDE extension, no cloud features |
On limits, the page gives Plus users very wide ranges of local messages per five-hour window depending on the model, and stresses that these are not fixed caps. Cloud tasks generally use more than local messages. Pro plans had no five-hour limit when we checked, though weekly limits may apply.
To place this cost in a project's overall budget, read what a vibe-coded app really costs.
Strengths and weaknesses
Strengths
- One agent, three surfaces. Terminal, editor, cloud: same account, same AGENTS.md instructions.
- Open-source CLI. Readable code, Apache-2.0 licence.
- Sandbox by default. Network off and writes limited to the workspace, with no setup.
- Included in ChatGPT. If you already pay for Plus, trying it costs nothing extra.
- GitHub code review. An
@codex reviewcomment on a pull request triggers a review.
Weaknesses
- Not an all-in-one builder. No built-in hosting or database: you need to know how to deploy, for example with Vercel or Netlify.
- Hard-to-predict limits. Published ranges vary tenfold depending on model and task.
- A fast-moving offer. Model names, surfaces and plans change often: check the docs before committing to an annual plan.
- The vocabulary. Between ChatGPT, Codex, Codex Cloud and the desktop app, it takes a while to know where to start what.
Is Codex right for you?
- Already paying for ChatGPT Plus? Install the CLI or the extension and try Codex on a small project. Extra cost: zero.
- Complete beginner? An all-in-one builder like Lovable, or the tools in our Lovable vs Bolt vs Replit comparison, will feel more comfortable.
- Want a full editor with a built-in agent? See our Cursor review.
- Torn with Claude Code? Read our Claude Code guide, then the Cursor vs Claude Code vs Codex comparison.
- Want the whole landscape first? Start with the best vibe coding tools.
Get started with the Codex CLI in five steps
- Install the CLI:
# macOS / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# or with npm
npm install -g @openai/codex
- Move into your project folder and type
codex. Choose "Sign in with ChatGPT". - First message: "Tell me about this project".
- Create an
AGENTS.mdat the root (the template above). - Make a Git commit before and after each task, as the docs recommend, so you can roll back. If Git feels opaque, our Git guide for vibe coders eases you in.
Before shipping what Codex built, run through the security checklist.
Frequently asked questions
Frequently asked questions
Is OpenAI Codex free?
Codex is available on ChatGPT Free, but in a restricted way: a lightweight model in the desktop app, subject to rollout. To use the CLI, the IDE extension, the cloud and code review, you need at least ChatGPT Plus, at $20 a month as of November 21, 2026. The CLI itself is open source and free to install.
What is the difference between Codex CLI and Codex Cloud?
Codex CLI runs on your computer, in your local repository, inside a sandbox limited to the workspace. Codex Cloud runs the task in a remote OpenAI environment that keeps going while your computer sleeps. Use the CLI to iterate quickly and the cloud to delegate long tasks or run several in parallel.
Does Codex work in Cursor or VS Code?
Yes. The official extension installs in Visual Studio Code, Cursor and Windsurf, and Codex is also integrated into Xcode and JetBrains IDEs. It uses the open file and selection as context, shows changes next to the code and can send a longer task to Codex Cloud.
Can Codex access the internet or my personal files?
Not by default: the docs say the agent runs without network access and inside a sandbox typically limited to the current workspace. Codex asks for your approval when it wants to go beyond those limits, depending on the approval policy you chose. Read each request before approving, especially on a project that holds secrets.
Do I need an OpenAI API key to use Codex?
No. The recommended method is signing in with your ChatGPT account, and usage then counts against your plan. An API key is still an option for the CLI, the SDK and the IDE extension, billed at API rates, but without cloud features such as GitHub code review or the Slack integration.
Sources
- Codex CLI — ChatGPT docs (OpenAI)
- Codex IDE extension — ChatGPT docs (OpenAI)
- Codex Cloud — ChatGPT docs (OpenAI)
- Custom instructions with AGENTS.md — ChatGPT docs (OpenAI)
- Agent approvals & security — ChatGPT docs (OpenAI)
- Non-interactive mode — ChatGPT docs (OpenAI)
- Code review — ChatGPT docs (OpenAI)
- Pricing — ChatGPT docs (OpenAI)
- openai/codex — GitHub


