Use Coding Plan with Codex
Codex is a coding agent from OpenAI.
Verify installation:
Copy this into
Skip the update prompt if it appears.
Install Codex
- Install or update Node.js (v18.0 or later).
- Install Codex 0.80.0 or earlier (required for Chat and Completions APIs support):
Set up Coding Plan
- Modify the config file
Codex versions later than 0.80.0 do not support the Chat and Completions APIs that Coding Plan requires. Install version 0.80.0 or earlier (see Install Codex).
~/.codex/config.toml (for model, choose a supported model):
- Configure the environment variable
OPENAI_API_KEY to your Coding Plan API key.
- macOS
- Windows
- Check your default shell:
- Set the environment variable based on your shell type:
- Zsh
- Bash
- Apply the change:
- Zsh
- Bash
Use Codex
- Open a new terminal and launch Codex:
- Start a conversation.