promptgarten 🌱

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

Compare all 28 tasks β†’

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

MORE COMMANDS Β· Codex CLI

/permissions/status/plan/review/diff/resume/new/fork/mcp/skills/goalcodex exec

All commands Β· Codex CLI β†’

Share:𝕏inπŸ’¬