Skip to content

Can users customize the relay API server and model? #6134

Closed as not planned
Closed as not planned

Description

@gearlam

Question

Why hasn't this important feature been developed yet? There are many casual users who need custom API interface services!

Activity

  1. github-actions commented on Dec 24, 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.

  2. gearlam commented on Dec 24, 2025

    @gearlam
    Author

    This issue might be a duplicate of existing issues. Please check:这个问题可能是现有问题的重复。请查看:

    Feel free to ignore if none of these address your specific case.如果以上都不适用于您的具体情况,请忽略。

    I've checked, and the problem remains unresolved! I especially want to mention that I suggest adding this feature to the desktop version; I know many people are using the API relay service! Please add a provider compatible with OpenAI!!! The user script configuration is too cumbersome!

  3. rekram1-node commented on Dec 25, 2025

    @rekram1-node
    Collaborator

    What r u referring to?

  4. exAClior commented on Dec 25, 2025

    @exAClior

    The key is to specify baseURL in options and models. You can always follow instruction on https://opencode.ai/docs/providers/#custom-provider and do this

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "myprovider": {
          "npm": "@ai-sdk/openai-compatible",
          "name": "My AI ProviderDisplay Name",
          "options": {
            "baseURL": "https://api.myprovider.com/v1"
          },
          "models": {
            "my-model-name": {
              "name": "My Model Display Name"
            }
          }
        }
      }
    }
  5. tisDDM commented on Dec 25, 2025

    @tisDDM

    The key is to specify baseURL in options and models. You can always follow instruction on https://opencode.ai/docs/providers/#custom-provider and do this

    Completely agree. You only need to change the baseURL for the appropriate provider - I am using this for Anthropic over Azure on daily basis. Works like a charm.

  6. thdxr commented on Mar 25, 2026

    @thdxr
    Member

    To stay organized issues are automatically closed after 90 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