`codex app` ignores model provider configured via `-c` args

Open 💬 1 comment Opened Jun 10, 2026 by jplewa

What version of the Codex App are you using (From “About Codex” dialog)?

26.608.12217

What subscription do you have?

N/A

What platform is your computer?

Darwin 25.5.0 arm64 arm

What issue are you seeing?

The app doesn't seem to take model provider config provided via -c into account when launching the GUI. The same args work with the CLI.

What steps can reproduce the bug?

Calling

codex app -c model_provider='placeholder' \
  -c model_providers.placeholder.name='Placeholder Name' \
  -c model_providers.placeholder.base_url='http://127.0.0.1:19500/proxy/path' \
  -c model_providers.placeholder.wire_api='responses'

opens the app on the login screen for me:
<img width="1025" height="685" alt="Image" src="https://github.com/user-attachments/assets/40ca99bf-eb2a-4596-b5a9-45a35dc02575" />

If the same values are configured in config.toml, the auth screen is skipped.

version of Codex CLI: 0.136.0

What is the expected behavior?

I would expect the app to behave the same as the CLI and prioritize the values overridden via command-line args and not ask me to log in with an OpenAI account.

Additional information

_No response_

View original on GitHub ↗

This issue has 1 comment on GitHub. Read the full discussion on GitHub ↗