Skip to content

GitHub Copilot's gpt-5-codex model is not accessible via OpenAI /chat/completions endpoint #2778

Closed as duplicate

Description

@falcon-head

I'm trying to use GPT-5-Codex within opencode. I have successfully enabled access to the GPT-5-Codex model through my GitHub account settings, but when attempting to use the model in opencode, I'm encounter the below error

AI_APICallError: model gpt-5-codex is not accessible via the /chat/completions endpoint

Steps to Reproduce:

  • Enabled GPT-5-Codex model access in GitHub account settings
  • Configured OpenCode to use GPT-5-Codex as the model
  • Attempted to run opencode with GPT-5-Codex
  • Error occurs preventing model usage

Environment

  • Opencode version : v0.11.3
  • OS: MacOS Tahoe
  • Model: gpt-5-codex through github copilot
Image

Activity

  1. github-actions commented on Sep 25, 2025

    @github-actions
    Contributor

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

    Feel free to ignore if none of these address your specific case.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions