Repository navigation
Description
What version of the Codex App are you using (From “About Codex” dialog)?
26.422.30944
What subscription do you have?
Plus
What platform is your computer?
Microsoft Windows NT 10.0.26200.0 x64
What issue are you seeing?
Title
Codex Desktop model picker filters out models returned from official model_catalog_json config
Bug report
What variant of Codex are you using?
Codex Desktop App
What issue are you seeing?
The Codex Desktop App model picker does not show models that are loaded from a locally configured model_catalog_json file, even though model_catalog_json is an officially supported config.toml key.
The app-server appears to load the configured model catalog correctly and returns the custom models through model/list. However, the Desktop UI does not render these models in the model picker.
This makes models from a valid local catalog unavailable from the Desktop model picker, even though they are available to Codex through configuration and can be used when set directly in config.toml.
Why I am filing this as a bug
I am filing this as a bug because model_catalog_json is an officially supported configuration key.
If the app-server resolves the effective model catalog and returns the configured models via model/list, the Desktop model picker should respect that effective model list. The Desktop UI should not remove locally configured catalog models after they have already been loaded by the app-server.
Remote allowlists, rollout gates, or entitlement checks may make sense for OpenAI-hosted first-party models. However, they should not filter out locally configured custom/provider models that were explicitly loaded from model_catalog_json.
This is not a request to bypass entitlement checks for OpenAI-hosted models. The issue is specifically about locally configured catalog models for a custom/OpenAI-compatible provider.
Relevant config.toml
Example:
model_catalog_json = "C:\\Users\\abc\\.codex\\local-models.json"
model = "some-name"
model_provider = "local-provider"
[model_providers.local-provider]
name = "local-provider"
base_url = "http://127.0.0.1:5092/v1"
wire_api = "responses"
env_key = "CODEX_LOCAL_PROVIDER"
requires_openai_auth = false
supports_websockets = false
request_max_retries = 4
stream_max_retries = 5
stream_idle_timeout_ms = 300000Current behavior
model_catalog_jsonis configured inconfig.toml.- The model catalog JSON contains visible custom models with
hidden: false. - The app-server loads the model catalog.
- The app-server returns the custom models through
model/list. - The Codex Desktop model picker does not show these models.
- If
model = "some-model-name"is set directly inconfig.toml, the Desktop App may showCustom, but the configured model string is still sent correctly.
Expected behavior
When model_catalog_json is configured, Codex Desktop should show the visible models from the effective model catalog in the model picker.
At minimum, the Desktop renderer should not apply an additional remote allowlist/filter that removes locally configured catalog models returned by the app-server.
A reasonable behavior would be:
- First-party OpenAI models can still be filtered by entitlement or rollout rules.
- Locally configured models from
model_catalog_jsonshould be shown if they are returned bymodel/listand are not marked as hidden. - The model picker should use the model key/slug returned by the app-server instead of only allowing model IDs from a remote allowlist.
Why this matters
model_catalog_json is important for custom providers, local gateways, enterprise proxies, and OpenAI-compatible bridges.
Without Desktop model picker support, users have to manually edit config.toml whenever they want to switch between locally configured models. The configured model may still work, but the UI gives the impression that the model is unsupported or unavailable.
This is confusing because the model is available according to the app-server, but invisible in the Desktop App.
Additional notes
This appears to be a Desktop UI filtering issue rather than a model catalog or provider issue.
The backend/app-server side seems to have the correct effective model list. The filtering appears to happen after model/list, inside the Desktop renderer/model picker UI.
What steps can reproduce the bug?
- Configure a custom/OpenAI-compatible model provider in
config.toml.
Example:
model_catalog_json = "C:\\Users\\abc\\.codex\\custom-model-catalog.json"
model = "some-model-name"
model_provider = "custom_openai_compat_provider"
[model_providers.custom_openai_compat_provider]
name = "custom_openai_compat_provider"
base_url = "http://127.0.0.1:5092/v1"
wire_api = "responses"
env_key = "CUSTOM_PROVIDER_TOKEN"
requires_openai_auth = false
supports_websockets = false
- Create the referenced model catalog JSON file and include at least one visible custom model.
Example:
{
"models": [
{
"slug": "some-model-name",
"displayName": "Some Model Name",
"provider": "custom_openai_compat_provider",
"hidden": false
}
]
}
-
Start or restart the Codex Desktop App so that the
model_catalog_jsonsetting is loaded. -
Verify that the app-server has loaded the model catalog and that the custom model is returned by the model list endpoint.
-
Open the Codex Desktop App model picker.
-
Observe that the model from the configured
model_catalog_jsonfile is not shown in the model picker. -
Set
model = "some-model-name"directly inconfig.toml. -
Start the Desktop App again.
-
Observe that the Desktop App may show the selected model as
Custom, but the configured model string is still passed through correctly.
What is the expected behavior?
When model_catalog_json is configured in config.toml, the Codex Desktop App should show the visible models from the effective model catalog in the model picker.
If the app-server loads the configured catalog and returns a model through the model list endpoint, the Desktop UI should not remove that model from the picker only because it is not part of a remote allowlist or rollout configuration.
Expected behavior:
- Models loaded from
model_catalog_jsonshould appear in the Desktop model picker if they are returned by the app-server and are not marked as hidden. - Locally configured custom/provider models should not be filtered out by remote rollout or allowlist logic intended for first-party OpenAI models.
- First-party OpenAI models can still be subject to entitlement checks, rollout gates, or account-specific availability.
- Custom/provider models from an explicitly configured local catalog should remain visible and selectable.
- The picker should use the model identifier returned by the app-server, for example
some-model-name, instead of requiring it to exist in a remote list of known OpenAI model IDs.
Additional information
This appears to be a Desktop UI filtering issue rather than a model catalog or provider issue.
The configured model_catalog_json file is loaded correctly by the app-server, and the custom models are returned through the model list endpoint. However, the Electron/Desktop renderer appears to apply an additional client-side filter before rendering the model picker.
This is confusing because the effective backend configuration knows about the model, but the Desktop UI hides it.
This is not a request to bypass entitlement checks for OpenAI-hosted first-party models. The issue is specifically about locally configured models from an official model_catalog_json config key and a custom/OpenAI-compatible provider.
The current workaround is to set the desired model directly in config.toml, for example:
model = "some-model-name"
model_provider = "custom_openai_compat_provider"
With this workaround, the Desktop App may show Custom in the model picker, but it still passes the configured model string through correctly. However, this requires manual config editing and makes the model picker unusable for switching between locally configured catalog models.
Activity
github-actions commentedon Apr 26, 2026
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
trite8q1 commentedon May 15, 2026
Same problem
makainan123-prog commentedon May 18, 2026
+1
hheei commentedon May 25, 2026
Reproduced on Codex Desktop App on macOS.
In my case, a custom model loaded via
model_catalog_jsonis present in the backend catalog, but does not appear in the Desktop model picker UI.Observed behavior:
~/.codex/config.tomlpointsmodel_catalog_jsonto a custom catalogcodex debug modelsincludesdeepseek-v4-proin the final catalogmodel = "deepseek-v4-pro")model=deepseek-v4-proSo this looks like a Desktop picker / frontend filtering issue rather than a catalog parsing or provider issue.
I also confirmed this is not just stale config: after restarting the app, the picker still omits the model while backend debug output still includes it.
ryoreonhz-dev commentedon May 27, 2026
I can reproduce a similar issue in Codex Desktop App on macOS.
Environment:
Behavior:
Expected:
Workaround:
Relevant config:
model = "deepseek-v4-pro"
model_provider = "moonbridge"
model_catalog_json = "/Users/liangliang/.codex/models_catalog.json"
[model_providers.moonbridge]
name = "Moon Bridge"
base_url = "http://127.0.0.1:38440/v1"
wire_api = "responses"
fix: unlock Codex Desktop multirouter models
Candlend commentedon Jul 6, 2026
+1
steveepreston commentedon Jul 7, 2026
+1 Please
StellarWarp commentedon Jul 10, 2026
Blocking
ab.chatgpt.comand removingleveldbcan be temporary solution, as it relates to filter policies obtained online.On Windows you can add
127.0.0.1 ab.chatgpt.comtoC:\Windows\System32\drivers\etc\hostsand delete~\AppData\Local\Packages\OpenAI.Codex_<some hash>\LocalCache\Roaming\Codex\web\Codex\Default\Local Storage\leveldbrahul-nexailabs commentedon Jul 10, 2026
Confirming the
ab.chatgpt.comworkaround from above works. Full recipe that got my custommodel_catalog_jsonmodels showing in the Desktop picker, with one gotcha about which cache to delete:Environment: Windows 11, Codex Desktop 26.707 (MSIX /
OpenAI.Codex_2p2nqsd0c76g0), codex-cli 0.135.0, custom Azure provider (wire_api = "responses") +model_catalog_jsonwith 10 models (visibility = "list").Symptom: app-server loads the catalog fine (models run via
codex exec -m <slug>and show in the TUI/modelpicker), but the Desktop picker filtered them out — it only rendered catalog entries whose slug matched a stock model name. The filter is a Statsig policy fetched fromab.chatgpt.comand cached in Local Storage; it fails open when the policy is unavailable.Steps that worked:
C:\Windows\System32\drivers\etc\hosts(as admin):web\Codex\Default. There's a similar-looking...\LocalCache\Roaming\Codex\Local Storage\leveldbone level up — clearing that one does nothing (I did that first and the filter survived, because the real policy cache was untouched).Result: the Desktop picker now shows every model from my
model_catalog_json— custom display names and per-model reasoning-effort menus (supported_reasoning_levels) all render correctly. I did not need to block the statsig fallback endpoints (statsigapi.net/statsigcdn.com); the hosts line + cache clear was enough.Rollback is trivial: remove the hosts line, restore/delete the renamed folder.
Obviously a workaround, not a fix — the renderer should trust the catalog the app-server already validated.
Menci commentedon Jul 10, 2026
The comment is sent by an agent, behalf of @Menci.
Confirming your "additional client-side filtering step" hypothesis with concrete function locations in the shipping bundle. Same root cause is now hitting gpt-5.6 (see #32119, #32049).
Filter location (Codex/ChatGPT.app
26.707.31428,com.openai.codex):webview/assets/app-initial~app-main~onboarding-page~...~k0ede4gb-C17KDkOa.js:$v(e)— zod-parsesuse_hidden_models,available_models,default_modeloff the Statsig dynamic-config payloaday()— readseee('107580212').valueJv({authMethod:e, availableModels:t, models:a, useHiddenModels:o})— the picker filter:Verify live (paste into DevTools console once you have one on the app):
For any non-ChatGPT-authed session (API-key, Azure, custom OpenAI-compatible) the whitelist branch runs and every
hidden:falsemodel thatapp-server model/listreturned —gpt-5.6-{sol,terra,luna}included — gets stripped, even though the CLI running from the same bundle can invoke them fine.One-byte shim (per-install; gets wiped by Sparkle):
Renames the string literal inside
$v()sosafeParse(e.use_hidden_models)misses and the field defaults tofalse. Length-preserving (asar header untouched), idempotent, reversible. Works becauseEnableEmbeddedAsarIntegrityValidationfuse is OFF on shipped builds.Fix at the source — any one of these:
Jv/ive: skip the whitelist branch whenauthMethod !== 'chatgpt'. Custom API-key providers shouldn't be gated by a ChatGPT-account-scoped rollout list.Jv/ive: unionavailableModelswithmodels.filter(m => !m.hidden)before thet.has()check, so provider-returned visible models can never be dropped.107580212targeting.Happy to help verify a fix if useful.
GiuseppeCapaldo93 commentedon Jul 17, 2026
Adding a Windows / MSIX data point that corroborates @Menci's analysis, plus a durable fix recipe for the packaged (Store) build where the macOS "edit
app.asarin place + re-codesign" trick doesn't apply.Environment
26.715.2305.0(OpenAI.Codex_2p2nqsd0c76g0,SignatureKind=Store)model_provider(in my case a LiteLLM proxy onhttp://127.0.0.1:8082/v1,wire_api = "responses", dummy API key) — but the behavior below is independent of the proxy; any non-ChatGPT auth reproduces itmodel_catalog_jsonwith ~14 models, allvisibility = "list"(hiddenunset ⇒ false)Reproduction (Codex side)
codex debug models/ CLI-m <slug>/ TUI/modelall see and run every model from the catalog.hidden:falsemodel thatapp-server model/listreturned was stripped by the renderer.l = useHiddenModels && authMethod !== 'amazonBedrock', thenl ? availableModels.has(model) : !hidden. For any non-ChatGPT auth (API-key / custom OpenAI-compatible provider) the whitelist branch runs and drops provider-returned visible models, even though the same bundle's CLI can invoke them fine.This is purely a renderer-side filter on top of a catalog the app-server already validated — the proxy/endpoint is irrelevant to the bug.
What did not work reliably on Windows
The
127.0.0.1 ab.chatgpt.com+ delete-leveldbworkaround from above was inconsistent for us: the dynamic config is also seeded in-memory from the post-login backend call/wham/statsig/bootstrap(raced against a timeout), so clearing the on-disk Statsig cache didn't durably remove the allowlist — after re-login the picker filtered again. So we needed a client-side code patch.Durable fix on the packaged build (one byte, length-preserving)
Instead of renaming the
use_hidden_modelsliteral, we flipped the filter'samazonBedrockcomparison so the whitelist branch never runs for non-bedrock auth:u = s && e !==amazonBedrock→ `u = s && e === `amazonBedrock(0x21→0x3d, one byte)⇒
uisfalsefor a custom provider ⇒ filter degrades to!hidden⇒ all non-hidden catalog models render. (There are two!==amazonBedrock`` occurrences in that bundle; only the first, inside the picker filter, should be patched — patch by exact byte offset.)The asar-integrity fuse (
EnableEmbeddedAsarIntegrityValidation) is OFF on the shipped build (the@electron/fusessentinel is absent from the whole package), so the modified asar loads without any integrity rejection — matching @Menci's note.Windows packaging caveat: you can't just edit the installed
app.asarand relaunch — the files underWindowsAppscarry an MSIX trust label (ACL) and the app is deployed as a signed package. The route that works:app\resources\app.asar.AppxSignature.p7x,AppxBlockMap.xml,AppxMetadata\);makeappx packthe folder.Publisher; trust it inLocalMachine\Root+TrustedPeople.Add-AppxPackagethe signed.msix(installs asSignatureKind=Developer).After this the picker lists all catalog models correctly (custom display names + per-model reasoning levels render fine). Survives cache clears and re-login. Reverts on the next app update (fresh Store build), so it must be re-applied per version.
Ask
This still lands on the source-side fixes @Menci proposed — ideally skip the whitelist branch when
authMethod !== 'chatgpt', or unionavailableModelswithmodels.filter(m => !m.hidden)before thehas()check. A locally-configured, app-server-validatedmodel_catalog_jsonserved over any custom OpenAI-compatible endpoint shouldn't be filtered by a ChatGPT-account-scoped rollout list. Happy to help verify a fix on Windows/MSIX.328480460 commentedon Jul 22, 2026
I think this issue may be caused by the Desktop app model picker only loading the first 100 models.
From what I found, the app-server side can return the custom models from
model_catalog_json, and the protocol supports pagination viacursor/nextCursor. However, the Desktop renderer calls the model list API with something equivalent to:Then the model picker only consumes that first page. The list is also ordered by the model priority field ascending, so only the first 100 models by priority are visible in the Desktop picker.
This means custom models may be loaded correctly and may even be usable directly by setting model = "..." in config.toml, but they will not appear in the Desktop model picker if they are ranked after the first 100 models.
One way to verify this is to give the custom model used in the repro a very small priority, for example 0 or 1, in model_catalog_json, then restart the Desktop app. If the model appears in the picker after that, it confirms that the model was loaded correctly but was previously hidden because it was outside the first 100 entries.
A temporary workaround is to assign smaller priority values to the custom models that should appear in the Desktop picker, or keep the effective model catalog under 100 entries.
The proper fix in Codex Desktop would probably be one of:
paginate through nextCursor until all models are loaded;
remove or raise the hardcoded limit: 100;
make the picker search/query the backend instead of only filtering the first page locally.
So this does not seem to be only a model_catalog_json loading issue. The models can be present in the app-server response, but still be hidden by the Desktop picker because of the 100-model first-page limit and priority ordering.
Menci commentedon Jul 24, 2026
That doesn't seem to be a product design since with OpenAI account logged in the custom model gate is open. It mostly seems like an inconsistency between logged-in path and non-logged-in path. Same bug also occurred on GPT-5.6's release day, all non-logged-in users can't see GPT-5.6 until OpenAI fixed the bug on their server-side.
abcultima commentedon Aug 5, 2026
I can reproduce this on a current Windows 10 installation of Codex Desktop.
Environment
Reproduction and evidence
model_catalog_json = "cc-switch-model-catalog.json"in~/.codex/config.toml.responsesprovider and set a non-stock model slug as the default model.visibility: "list"andsupported_in_api: true.The configuration is not merely ignored: Codex app-server logs show that a session is configured with the custom provider and the configured custom model slug, and requests are sent using that slug. The same logs also contain:
The upstream provider lists the same three model IDs successfully, but this does not affect the empty Desktop picker. Setting a model directly in
config.tomlworks as a fixed-model workaround, but the UI cannot be used to switch among the locally configured models.This is another current Windows data point for the Desktop renderer filtering locally configured models after the backend/app-server configuration has been accepted. Please make the Desktop picker trust non-hidden entries returned by the effective local model catalog for custom providers, rather than applying a remote allowlist intended for first-party models.
hauomu commentedon Aug 8, 2026
Additional single-machine A/B observation from a current Windows Desktop build. This is a first-party GPT-5.6 case rather than a custom-provider case, but it may help narrow the picker initialization/filtering behavior.
Environment:
OpenAI.Codex26.803.5235.026.803.415150.147.0Initial state:
gpt-5.6-lunawithvisibility = "list"and the expected reasoning levels;model_catalog_jsoncompatibility shim was already active (the only semantic Luna change ismulti_agent_version: v1 -> v2);I then added only these top-level defaults to
~/.codex/config.toml:and fully terminated all
ChatGPT.exeandcodex.exeprocesses before relaunching Desktop.After relaunch:
5.6 Luna Medium;This was not merely a display change. I created a brand-new thread without touching the picker first and inspected persisted runtime metadata. Its authoritative
turn_contextcontained:So in this environment, explicitly setting a catalog-visible model as the global default and then doing a genuinely clean Desktop/app-server restart appears to have rehydrated/repaired the native picker state, not merely bypassed it.
Important caveat: N=1. I have not reproduced this on a second machine, so I would treat it as a candidate workaround / diagnostic clue rather than a confirmed general fix. It suggests the renderer is capable of representing Luna correctly and that the selected/default model state can affect the picker model/effort set that gets initialized.
This also differs from stale-runtime cases: the Desktop backend here was freshly verified as
0.147.0before the test.fix: drop the model-picker filter patch, fixed upstream
docs(codex-app-models): document Desktop remote allowlist limitation
fix: drop the model-picker filter patch, fixed upstream