Codex desktop app

The Codex desktop app shares one config file with the CLI, so there is nothing extra to set up — this page shows how to confirm it took effect.

The Codex desktop app (macOS and Windows) reads the same ~/.codex/config.toml as Codex CLI. Once you've configured a provider on the previous page, the desktop app needs no additional setup.

If you haven't configured one yet, start with Configure a model provider.

Confirm the configuration took effect

To check that the desktop app really picked up your configuration, compare the two sides in four steps.

Look at what was written

If you used CC Switch: open it, click the provider entry to open its editor, and scroll down to the config.toml (TOML) block to see exactly what was written.

If you edited the file yourself: just open ~/.codex/config.toml.

The config.toml (TOML) block in the CC Switch provider editor, showing the model_provider, model, and base_url that were written

The provider can be called anything (custom above) as long as model_provider and [model_providers.…] agree.

Open the desktop app's config.toml

In the desktop app, open Settings, pick Config on the left, and click Open config.toml at the top right. The file opens in your default editor.

The Codex desktop app settings window, with Config selected on the left and the Open config.toml button at the top right

Compare the two

Focus on model_provider and base_url. If they match, the desktop app is reading the same configuration.

Send a message

Send a test message in the desktop app; a normal reply confirms the connection. The bottom right of the composer shows the active model and reasoning effort, and opens into a picker listing the models from your model mapping.

Sending a test message in the Codex desktop app and getting a reply, with the model picker listing GPT-5.6 Sol, Terra, and Luna

Troubleshooting

SymptomFix
The desktop app still asks you to sign in to OpenAIIt didn't pick up the configuration. Run the four-step comparison above and confirm model_provider matches on both sides.
The two config.toml files differRestart the desktop app after changing anything in CC Switch — it re-reads the file at launch.
The desktop app errors while the CLI worksThe key comes from different places: Method C keeps it in an environment variable, which the desktop app doesn't necessarily inherit from your shell. Configuring through CC Switch (Method A or B) avoids this.
On this page

On this page