AI tools

OpenAI Codex review: the coding agent in CLI, cloud and IDE

Published Updated 7 min read

Read in : Français

Contents
  1. What is OpenAI Codex in 2026?
  2. What Codex does well
  3. A sandbox on by default
  4. The cloud for delegation
  5. AGENTS.md: instructions that travel with your project
  6. Automation with codex exec
  7. How much does OpenAI Codex cost?
  8. Strengths and weaknesses
  9. Strengths
  10. Weaknesses
  11. Is Codex right for you?
  12. Get started with the Codex CLI in five steps
  13. Frequently asked questions
  14. Frequently asked questions
  15. 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:

SurfaceWhat it isWhat it's for
Codex CLITerminal agent, open source under Apache-2.0Working on your local repo, scripts, CI
IDE extensionCodex panel in VS Code, Cursor or Windsurf; integrations in Xcode and JetBrainsFocused edits with the open file as context
Codex CloudTasks run in a remote environment, started from the web, desktop app or mobileDelegating 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:

  1. a global file at ~/.codex/AGENTS.md for your preferences;
  2. then the project's AGENTS.md files, from the root down to the current folder, with the closest one having the last word;
  3. an AGENTS.override.md temporarily 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:

PlanPriceWhat you get for Codex
Free$0A lightweight model in the desktop app, subject to rollout
Go$8/monthSame scope as Free, for light tasks
Plus$20/monthCodex on the web, CLI, IDE extension and iOS; automatic code review and Slack; extra credits available
ProFrom $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 monthlySecure workspace, SSO, no training on your data by default
Enterprise and EduContact salesAdvanced controls, audit logs, data residency
API keyPay per use at API ratesCLI, 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

Weaknesses

Is Codex right for you?

Get started with the Codex CLI in five steps

  1. Install the CLI:
# macOS / Linux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
# or with npm
npm install -g @openai/codex
  1. Move into your project folder and type codex. Choose "Sign in with ChatGPT".
  2. First message: "Tell me about this project".
  3. Create an AGENTS.md at the root (the template above).
  4. 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