Skip to content

Codex executable returns a list of available models #8871

@momiforgotthesemicolon

Description

@momiforgotthesemicolon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CLIIssues related to the Codex CLIenhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions