Codex CLI Lets Developers Add and Edit Custom Model Providers From the Terminal
Codex CLI 0.169.0 lets developers add or edit custom model providers from the terminal. With custom gateway onboarding enabled, a provider can be created during sign-in, and supported gateways accept a device code over SSH or without a local browser.
Key Takeaways
- Developers can add or edit custom model providers directly in the terminal.
- Custom gateway onboarding lets a provider be created during sign-in.
- Device-code sign-in works for supported gateways over SSH or with no local browser.
- The change builds on the model providers view added in 0.168.0.
- It lowers setup friction for teams using their own model gateways.
- Headless and remote machines get a login path that needs no browser.
Managing providers in the terminal
Codex CLI 0.169.0 lets developers add or edit custom model providers without leaving the terminal. This extends the model providers view introduced in 0.168.0, which only let developers browse providers and pick a default for new chats.
Create a provider during sign-in
With custom gateway onboarding enabled, a developer can create a provider as part of signing in. Teams that route Codex through their own model gateway can set it up in one flow instead of editing configuration by hand.
Device-code sign-in for remote setups
For supported gateways, sign-in can use a device code. That helps on SSH sessions and on machines with no local browser, where a normal browser-based login is not possible.
Why it matters
Custom gateways are common in teams that proxy model traffic. Guided creation, editing and device-code login lower the setup friction in headless and remote environments.