codex -m o4-mini 'Refactor the auth module'

Category: AI Agents & MCP

codex -m o4-mini 'Refactor the auth module'

Run Codex CLI with a specific OpenAI model

Specify which OpenAI model powers the agent with -m. Options include o4-mini (fast, cheap), o3 (more capable), and gpt-4.1 (balanced). o4-mini is the default as of 2026 — it's fast enough for most coding tasks at lower cost.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.