Skip to main content
← Coding

Codex (IDE extension)

OpenAI
Coding IDE Local 8 axes checked Active Checked 2026-10-23

Read the two badges separately: the first is whether this page is backed by evidence, the second is whether the product is still maintained. An archived product can have complete evidence; complete evidence does not mean the product is active.

30-second check: should it make your shortlist?

In one line

Not a standalone IDE but an extension for VS Code / Cursor / Windsurf — sharing the…

How you use it

Local / self-hosted · In editor

Licence / commercial use

Not checked

Read the original licence before commercial use
Mainland China

Blocked · Not in filing list

These four cards help you rule things out, not decide for you. The real differences are in the eight questions and sources below.

Information not confirmed

  • Per-platform sandbox implementation differences on Windows / macOS / Linux
  • Concrete context-window numbers and the automatic-compaction trigger threshold
  • Concurrency-write and cross-machine migration semantics of the app server
  • Tool-call quality alignment after switching to a non-OpenAI provider

The Codex IDE extension is an extension you install into VS Code / Cursor / Windsurf, not a standalone IDE — it shares the same session mechanism with the CLI through the app server.

When to use it, when not to

A fit for two groups:

  • People already in VS Code / Cursor / Windsurf who want Codex in the same environment without switching tools
  • People who need the IDE and the CLI to share sessions (the app server architecture)

Not a fit for people who need a standalone editor — this form must attach to an existing editor and cannot be used alone.

Also note: local tasks depend on the editor process staying alive, so "keep running after shutdown" requires cloud delegation (Codex Cloud).

China availability domestic / direct access / CAC filing · snapshot 2026-10-20

