Using Codex CLI on macOS (Apple Silicon)#
Codex CLI is the terminal interface for OpenAI Codex.
Codex supports two authentication methods:
-
ChatGPT account
- Uses ChatGPT plan limits (Free, Plus, Pro)
- No API key required
-
OpenAI API key
- Uses OpenAI Platform API billing
- Requires an API key
- Usage is charged against API credits
You can switch between both methods.
1. Installation#
Install Codex CLI via Homebrew Cask:
brew install --cask codexVerify: