Codex executable returns a list of available models

Resolved 💬 4 comments Opened Jan 7, 2026 by momiforgotthesemicolon Closed Jan 8, 2026

What feature would you like to see?

I am writing a neovim plugin where codex is executed in place rather then in interactive mode. Can codex return the list of available models so user can pass it via codex exec --model <model_name> ?

I know that there is an api for it that I can curl, but trying to get to someone's $OPENAI_API_KEY is very sketchy. Is this something that you guys can do somehow? Thank you in advance and I appreciatge any response here :)

Additional information

_No response_

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