Codex Manual
Download and Install
Install the CLI first, then open the App or IDE extension as needed.
macOS
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codexHomebrew:
brew install --cask codex
codexOpen the desktop app:
codex appWindows Native
powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex"
codexOpen the app:
codex appUseful developer tools:
winget install --id Git.Git
winget install --id OpenJS.NodeJS.LTS
winget install --id Python.Python.3
winget install --id GitHub.cliWindows + WSL2
wsl --install
wslInside WSL:
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codexKeep Linux projects under your WSL home directory when possible:
mkdir -p ~/code
cd ~/codeLinux
curl -fsSL https://chatgpt.com/codex/install.sh | sh
codexOr:
npm install -g @openai/codex
codex