Codex runs in three places that share one agent and one config.toml: the CLI in your terminal, the Codex app (the Codex view of the ChatGPT desktop app, on macOS and Windows, with a Linux preview), and the IDE extension for VS Code, Cursor, Windsurf, Xcode and JetBrains. Use the CLI for scripts and CI, the app for parallel worktree chats and scheduled tasks, and the extension when work starts from an open file.

All three are clients for the same agent and read the same config.toml (openai/codex README, Best practices).

Applies to: Codex CLI 0.172.0 (released November 24, 2026), Codex app 26.1120 (November 23, 2026) and OpenAI’s Codex documentation as of November 27, 2026. Last checked: November 27, 2026.

If you are new to Codex, start with What is Codex for install, sign-in and models. This page only covers how the three local surfaces differ and when to pick each.

On this page

The three surfaces at a glance

Codex CLI Codex in the ChatGPT desktop app Codex IDE extension
Where it runs Your terminal, in the directory you start it from Desktop app; Local and Worktree chats run on your computer, Cloud chats in a published cloud environment Sidebar of VS Code, Cursor, Windsurf, VS Code Insiders; Xcode and JetBrains IDEs have their own integrations
Operating systems macOS, Linux and Windows installers macOS and Windows; Linux in preview (Ubuntu, Debian, Fedora, Arch) VS Code-compatible and JetBrains integrations on macOS, Windows and Linux
What counts as the project The start directory, or --cd (-C) A local project with one or more folders; the primary folder drives AGENTS.md, skills and config.toml discovery The folder or workspace open in the editor
Strengths the docs name Scripts and CI with codex exec, local /review, codex resume, codex cloud, codex mcp Worktrees and Handoff, local environments with setup scripts and actions, Git diff pane, scheduled tasks Open files and selections as context, in-place diff review, delegating to the cloud and applying the result locally
Sign-in ChatGPT or API key ChatGPT or API key ChatGPT or API key (JetBrains also accepts a JetBrains AI subscription)
Settings ~/.codex/config.toml plus trusted project .codex/config.toml Same configuration layers; in-app controls for common settings Same config.toml for agent behavior; chatgpt.* editor settings for the extension itself

Sources: Codex CLI, ChatGPT desktop app for Linux, Projects and chats, Codex environments, Codex IDE extension, IDE extension (OpenAI Developers), Authentication, Developer settings.

What changed since October 11, 2026

Everything below comes from OpenAI’s ChatGPT & Codex changelog, checked on November 27, 2026.

Date Surface Change
Nov 10 App 26.1106 After a quit or crash, Codex resumes eligible local chats on reopen. The chat must still be interrupted, have been active in the past 24 hours and belong to the account you are signed in with.
Nov 13 CLI 0.168.0 and 0.169.0 Model providers can be browsed and a default chosen for new chats; features.tui_workspace shows a side conversation beside the main chat; the agent command center can search older tasks by name, prompt preview or working directory.
Nov 17 App A fork option in the title menu of local chats; in a Git project you can fork the chat into a new worktree (listed under the 26.1111 entry).
Nov 17 App and CLI GPT-6.2 Astra and GPT-6.2 Sol become available in Codex.
Nov 19 App 26.1117 A ZIP file opens in the file viewer, so you can browse folders and preview PDFs and images without extracting.
Nov 20 CLI 0.171.0 GPT-6.2 Sol and Astra are in the model catalogs with Sol as the default selection; the TUI workspace is on by default; codex exec --remote <ADDR> starts or resumes a non-interactive session on an existing app server; /rc and /remote manage remote control and show device pairing codes.
Nov 23 App 26.1120 CSV files open as a table preview, with View source to edit in the same tab.
Nov 24 CLI 0.172.0 Tab completes slash command arguments; optional stdio MCP servers with cached tool lists start on their first tool call by default; codex exec resume restores saved sandbox permissions, working directory and workspace roots unless you override them.

To pick a model from the terminal, the Models page shows codex --model gpt-6.2-sol for an interactive session and codex exec -m gpt-6.2-sol "Review the current changes" for a non-interactive run, and /model switches models inside a session.

What happened to the Codex app

The Codex app merged into the ChatGPT desktop app. OpenAI’s changelog entry for July 9, 2026 says “Codex is now part of the ChatGPT desktop app on macOS and Windows” and that existing Codex app users can update as usual and keep their projects, settings and workflows; you can make Codex the default view and, on macOS, keep the Codex app icon (ChatGPT & Codex changelog). OpenAI’s help article adds that the previous ChatGPT desktop app may stay installed as ChatGPT Classic, and that desktop Codex chats can be reached from the Remote tab in the ChatGPT mobile app (Moving to the new ChatGPT desktop app).

