What Is OpenAI Codex? Surfaces and Their Uses

What OpenAI Codex is, how its CLI, IDE, cloud/web, and desktop surfaces differ, and how to choose a workflow without confusing local files with local-only processing.

Updated · Markdown version

OpenAI Codex is available through several documented surfaces: a local terminal CLI, IDE integrations, cloud/web work, and the ChatGPT desktop app. The supplied sources do not establish a separate Codex coding surface in the mobile app. Choose based on where the repository runs and where you want to review changes.

The surfaces and what each is for

Codex CLI is a terminal tool that works against your local repository and uses the tools already installed on your machine. Use it for interactive sessions in a shell, or call codex exec from scripts and CI pipelines. The docs describe it as a local tool, so it reads and writes files on the machine where it runs.

Codex IDE extension puts Codex beside your editor. You can attach open files, selected code and recent chats to a request, review proposed edits in place, and hand longer work to Codex web. It supports VS Code and compatible editors such as Cursor and Windsurf. Xcode and JetBrains IDEs have their own Codex integrations, so do not assume the VS Code setup carries over.

Codex Cloud runs coding tasks in cloud environments, so the work does not depend on your laptop being open. From the CLI, codex cloud submits work to a configured environment and can apply the result to your local repository.

Desktop and web workflows are distinct from the local CLI. The authentication documentation covers Codex in the ChatGPT desktop app, while the CLI documentation describes Codex cloud and Codex web handoffs. Feature availability can depend on the surface, sign-in method, plan, and workspace permissions, so confirm those before relying on a particular workflow.

A worked example

Suppose you want Codex to fix a failing test in a repository you have cloned. With the CLI, you run Codex in the repo, it reads the code and test output locally, edits the files, and you review the diff in your working tree. With Codex Cloud, the same task runs in a cloud environment, and you apply the result afterward. The first path works against the repository on your local machine; the second runs the task in a configured cloud environment and lets you apply the result afterward. Local repository access does not mean all model processing or transmitted context remains on the device.

What Codex is not

Codex surfaces have different setup and context paths. The supplied authentication page does establish that the CLI and IDE extension share cached login details, but it does not establish that every surface shares all configuration. Codex is also not a replacement for review: inspect the resulting diff and test it before merging changes from local, scripted, or cloud work.

Install the CLI

Checked 2026-11-25, the README lists npm install -g @openai/codex, brew install --cask codex, a curl installer for macOS and Linux, and a PowerShell installer for Windows. Check the official repository for current commands because installation methods can change.

Pitfalls

  • Expecting cloud tasks to edit your local files directly. Cloud results come back as a result you apply. Notice this when your working tree does not change; run codex cloud or review the task output to apply it.
  • Assuming project instructions already exist. The CLI page says /init creates an AGENTS.md starting file. If the project has no applicable AGENTS.md, run /init, then review and edit the generated instructions. The supplied excerpt does not establish that the repository root is the only possible instruction location.
  • Treating every IDE the same. VS Code, Cursor and Windsurf are covered by the extension; Xcode and JetBrains use their own integrations. Confirm your editor is on the supported list before troubleshooting.
  • Running `codex exec` in CI without a review step. Unattended output can include unwanted changes. Add a diff check or a required review before merging.
  • Mixing up the surfaces when something breaks. A problem in the IDE may come from the CLI's configuration or from the cloud environment. Reproduce the task on one surface first.

When to use a skill instead

A one-time edit can use a plain request. For repeated instructions, agent-instruction-files provides guidance for drafting instruction files, but its stored record contains no efficacy verdict and only a narrow Claude Code routing probe. coding-agent-guardrails packages a pre-action checklist; its 2026-11-23 measured record reported NO_LIFT and two harmed tasks. Skills guide agent behavior rather than externally enforcing rules, so keep permission controls, diff review, and tests in the workflow.

FAQ

Does Codex have skills? The Codex docs describe skills as packaged, repeatable instructions and list them under foundations and extension topics. Plugins can connect Codex to team tools and data.

How do I create an AGENTS.md for Codex? Run /init in the CLI, which creates an AGENTS.md file with instructions for Codex. Edit it so it holds only rules you have confirmed for your project.

What is the simplest way to install Codex CLI? Use npm install -g @openai/codex or brew install --cask codex. On macOS or Linux, the curl installer in the README also works. Check the repository for current commands, since they can change.

Platform Score is our assessment under a published method. It is not a safety guarantee.

Terms this guide uses

This item is a worked example in the AI glossary for:

Next steps

  1. Install Codex CLI and Sign In Read next.
  2. Codex Skills Explained: Locations and AGENTS.md Differences Read next.
  3. Codex compatibility Install evidence per tool.
  4. All guides by topic Browse everything.

Sources