Skip to content

feat: export the Codex CLI's model catalog - #22

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-9490-codex-provider-export-the-models-a-chatgpt-login-can-serve
Sep 29, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-9490-codex-provider-export-the-models-a-chatgpt-login-can-serve

Conversation

@TheGreatAxios

@TheGreatAxios TheGreatAxios commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

Adds CODEX_DEFAULT_MODELS, the model ids a ChatGPT login can request, so a host's catalog can take them from this package instead of hard-coding them. It is the counterpart of @corbits/xai-provider's XAI_DEFAULT_MODELS.

The list is every model the Codex CLI's bundled catalog (openai/codex@b1e72963c3, codex-rs/models-manager/models.json) marks visibility: "list", sorted by its priority. Hidden entries are left out: the two gpt-daybreak-* models and codex-auto-review, which the catalog describes as the CLI's automatic approval-review model. The CLI uses that catalog when its live /codex/models fetch fails.

Verification

  • bun run check passes: typecheck, lint, format and the 17 unit tests.
  • Live, through Solution Builder with a ChatGPT login, gpt-5.6-sol, gpt-6-astra and gpt-6-sol answered. The rest are taken from the CLI's catalog and are not yet exercised against an account.

Closes CL-9490

@TheGreatAxios TheGreatAxios changed the title feat: export the models a ChatGPT login serves feat: export the Codex CLI's model catalog Sep 29, 2026
@TheGreatAxios
TheGreatAxios merged commit 307a591 into main Sep 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant