Command reference Β· Codex CLI
/model
Switches the AI model used in the running Codex session.
/model opens the model picker within a running interactive Codex session. This lets you switch the model without restarting the session. When starting Codex, the model can alternatively be set directly with the --model or -m flags.
π THE SAME TASK (βSWITCH MODELβ) ON OTHER PLATFORMS
β WHEN TO USE IT?
Upgrade the model for a harder subtask
/model β then pick a more capable model before tackling a complex refactor
Faster/cheaper model for routine tasks
/model β switch to a smaller model to handle formatting or text tasks more cheaply
β WHEN NOT TO?
The model should already be fixed at startup
If you already know which model you'll need for the whole session, there's no need to switch into the session and toggle it there.
Better: Set the model directly at startup with --model or -m, e.g. codex --model o3
SOURCES
- Codex CLI docs: Slash Commands β learn.chatgpt.com
MORE COMMANDS Β· Codex CLI