Skip to content

GitHub Copilot OAuth succeeds but provider is never registered ("Provider not found: github-copilot") #41820

Closed as not planned

Description

@SabbySingh1

Description

GitHub Copilot OAuth login appears to succeed, but OpenCode never registers the provider.

I successfully authenticate with GitHub Copilot using the device flow. After authorizing in the browser, OpenCode reports that the login completed and opencode providers list shows:

  • GitHub Copilot (oauth)

However, the provider cannot actually be used.

Running:

opencode models github-copilot

always returns:

Error: Provider not found: github-copilot

As a result, I cannot select or use GitHub Copilot even though the OAuth credentials are stored successfully.

I also verified that:

  • GitHub Copilot Student is active on my GitHub account.
  • The OAuth credentials exist in ~/.local/share/opencode/auth.json.
  • Re-authenticating multiple times does not fix the issue.
  • Upgrading OpenCode to the latest version does not fix the issue.

Plugins

None

OpenCode version

1.18.16

Steps to reproduce

  1. Install OpenCode 1.18.16 on macOS.
  2. Run OpenCode and choose GitHub Copilot as the provider.
  3. Complete the GitHub device OAuth flow successfully.
  4. Verify that opencode providers list shows "GitHub Copilot (oauth)".
  5. Run opencode models github-copilot.
  6. Observe the error: Provider not found: github-copilot.
  7. GitHub Copilot cannot be selected or used despite successful authentication.

Screenshot and/or share link

No response

Operating System

macOS Tahoe 26.5.1 (Apple Silicon)

Terminal

Apple terminal

Activity

  1. github-actions commented on Aug 11, 2026

    @github-actions
    Contributor

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

    Please review those issues to see if your situation matches, and consider adding a comment there rather than opening a new report.

  2. github-actions commented on Oct 11, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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