Skip to content

Bug: Custom model_provider in ~/.codex/config.toml causes ChatGPT desktop to lose Chat mode and account authentication #56173

Open

Description

@heyitsjames

Summary

The unified ChatGPT desktop application on macOS appears to malfunction when a custom model provider is selected globally in ~/.codex/config.toml.

With OpenRouter configured as the default provider, the application launches but only exposes ChatGPT Work and Codex. The normal ChatGPT Chat interface is missing, and there is no apparent way to log into or manage a ChatGPT account.

Removing the global model and model_provider settings immediately restores the normal ChatGPT experience.

This suggests that the unified desktop application's ChatGPT functionality is improperly affected by Codex's custom model provider configuration.

Environment

  • Application: Unified ChatGPT desktop application
  • Bundle identifier: com.openai.codex
  • Application version: 26.1016.61520
  • Hardware: MacBook Pro, M2 Max (Apple Silicon)
  • macOS: Issue observed on macOS 15.7.4 and persisted after upgrading to macOS 27.0.1
  • Custom provider: OpenRouter
  • Configured model: deepseek/deepseek-v4.1-flash

Steps to reproduce

  1. Configure a custom model provider in ~/.codex/config.toml:

    model = "deepseek/deepseek-v4.1-flash"
    model_provider = "openrouter"
    
    [model_providers.openrouter]
    name = "OpenRouter"
    base_url = "https://openrouter.ai/api/v1"
    env_key = "OPENROUTER_API_KEY"
    wire_api = "responses"
  2. Set the OPENROUTER_API_KEY environment variable.

  3. Launch the unified ChatGPT desktop application.

  4. Observe that the application only offers ChatGPT Work and Codex in its mode selector.

  5. Open the settings menu. It displays OpenRouter as the provider/account label rather than the expected ChatGPT account experience.

  6. Quit the application.

  7. Remove only these two lines from ~/.codex/config.toml:

    model = "deepseek/deepseek-v4.1-flash"
    model_provider = "openrouter"
  8. Relaunch ChatGPT.

  9. Observe that the normal ChatGPT experience returns.

Actual behavior

When the custom provider is selected globally:

  • The normal ChatGPT Chat mode is missing.
  • Only ChatGPT Work and Codex are available.
  • ChatGPT account login and account settings are not accessible through the expected UI.
  • The settings menu displays OpenRouter at the top.
  • The application does not display an obvious error explaining the missing functionality.

The application otherwise launches successfully.

Expected behavior

The unified desktop application should continue to expose the normal ChatGPT Chat interface and account authentication regardless of the default model provider configured for Codex.

A custom Codex provider should not disable or replace ChatGPT account functionality.

If the custom provider is incompatible with ChatGPT-specific functionality, the application should isolate that configuration to Codex or present an actionable error rather than silently removing UI features.

Workaround

Remove the global model and model_provider settings:

# Remove these:
# model = "deepseek/deepseek-v4.1-flash"
# model_provider = "openrouter"

The [model_providers.openrouter] definition can remain in the configuration.

After removing the two global settings and relaunching, the normal ChatGPT interface returns.

No application reinstall or other configuration changes were necessary for this workaround.

Additional troubleshooting performed

Before identifying the configuration issue, I attempted the following without success:

  • Completely uninstalled and reinstalled the desktop application using the official OpenAI installer.
  • Removed legacy ChatGPT application data and preferences.
  • Disabled WireGuard.
  • Uninstalled a network filtering application (Victory Shield).
  • Rebooted macOS.
  • Upgraded the operating system from macOS 15.7.4 to macOS 27.0.1.

None of these steps resolved the issue.

The ChatGPT web application worked correctly throughout.

The only confirmed successful change was removing the two global model/provider settings from ~/.codex/config.toml.

Suspected cause

The unified desktop application appears to use Codex's globally configured model provider when initializing some part of its ChatGPT experience.

When that provider is OpenRouter, the application may incorrectly enter a state in which ChatGPT-specific account and Chat functionality are unavailable.

This is a hypothesis based on the observed behavior, not a confirmed root cause.

It is also not yet established whether the issue affects all custom model providers or only certain provider configurations.

Impact

This is particularly confusing for users who previously configured Codex with a third-party model provider.

The resulting application appears partially functional but provides no indication that the custom provider configuration is responsible for the missing ChatGPT functionality.

Because the setting lives in ~/.codex/config.toml, reinstalling the desktop application does not necessarily resolve the problem.

The workaround is simple once identified, but the failure mode is extremely difficult to diagnose without knowing that the unified ChatGPT application reads the existing Codex configuration.

Attachments

Screenshots available showing:

  1. The mode selector containing only ChatGPT Work and Codex.
  2. The settings menu displaying OpenRouter as the account/provider label.

Related reports

These reports describe similar missing-Chat-mode symptoms, although it is not established whether they share the same underlying cause.

Activity

  1. added
    bug
    app
    custom-model
    config
    auth
    on Oct 22, 2026
  2. github-actions commented on Oct 22, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugconfigcustom-model

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions