promptgarten ๐ŸŒฑ
๐ŸŒ ES

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.

โœ… 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