Course / Reference

Codex surface map

Choose a surface by where the work should run and how you want to supervise it. The same Codex configuration can support several surfaces; you do not need a separate setup for each one.

Choose by task

If you need…Start withWhy
Fast terminal collaboration in the current repoCLIInteractive local edits, commands, approvals, and session resumption.
Work beside the code currently open in your editorIDE extensionEditor context and local execution without changing applications.
Several isolated tasks visible at onceCodex appParallel threads, visual diffs, Git controls, and built-in worktrees.
A long task that should run away from your machineWeb / cloudHosted execution against a connected GitHub repository.
A repeatable agent step in a script or CI jobcodex execNon-interactive output, exit status, and structured event options.
A second opinion on a local change/reviewA dedicated reviewer inspects a diff without changing the worktree.
Visual testing of a local web interfaceIn-app browserCodex can navigate, inspect, click, type, and capture the rendered result.
Work that depends on your signed-in browser stateChrome integrationUses the user's Chrome profile when existing sessions or extensions matter.
Interaction with a native desktop applicationComputer UseControls macOS or Windows UI when no direct tool or API fits.

The core surfaces

Local · interactive

CLI

  • Reads, edits, and runs code in the selected directory.
  • Supports approval modes, image input, web search, MCP, and slash commands.
  • Resumes previous threads with codex resume.
  • Submits hosted tasks with codex cloud.
Local · editor-attached

IDE extension

  • Works alongside VS Code-family editors and JetBrains IDEs.
  • Uses open files and selections as immediate task context.
  • Can perform local work or delegate to Codex cloud.
Local · parallel

Codex app

  • Runs multiple threads and projects in one desktop workspace.
  • Creates isolated Git worktrees for parallel changes.
  • Provides visual diff review and Git operations.
  • Supports scheduled automations and local UI tools.
Hosted · asynchronous

Web / cloud

  • Runs in a configured cloud environment against GitHub repositories.
  • Continues while your local machine is unavailable.
  • Can produce changes for review or a pull request.
  • Supports multiple attempts when alternative solutions are valuable.
Local · non-interactive

codex exec

  • Runs one prompt from a script, shell pipeline, or CI system.
  • Returns a final result to standard output.
  • Can resume an earlier non-interactive run.
  • Best reserved for bounded workflows with explicit checks.

Execution and isolation

SurfaceRuns whereRepository stateSupervision
CLIYour machineCurrent checkoutLive terminal transcript
IDEYour machineCurrent checkoutLive editor panel
AppYour machineCheckout or isolated worktreeParallel thread UI
Web / cloudOpenAI-hosted environmentConnected repository snapshotAsynchronous task UI
codex execYour machine or CI runnerProcess working directoryLogs and exit status

Configuration shared across surfaces

One-off task requirement       → prompt / thread
Repository conventions        → AGENTS.md
Repository Codex settings     → .codex/config.toml
Personal Codex defaults       → ~/.codex/config.toml
Reusable workflow             → skill
Installable capability bundle → plugin
External service or live data → MCP server / connector
Mechanical lifecycle control  → hook
Scheduled recurring work      → automation

Coming from Kiro or Claude

Do not duplicate every existing customization immediately. Importing can translate supported instructions, settings, skills, MCP servers, hooks, slash commands, sessions, and subagents while leaving the original setup unchanged. Review permissions and authentication after import, then keep only the pieces that improve the Codex workflow.

High-value complementary roles

Independent reviewer

Let Kiro or Claude implement, then use Codex /review against the local diff.

Parallel investigator

Give Codex an isolated worktree to diagnose or prototype without disturbing the primary implementation thread.

UI verifier

Use browser or computer-control capabilities to verify rendered behavior instead of trusting source inspection alone.

Workflow runner

Move a stable, bounded task into codex exec, a skill, or an automation only after the interactive version is reliable.

Official sources

CLI · CLI features · IDE · App · Web/cloud · Import · Best practices