Skip to content

custom providers do not inherit provider loaders #18486

Closed as not planned
Closed as not planned

Description

@raf1hh

Description

Providers configured in opencode.json inherit config values, but they do not inherit the referenced provider's auth/model loader behavior. That breaks aliased providers that expect built-in provider SDK options or dynamic model loading.

Plugins

No response

OpenCode version

No response

Steps to reproduce

  1. Configure a custom provider:
{
  "$schema": "https://opencode.ai/config.json",
  "provider": {
    "my-github-copilot": {
      "name": "my-github-copilot",
      "npm": "@ai-sdk/github-copilot"
    }
  }
}

The auth will default to api-key even though @ai-sdk/github-copilot support oAuth natively. The expectation is that "my-github-copilot" should allow me to chose between oAuth and api-key.

Opening this issue for my PR that adds auth-provider that would solve the issue.

Screenshot and/or share link

No response

Operating System

macOS

Terminal

Ghostty

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Mar 21, 2026
  2. changed the title [-]custom providers using auth_provider do not inherit provider loaders[/-] [+]custom providers do not inherit provider loaders[/+] on Mar 21, 2026
  3. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  4. github-actions commented on Jul 4, 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