Origin
foreign-made foreign entity (no matching filing entity in the CAC registry).
Direct access
direct blocked developers.openai.com returns 403 direct from mainland but 200 via proxy — the block is at the network layer, not anti-bot.
CAC filing
not in filing list:not in the CAC public registry (13 batch attachments searched 2026-10-20, https://www.cac.gov.cn/2024-04/02/c_1713729983803145.htm); the product does not serve the mainland public, so filing does not apply.

Filing status is quoted from the CAC public registry (updated batch by batch; this site copies the number and does not interpret it). "Direct access" is this site's own reachability measurement from a mainland network, not a vendor promise. GitHub-hosted sites fluctuated on the measurement day — the note says so.

8 questions, one table

8 questions, each comparable item by item with its peers.

Model & openness

It uses the CLI's agent and configuration; the model is switchable.

Official IDE page wording: "It uses the same agent as the Codex CLI and shares the same configuration"

Models listed on the official pricing page:

  • GPT-5.5
  • GPT-5.4
  • GPT-5.4 mini
  • Pro additionally has GPT-5.3-Codex-Spark (research preview)

Below the chat input there is a model switcher, with reasoning effort adjustable (low / medium / high).

The default model is set in the shared config.toml (model = "..."), shared by IDE and CLI, so custom providers go through the same model_providers configuration (see the CLI / SDK dossiers).

BYOK works: the official supports logging in with an API key; the JetBrains integration can also ride a JetBrains AI subscription. On the API-key path, the usable model range follows that key's API models.

Where it runs

It is an extension, not a standalone editor.

Official README wording: "If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE."

That is: install into an existing editor such as VS Code / Cursor / Windsurf.

This is a different form from Zed (standalone editor) and Cline Desktop (native app).

Local files

Accesses workspace files through the host editor.

Context comes from open files, selections and @file references. There is also Auto Context: automatically pulling in recent files and IDE context (see /auto-context).

Official stance: workspace = current directory plus temp directories (e.g. /tmp); writes default to the workspace.

On Windows it can run natively (via the Windows sandbox) or switch to WSL2 (setting chatgpt.runCodexInWindowsSubsystemForLinux).

The official IDE docs describe no standalone semantic index — local file retrieval is done by the same agent's tools.

Verification: checked the official features and settings pages.

Tasks after shutdown

There is a cloud form: the official says tasks can be delegated from the IDE to Codex Cloud.

IDE page wording: "delegate tasks to Codex Cloud"

Features page wording: "Offload longer jobs to a cloud environment"

Switch with /cloud and /local.

Cloud tasks run in the background (including in parallel) inside OpenAI-managed containers, so cloud tasks keep going after the local editor is closed. Local tasks depend on the host editor process — close it and they stop.

Cloud tasks and local messages share plan usage (the official pricing page says a shared 5-hour window).

Tools & extensions

Built-in first-party tools and commands are all verified.

Tools:

  • web search — the official says enabled by default, via an OpenAI-maintained search cache, configurable web_search = "live" | "disabled"
  • image generation — $imagegen, model gpt-image-2, counts against usage and drains quota faster
  • code review — /review
  • editor context — @file, selections, drag-in images

Command-palette commands: chatgpt.newChat / addToThread / addFileToThread / implementTodo, plus TODO CodeLens.

MCP is explicitly supported in the IDE extension officially.

STDIO and Streamable HTTP supported; CLI and IDE share [mcp_servers.<name>] in config.toml (including enabled_tools, and per-server, per-tool approval_mode).

Original wording: "Codex supports MCP servers in both the CLI and the IDE extension"

Context & memory

The app-server architecture remains the key design — threads can be started, resumed and recovered; IDE and CLI share the same session mechanics and the same configuration.

The official adds three more points:

  • launching a cloud task from a local session remembers the session context (and context is kept when a cloud task returns to local to continue)
  • /status shows the thread ID, context usage and rate limits
  • /goal can set a persistent goal

Concrete context-window numbers and the automatic compaction policy are not given separately in the IDE docs.

Compaction on the CLI / SDK side goes through config keys such as compact_prompt;

Verification: checked the official features and slash-commands pages.

Permissions & limits

IDE and CLI share the same sandbox and approvals.

Official settings page wording: "The Codex IDE extension uses the Codex CLI"

Same page: approvals and sandbox are configured in the shared ~/.codex/config.toml.

The UI side has three approval modes: Chat / Agent / Agent (Full Access).

  • default Agent — reads/writes and executes commands automatically inside the working directory, but outside the working directory or for networking it still asks
  • only Full Access skips approval for networking

Official security page stance (covering the IDE extension): by default no network + writes limited to the current workspace; .git / .agents / .codex recursively read-only.

Approval and sandbox keys are the same as the CLI: approval_policy / sandbox_mode / [sandbox_workspace_write] network_access and the network_proxy domain list. The Windows native sandbox defaults to elevated.

Best for

Fits two kinds of people:

  • those already using VS Code / Cursor / Windsurf-style editors who want Codex in the same environment without switching tools
  • those who need IDE and CLI to share sessions (the app-server architecture)

Top misconception

  • Treating it as a standalone IDE — it is really an extension installed into an existing editor
  • Assuming the IDE extension and the CLI are two separate systems — the app server architecture lets them share sessions
  • Assuming the IDE extension has its own permission model — both share config.toml, and the sandbox and approvals are the same

Evidence sources

Checked 2026-10-23,Content updated 2026-10-08。This is the date of the entry, not a claim that every field was rechecked that day.

TypeNameLink
docsOpenAI · Codex IDE docs (extension form, cloud-delegation overview)https://developers.openai.com/codex/ide
docsOpenAI · Codex IDE Features (model switching, approval modes, cloud delegation, web search, image generation)https://developers.openai.com/codex/ide/features
docsOpenAI · Codex IDE Settings (shared config.toml, Windows/WSL settings)https://developers.openai.com/codex/ide/settings
docsOpenAI · Codex IDE Slash commands (/cloud /local /status /goal)https://developers.openai.com/codex/ide/slash-commands
docsOpenAI · Codex Cloud (cloud tasks run in background, @codex, PRs)https://developers.openai.com/codex/cloud
docsOpenAI · Codex Cloud environments (managed containers, setup/agent two phases)https://developers.openai.com/codex/cloud/environments
docsOpenAI · Codex Agent approvals & security (sandbox defaults, approval policies, protected paths)https://developers.openai.com/codex/agent-approvals-security
docsOpenAI · Codex MCP (CLI and IDE extension support STDIO/Streamable HTTP)https://developers.openai.com/codex/mcp
docsOpenAI · Codex Config basics (default model, approval_policy, sandbox_mode)https://developers.openai.com/codex/config-basic
pricingOpenAI · Codex Pricing (usable models and plans)https://developers.openai.com/codex/pricing
repoOpenAI · Codex repository README (includes IDE install instructions)https://github.com/openai/codex
changelogOpenAI · Codex CLI Releaseshttps://github.com/openai/codex/releases

Test notes

This site has not completed measured runs. The test protocol is at protocols/coding/_protocol.md.

Suggested measurement: focus on app-server session continuity — open a session in the IDE, switch to the CLI to continue, and check whether state is fully preserved.

That is architecturally its most valuable and most verification-worthy point.

Form clarification (the most easily misunderstood point)

It explicitly lists three supported host editors.

Official README wording: "If you want Codex in your code editor (VS Code, Cursor, Windsurf), install in your IDE."

Key information: this shows the Codex IDE form is an "extension", not an "editor".

Comparing the three IDE-class forms

FormExampleMeaning
Standalone editorZedships a full editor; AI is part of it
Native desktop appCline Desktopattaches to no editor
Editor extensionCodex IDE, Copilot, the Cline extensioninstalls into an existing editor

This distinction matters:

  • in the extension form, "indexing strategy" and "context building" are often decided by the host editor, not by this tool itself
  • so this entry is not fully comparable with Zed — one is a standalone editor, the other an extension

Relationship with the CLI form

Two entries, different categories, but a shared backend:

CLI formIDE form (this entry)
Formterminal processeditor extension
Authorizationrides the ChatGPT subscriptionthe same authorization
Backendapp serverthe same app server

The practical meaning of the app-server architecture: threads can be started, resumed and recovered.

So a session opened in the IDE can be continued in the CLI, and vice versa.

This is the tool's most valuable architectural feature, and the reason the CLI and IDE entries must cross-reference each other.

Collection limits

2026-10-08 fetched the official IDE docs-site body at developers.openai.com/codex/ide and its features / settings / slash-commands subpages, and cross-checked the cloud, config-basic, security and MCP pages.

Verified:

  • the tool set (web search, image generation, code review, editor context) and MCP support
  • the three approval modes (Chat / Agent / Agent Full Access) and sandbox defaults
  • cloud delegation (Codex Cloud) and local/cloud session-context retention
  • the model switcher, the usable-model roster and API-key login
  • authorization rides the ChatGPT subscription; license Apache-2.0

Scope boundary:

  • per-platform implementation differences of the IDE vs CLI sandbox (the official only says OS-level enforcement)

Related entries

  • Claude Code (IDE extension)Also an "extension + CLI" dual-form architecture
  • ZedThe other end of this category: a standalone editor
  • ClineThe other implementation covering all three forms
  • Codex SDKOther layer · Frameworks & runtimes

Same-category peers

Look at these three before reading further

Selected by overlap in jobs, not ranked. Compare where it runs, licence and status first; if one of the three fails, skip it.

ObjectWhereLicenceEvidence / statusWhat it is for
Baidu Comate (Wenxin Kuaima)Local / self-hostedNot checked8 questions checked
Active
Baidu Comate (Wenxin Kuaima) is Baidu's AI coding family: Comate AI IDE
Claude Code (IDE extension)Local / self-hostedNot checked8 questions checked
Active
One process, three entry points — terminal, IDE and GitHub @claude menti
ClineLocal / self-hostedOpen licence8 questions checked
Active
A coding tool with CLI, desktop and editor entry points — CLI, desktop a

Same vendor

More from OpenAI

One vendor’s products are often split across categories. This list puts them together so you do not have to assemble them across five sites.

This page is generated from the ai-handbook data layer (CC BY 4.0). For the judging criteria and method notes, see METHODOLOGY.md.