Skip to content

Add gpt-5.4-pro to ChatGPT Plus/Pro OAuth allowlist #19366

Closed

Description

@sosise

Question

Hi! Thanks for OpenCode — the ChatGPT Plus/Pro OAuth flow works great.

I noticed that in packages/opencode/src/plugin/codex.ts, the OAuth allowlist includes:

  • gpt-5.4
  • gpt-5.4-mini

but does not include:

  • gpt-5.4-pro

At the moment, this means gpt-5.4-pro does not show up when using the ChatGPT Plus/Pro auth method, even though regular gpt-5.4 does.

Would it be possible to add gpt-5.4-pro to the allowlist, or clarify whether this omission is intentional?

Relevant code section:

const allowedModels = new Set([
  "gpt-5.1-codex",
  "gpt-5.1-codex-max",
  "gpt-5.1-codex-mini",
  "gpt-5.2",
  "gpt-5.2-codex",
  "gpt-5.3-codex",
  "gpt-5.4",
  "gpt-5.4-mini",
])

Questions:

  1. Is gpt-5.4-pro intentionally unsupported for ChatGPT Plus/Pro OAuth in OpenCode?
  2. If not, could it be added to the allowlist?
  3. If support depends on upstream OpenAI/Codex restrictions, could that be documented so users understand why gpt-5.4 is available but gpt-5.4-pro is not?

This would help clarify whether the limitation is:

  • an OpenCode-side filtering decision,
  • an upstream auth/backend restriction,
  • or simply something that has not been added yet.

Thanks!

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 27, 2026
  2. github-actions commented on Mar 27, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

  3. abaskalov commented on Mar 27, 2026

    @abaskalov

    I tested this locally with a ChatGPT Personal Pro OAuth login.

    After patching the OpenCode OAuth/Codex allowlist, gpt-5.4-pro does appear in opencode models openai, so the model is indeed being hidden on the OpenCode side right now.

    However, the actual request still fails on the OpenAI backend with:

    The 'gpt-5.4-pro' model is not supported when using Codex with a ChatGPT account.

    So this looks like two separate constraints:

    1. OpenCode currently hides the model via the local allowlist
    2. OpenAI currently blocks gpt-5.4-pro for the ChatGPT-account Codex flow anyway

    I wrote up the reproduction and result here:
    https://gist.github.com/abaskalov/e25fceccc0826c4679a9900f6ca70055

  4. sosise commented on Mar 28, 2026

    @sosise
    Author

    close

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

Metadata

Metadata

Assignees

Labels

coreAnything pertaining to core functionality of the application (opencode server stuff)

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions