GPT WORLD / INDEPENDENT CODEX FIELD MANUAL Source review · 2026-07-26

Field guide / 10 min

Install Codex and prove the toolchain

Start with a known binary, a visible version, and diagnostics you can repeat.

Track
Codex CLI core
Level
Foundation
Maturity
Stable

A reliable Codex workflow starts before the first prompt. Install from the official standalone script, identify the binary you are actually running, update deliberately, and use the built-in diagnostic report instead of guessing about configuration, authentication, Git, or terminal failures.

CLI

Verified terminal sequence

TERMINAL / COPY WITH INTENT
  1. $curl -fsSL https://chatgpt.com/codex/install.sh | sh
  2. $irm https://chatgpt.com/codex/install.ps1 | iex
  3. $codex --version
  4. $codex update
  5. $codex doctor
A

Working principles

01

Identify the executable

Shell aliases and multiple install methods can point at different binaries. Record the resolved command and version before debugging behavior.

02

Update intentionally

Use codex update only when the installed release supports self-update. Review release-sensitive behavior after an update rather than assuming every flag stayed identical.

03

Diagnose by layer

codex doctor inventories installation, config, auth, runtime, Git, terminal, app-server, and threads so setup failures become evidence instead of folklore.

B

Field procedure

  1. 01

    Install from the official script

    Use install.sh from a POSIX shell on macOS/Linux, or install.ps1 through PowerShell on Windows. Keep first-time setup interactive so path and shell changes stay visible.

  2. 02

    Confirm the active version

    Run codex --version from the same shell and repository context you plan to use for work.

  3. 03

    Check command discovery

    If the shell cannot find Codex, reopen the terminal and inspect PATH before installing a second copy.

  4. 04

    Generate a diagnostic report

    Run codex doctor and read each layer. Fix the first failing dependency rather than changing unrelated settings.

  5. 05

    Capture a baseline

    Record the version and successful diagnostic result in your local setup notes so later regressions have a comparison point.

PASS / FAIL

Acceptance checklist

  • The installer matches the active shell and operating system.
  • codex --version succeeds.
  • codex doctor reports the intended runtime and repository.
  • Only one expected Codex binary wins on PATH.
  • No credential or diagnostic file is committed.

WATCH / REJECT

Failure patterns

  • Running the PowerShell installer in a POSIX shell, or the shell installer in PowerShell.
  • Installing repeatedly before checking PATH.
  • Treating self-update support as universal.
  • Publishing diagnostic output before reviewing it for sensitive paths.