How to use gpt-5 codex model?

Resolved 💬 3 comments Opened Sep 23, 2025 by AlejandroEsquivel Closed Sep 23, 2025
💡 Likely answer: A maintainer (dylan-hurd-oai, contributor) responded on this thread — see the highlighted reply below.

I am looking to use this in non-interactive mode, is it just setting the model as model = "gpt-5" in the config.toml or is there a more specific model name related to the recent "gpt 5 codex" release.

Any help would be appreciated

View original on GitHub ↗

3 Comments

PythonTilk · 11 months ago

I was asked if I wanted to upon installing. maybe check /models

jairovg · 11 months ago
I am looking to use this in non-interactive mode, is it just setting the model as model = "gpt-5" in the config.toml or is there a more specific model name related to the recent "gpt 5 codex" release. Any help would be appreciated

You can use /model within codex or set model = "gpt-5-codex" in your ~/.codex/config.toml file.

dylan-hurd-oai contributor · 11 months ago

@jairovg is correct! Closing this issue - please let us know if you're having issues with this approach.