AI - Codex CLI

Using Codex CLI on macOS (Apple Silicon)#

Codex CLI is the terminal interface for OpenAI Codex.

Codex supports two authentication methods:

  1. ChatGPT account

    • Uses ChatGPT plan limits (Free, Plus, Pro)
    • No API key required
  2. 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 codex

Verify: