Skip to content

codexCodex

Codex CLI is a coding agent from OpenAI that runs locally on your computer. If you are looking for the cloud-based agent from OpenAI, Codex Web

⚒ Installation

npm install -g @openai/codex
brew install codex

⚙ Config

export OPENAI_API_KEY="your-api-key-here"
# ~/.codex/config.toml
preferred_auth_method = "apikey"

Then simply run codex to get started:

codex