So when people search for the “Codex app” or “Codex desktop” today, they mean Codex inside the ChatGPT desktop app. The ChatGPT desktop app page sends you to the download for macOS or Windows, or to the Linux installation guide; after you sign in, you choose ChatGPT or Codex and start a Codex chat with New chat. The openai/codex README still says to run codex app if you want the desktop app experience:

codex app

The desktop app on Linux (preview)

OpenAI’s Linux guide calls the Linux app a preview and lists these supported desktop distributions, each with x64 and ARM64 packages: Ubuntu 24.04 LTS and 26.04 LTS, Debian 13, Fedora 43 and 44, and current Arch Linux. Other distributions may work but are not formally supported. To check your processor, run:

uname -m

x86_64 means x64; aarch64 or arm64 means ARM64. On Ubuntu or Debian, install the downloaded package with apt:

cd ~/Downloads
sudo apt install ./chatgpt_amd64.deb

On Fedora, use dnf with the .rpm file:

cd ~/Downloads
sudo dnf install ./chatgpt.x86_64.rpm

Then open ChatGPT from the applications menu, or run chatgpt in a terminal, and sign in. One limit the guide states: Computer Use is available on macOS and Windows but not yet in the Linux preview. If you only need the terminal agent on Linux, the CLI installs with the standalone script shown below and is not part of this preview.

When to use the Codex CLI

The Codex CLI page describes it as the way to “inspect code, make changes, run commands, and automate repeatable work without leaving your terminal.” Pick it when:

  • You script Codex or run it in CI. codex exec runs without the interactive UI, streams progress to stderr and prints only the final message to stdout (Non-interactive mode):

    codex exec "summarize the repository structure and list the top 5 risky areas"
    

    Add --json for a JSON Lines event stream, or --output-schema for a final answer that fits a JSON Schema.

  • You want a local review before you commit. /review runs against uncommitted changes, a commit or a base branch and reports findings without modifying your working tree (Codex CLI).

  • You work over SSH or on a headless machine. The CLI supports codex login --device-auth (beta) when the browser callback can’t reach the machine (Authentication).

  • You keep one focused loop per repository. The CLI treats the directory where you start it as the project and doesn’t show the ChatGPT Projects view (Projects and chats).

Other commands the CLI page lists: codex resume to reopen a saved chat, codex --image to attach a screenshot or diagram, codex --search for live web search, codex cloud to submit and apply cloud tasks from the terminal, codex mcp to add MCP servers, and codex completion for shell completions.

Install it with the standalone installer on macOS or Linux (the same command updates it), as the README shows:

curl -fsSL https://chatgpt.com/codex/install.sh | sh

On Windows (start it from a new PowerShell window; the same command updates it):

powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"

Or with npm or Homebrew:

npm install -g @openai/codex
brew install --cask codex

Updating the CLI

The CLI page gives one update command per install method. Use the one that matches how you installed it:

Installed with Update command
Standalone installer (macOS, Linux) curl -fsSL https://chatgpt.com/codex/install.sh | sh
Standalone installer (Windows) powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
npm npm install -g @openai/codex
Homebrew brew upgrade --cask codex

When to use Codex in the ChatGPT desktop app

Pick the app when you run several pieces of work at once, want Git controls next to the chat, or need recurring jobs:

  • Parallel chats without clashing. When you start a Codex chat you choose Local (your current project directory), Worktree (an isolated Git worktree) or Cloud (a remote task in a published environment). Local and Worktree both run on your computer (Codex environments).
  • Worktrees and Handoff. Codex creates managed worktrees in $CODEX_HOME/worktrees in a detached HEAD state, and Hand off moves a chat between your local checkout and its worktree while Codex handles the Git steps. A .worktreeinclude file at the repository root lists ignored files, such as .env, to copy into new worktrees (Worktrees).
  • Local environments. Setup scripts run when Codex creates a worktree, and actions (start the dev server, run the tests) appear in the top bar and run in the integrated terminal. The configuration lives in the .codex folder at the project root, so you can commit it. The docs say local environments are available only in Codex in the ChatGPT desktop app (Local environments).
  • Git without leaving the chat. The diff pane lets you comment inline for Codex, stage or revert chunks or files, commit, push and create a pull request (Local environments).
  • Scheduled tasks. From the Scheduled page you choose the project, prompt, cadence and whether the task runs in a dedicated worktree or your local environment (Best practices). In a Git repository, scheduled tasks can run on dedicated background worktrees; in a project that is not under version control they run directly in the project directory (Worktrees).
  • Several folders in one project. A local project can attach multiple folders; the primary one is the default for Git operations and for discovering AGENTS.md, skills and config.toml (Projects and chats).

