What is the default model in Codex?

The default model in Codex CLI is GPT-6.2 Sol; OpenAI’s changelog says Codex CLI 0.171.0 made Sol the default catalog selection when it added GPT-6.2 Sol and GPT-6.2 Astra.

As of December 5, 2026, here is how the default works:

  • No model set: OpenAI’s Models page says the Codex CLI, IDE extension and ChatGPT desktop app use a recommended model when you don’t specify one in config.toml.
  • Set your own default: add a line such as model = "gpt-6.2-sol" to config.toml, which the desktop app, CLI and IDE extension share.
  • One session only: launch with codex --model (or -m), or switch inside a session with /model.
  • Harder work: OpenAI suggests GPT-6.2 Astra for the hardest projects and Sol for everyday coding.

On December 2, 2026, Codex removed GPT-5.6 Sol from the picker for most users, and threads on it switch to GPT-6.2 Sol starting December 23. Older versions use an older default, so update Codex CLI first.

Related: How to change the model in Codex?, What is the default model in Claude Code? and How to update Codex CLI?

Source: OpenAI, ChatGPT & Codex changelog; OpenAI, Models

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