Feature Request: List available models when an invalid model is specified

Resolved 💬 2 comments Opened Dec 21, 2025 by zgqq Closed Feb 23, 2026
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

I would like to request a feature for the Codex CLI.
When a user specifies an invalid model via the --model flag, it would be very helpful if the CLI could list all available valid models, similar to how cursor-agent behaves.

Example of desired behavior:

❯ codex --model test
Cannot use this model: test. Available models: model-a, model-b, model-c...

This improves discoverability and user experience.

View original on GitHub ↗

2 Comments

github-actions[bot] contributor · 8 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #8319
  • #4146

Powered by Codex Action

etraut-openai contributor · 6 months ago

This feature request hasn't received enough upvotes, so I'm closing it.