When to use the Codex IDE extension

Pick the extension when the work starts from the file in front of you. The IDE extension page says it lets you “bring open files and selections into the prompt, review edits in place, and hand off longer work.”

  • Editors. VS Code, Cursor, Windsurf and VS Code Insiders use the Codex extension; Xcode and JetBrains IDEs provide their own integrations (in Xcode, choose Codex as the agent in the coding assistant; in JetBrains IDEs, open AI Chat and select Codex). If the Codex icon is missing in a VS Code-compatible editor, run Codex: Open Codex Sidebar from the Command Palette (Codex IDE extension).
  • Platforms. OpenAI says the VS Code-compatible and JetBrains integrations work on macOS, Windows and Linux; on Windows you can run Codex natively with the Windows sandbox or use WSL2 (IDE extension). The chatgpt.runCodexInWindowsSubsystemForLinux setting runs it in WSL when available (Developer settings).
  • Cloud follow-up from the editor. You can delegate a longer job to a cloud environment, follow its progress, then preview the changes and apply the diff locally (IDE extension).
  • Approval modes. The extension switches between Chat, Agent and Agent (Full Access) (IDE extension).

Warning

OpenAI presents the three modes as a choice of “how much autonomy you want Codex to have”, and Agent (Full Access) is the most (IDE extension). For codex exec, OpenAI says to set the least permissions the workflow needs, such as --sandbox workspace-write to allow edits, and to “use danger-full-access only in a controlled environment (for example, an isolated CI runner or container)” (Non-interactive mode). The default permissions mode applies sandboxing automatically in the app, the CLI and the extension (Sandbox). See Codex: dangerously skip permissions and safer modes for the full list of flags.

What all three share

  • Configuration. “The CLI, IDE extension, and ChatGPT desktop app all share the same configuration layers” (Best practices). Personal defaults live in ~/.codex/config.toml; a trusted project can add .codex/config.toml (Config basics).
  • MCP servers. MCP configuration lives in config.toml, so a server added in the app’s settings also applies to the CLI and the IDE extension (Developer settings). From the CLI, codex mcp add adds one (Best practices).
  • Skills and AGENTS.md. Skills work across the CLI, the IDE extension and the desktop app. AGENTS.md files layer from a global one in ~/.codex to more specific files closer to your working directory, and the closer file wins (Best practices).
  • Sign-in. The desktop app, CLI and IDE extension each accept Sign in with ChatGPT or an API key for local work; Codex cloud requires ChatGPT sign-in. The CLI and the extension share the same cached login (Authentication).
  • App and editor together. When the desktop app and the IDE extension are open in the same project, they share active chats and editor context. You can open an app chat from the extension and continue an IDE chat in the app (Developer settings).

One difference: the extension also has editor-only chatgpt.* keys (for example chatgpt.reviewDelivery or chatgpt.followUpQueueMode) that belong in the editor’s settings, not in config.toml (Developer settings). For hook configuration, see Codex hooks.

Which surfaces your plan includes

The Codex pricing page splits access by plan and sign-in:

Plan or sign-in Surfaces listed
Free ($0/month), Go ($8/month) GPT-6 Luna at Standard speed in the desktop app, subject to rollout
Plus ($20/month) Codex on the web, in the CLI, in the IDE extension and on iOS, plus cloud integrations such as automatic code review and Slack; the card lists GPT-6.1 Sol and GPT-6 Luna
Pro (from $100/month) Everything in Plus, with plans at $100, $200 or $500 per month
API key Codex in the CLI, SDK or IDE extension; no cloud-based features; billed at API rates

The pricing page’s availability matrix also marks the desktop app for local chats as available with an API key, next to the CLI and the IDE extension, so an API key is not limited to the terminal. Its feature note says GPT-6.2 Astra and GPT-6.2 Sol are available on Plus, Pro, Business, Enterprise and Edu in the Codex app and CLI, and are off by default in Enterprise and Edu workspaces until an administrator enables them.

Local messages and cloud chats share your plan’s usage allowance (Pricing). For the five-hour and weekly windows see Codex usage, and for per-plan details the Codex Plus and Codex Free listings.