GuidesRunning & maintaining

Codex models: the list, the default and how to switch

Which models Codex CLI, the app and IDE can use as of November 2026, the default, /model, -m and config.toml, ChatGPT plan vs API key, and --oss.

November 22, 2026The Everpod team
The short answer

As of November 2026, Codex’s current models are gpt-6.2-sol (the default since Codex 0.171.0, for everyday coding), gpt-6.2-astra (the most capable, for hard work), gpt-6.1-terra, gpt-6.1-sol, gpt-6-astra, gpt-6-sol and gpt-6-luna (the cheapest). Switch with /model in a session, codex -m gpt-6.2-astra for one run, or model = "gpt-6.2-astra" in ~/.codex/config.toml; effort is model_reasoning_effort. A ChatGPT sign-in on Plus or above gets the GPT-6.2 models; Free and Go get GPT-6 Luna only. An API key gets whatever your API project can call, billed per token. Local models run with codex --oss through Ollama or LM Studio, and other providers through a [model_providers] entry that speaks the Responses API.

The models, as of Codex 0.171.0

OpenAI’s Codex models page and the catalogue bundled with the 0.171.0 release (November 20, 2026) agree on this list. The order is the catalogue’s priority order; the context figure is what Codex uses unless you raise it.

The catalogue also still lists the GPT-5.6 models (Sol, Terra, Luna), each with an upgrade field pointing at GPT-6 Sol or GPT-6 Luna. Retired from Codex with a ChatGPT sign-in: gpt-5.5 (October 14, 2026; still served to API keys), gpt-5.3-codex-spark (September 14), gpt-5.4 and gpt-5.4-mini (August 31), and the older gpt-5.2 and gpt-5.3-codex. A config or script still naming one of those is the usual cause of the “model is not supported when using Codex with a ChatGPT account” error.

To see exactly what your copy of Codex knows, including entries the picker hides:

codex debug models             # the catalogue as Codex sees it, as JSON
codex debug models --bundled   # only what ships in this binary, no refresh
Copied

The first refreshes the catalogue from OpenAI before printing; the second skips the refresh and prints only the copy shipped with the binary.

Which one is the default

With no model set anywhere, the docs say only that Codex “uses a recommended model.” Which one that is changed with the release: 0.171.0’s notes say it “Added GPT-6.2 Sol and Astra to model catalogs, with Sol as the default catalog selection,” and the release’s tests move the expected default from GPT-6.1 Sol to GPT-6.2 Sol. Before 0.171.0 the catalogue’s default was GPT-6.1 Sol; run a Codex update to get the new default. A model line in your config always wins over it, so updating does not move a pinned setup.

The default reasoning effort comes with the model: the bundled catalogue sets low for the GPT-6.2 and GPT-6.1 models and GPT-6 Astra, and medium for GPT-6 Sol and Luna.

Switching model and effort

In a CLI session: /model switches the model or adjusts its reasoning effort. /status shows what is in effect.

For one run:

codex -m gpt-6.2-astra
codex exec -m gpt-6-luna "summarise the failing tests in CI.log"
codex -m gpt-6.2-sol -c model_reasoning_effort=high
Copied

As your default, in ~/.codex/config.toml:

model = "gpt-6.2-sol"
model_reasoning_effort = "medium"
plan_mode_reasoning_effort = "high"   # optional, Plan mode only
review_model = "gpt-6.2-astra"        # optional, used by /review
Copied

review_model defaults to the session’s model; setting it lets a cheap everyday model hand reviews to a stronger one. How this file stacks with project configs, profiles and -c is in the config.toml guide.

Reasoning effort is whatever the model advertises. The GPT-6.2 models offer low, medium, high, xhigh, max and ultra, and “GPT-6 Luna supports reasoning efforts up to Max, but not Ultra.” In the desktop app and the IDE extension, the model and effort are chosen from the composer.

Context: GPT-6.2 Astra and Sol accept up to about 1 million tokens, but Codex uses 272,000 and 500,000 unless you set model_context_window. On an API key, raising it has a price: OpenAI’s GPT-6.2 Astra and GPT-6.2 Sol pages say “For requests with more than 272K input tokens, input and cache rates double,” and output costs 1.5 times as much for the whole request.

ChatGPT sign-in or API key

How you signed in decides which list you get. Per OpenAI’s Codex pricing page as of November 22, 2026:

At API rates, GPT-6.2 Sol is $2 per million input tokens, $0.10 cached and $10 output; GPT-6.2 Astra is $8, $0.40 and $40. How many messages each plan’s allowance buys per model, and the Fast and Ultrafast speeds, are in which ChatGPT plans include Codex. When a model is listed but refuses with “Selected model is at capacity”, that is OpenAI’s side, covered in the capacity guide.

Local models with --oss

codex --oss runs against a model on your own machine through Ollama or LM Studio, whichever you name with --local-provider or oss_provider in the config; with neither, Codex asks. With no model given it uses OpenAI’s open-weight gpt-oss 20B, and pulls it if it is not there yet. In the 0.171.0 source:

codex --oss --local-provider ollama
codex exec --oss "list the TODOs in src/"
Copied

Or make it permanent with oss_provider = "ollama" in the config. Both run over the Responses API, so the local server has to serve /v1/responses. Another model the server holds goes in -m, under the name the server gives it. For a server on another host, the source reads CODEX_OSS_BASE_URL (and CODEX_OSS_PORT), which its comments mark experimental. Local runs touch neither your ChatGPT allowance nor an API bill.

Other providers’ models

Anything else is a provider entry in ~/.codex/config.toml, selected with model_provider (which defaults to openai). The entry must point at a Responses API endpoint: the config reference says wire_api has one valid value, and “Current Codex releases don’t support wire_api = "chat" or a Chat Completions-only endpoint,” so a tutorial that sets wire_api = "chat" is out of date.

model_provider = "mygateway"
model = "the-model-id-your-gateway-uses"

[model_providers.mygateway]
name = "mygateway"
base_url = "https://gateway.example.com/v1"
env_key = "MYGATEWAY_API_KEY"
wire_api = "responses"
Copied

The ids openai, ollama and lmstudio are reserved, so a custom entry needs its own name. A provider entry in a project’s .codex/config.toml is ignored; it belongs in the user config. Reaching other labs’ models through OpenRouter, and keeping your ChatGPT sign-in as the default beside it, is worked through in using OpenRouter with Codex.

Two cloud routes are built in. Amazon Bedrock uses model_provider = "amazon-bedrock" (or amazon-bedrock-runtime) with AWS credentials instead of a ChatGPT sign-in or OPENAI_API_KEY; OpenAI’s Bedrock page lists GPT-6 Astra, Sol and Luna under ids such as global.openai.gpt-6-sol and says “Model availability varies by AWS Region.” The source also carries a gcp provider for Google Cloud.

Run Codex on an always-on developer pod.

A developer pod is a permanent cloud computer (VPS), set up and secured for you, with your pick of Claude Code, Codex, OpenCode, Pi, Hermes and OpenClaw installed. Run more agents at once than your laptop can hold, and keep them working when it’s closed. From $24 a month, built in about ten minutes.