Interactive TUI Installer for Multiple Custom Model Providers
What variant of Codex are you using?
TUI
What feature would you like to see?
Problem statement:
Setting up Codex with multiple models/providers (e.g., OpenRouter) currently requires:
Manually editing ~/.codex/config.toml
Managing multiple environment variables in shell config (.zshrc, .bashrc)
Understanding internal concepts like model_provider, env_key, etc.
This creates significant friction, especially for:
New users
Multi-model workflows
Cost tracking setups, etc..
Proposed Feature:
Add an interactive installer/setup flow inside the Codex TUI to configure models and providers.
Where user will provide the model name, URL Link, api key written in a file(optional),
the installer will manually update the config.toml,
create aliases (ex:
alias codex-gpt='codex -c model="openai/gpt-5.4" -c model_provider="openrouter_gpt"'
alias codex-glm='codex -c model="z-ai/glm-5.1" -c model_provider="openrouter_glm"'
),
test connection.
Users will init different sessions as per their need.
---------------------------------------------------------------------------------------------
Codex already has powerful support for:
custom providers
multiple models
flexible config
But lacks a guided UX layer.
A TUI installer would make these capabilities easily accessible.
Additional information
I have already created a installer script for my local setup
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