GPTMap

-m / --model

The launch flag that picks the model the agent should use — the in-session counterpart is /model.

Codex commandsopenaicodexcliflagmodel-picker

Specs

Verified:

Kind
Launch flag
Syntax
-m <MODEL> / --model <MODEL>
First seen
—
unverified
In-session counterpart
/model

Official help verbatim: "Model the agent should use". The launch-time model picker; mid-session switching goes through `/model` (inline args since 0.164.0). First-seen version is unverified.

Key features

  • Pins the model at launch
  • Switch mid-session via /model

Use cases

Pin the model in scripts and CI so account defaults can't drift under you.

Install

`codex -m <model-id>` or `codex exec -m <model-id> "..."`.

Caveats

Valid IDs depend on your account and the version-bundled catalog — an unknown ID fails with a model error.

Added

Updated

Verified

Related entries