How to change the model in Codex?

To change the model in Codex, type /model in the Codex CLI composer, press Enter and choose a model from the picker; OpenAI’s Codex documentation says Codex confirms the new model in the transcript, and /status shows the change.

As of December 4, 2026, the documented options are:

  • Model picker: /model lists the models available to your account and workspace. OpenAI suggests GPT-6.2 Astra for complex debugging and GPT-6.2 Sol for everyday coding.
  • Direct command: /model [model] [--reasoning=] [--speed=] changes settings for the current session only. For example, /model --reasoning=high keeps the current model and raises its reasoning effort when supported.
  • At startup: codex --model gpt-6.2-sol (or -m) overrides the model set in configuration.
  • Default model: set model = "gpt-6.2-sol" in ~/.codex/config.toml, which Codex uses by default in the CLI and IDE extension. model_reasoning_effort sets the default reasoning effort.

Related: How to update Codex CLI?, How to resume a Codex session? and Codex CLI 0.172 power-user guide

Source: OpenAI Codex docs, Developer commands (slash commands and CLI flags); OpenAI Codex docs, Config basics

Image: ChatGPT logo by OpenAI, public domain (PD shape), via Wikimedia Commons, placed on a white background and resized. Codex and ChatGPT are trademarks of OpenAI. FreeAnswers is not affiliated with or endorsed by OpenAI.



Related answers

Leave a Comment