Skip to content

[FEATURE]: Could you add action of changing the BASE URL and Console API URL in Providers? #52218

Open

Description

@boyogala

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Could you add action of changing the BASE URL and Console API URL in Providers which that

https://opencode.ai/console/wrk_ID/providers

Can these two Settings be customized and modified by the user?

I'm really looking forward to it. It should work.

Image

Thanks a lot.

Sincerely
Boyogala.

Activity

  1. github-actions commented on Sep 30, 2026

    @github-actions
    Contributor

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

    • #33704: requests GUI editing of custom providers, including changing the base URL.
    • #18224: requests an edit flow for custom providers from model settings, including base URL and other provider settings.
  2. ankita37105 commented on Oct 26, 2026

    @ankita37105

    For the local CLI/TUI you can already override the base URL of any provider in opencode.json (project) or ~/.config/opencode/opencode.json:

    {
      "$schema": "https://opencode.ai/config.json",
      "provider": {
        "anthropic": {
          "options": { "baseURL": "https://your-gateway.example.com/v1" }
        }
      }
    }

    For a host that isn't a built-in provider, add a custom provider with "npm": "@ai-sdk/openai-compatible" and the same options.baseURL. Use the /v1 root, not /v1/chat/completions, or you'll get 404s. That covers the local app. The console page in your screenshot is a separate setting, which #33704 and #18224 already track.

    Disclosure: I work on APIClaw, an OpenAI-compatible gateway, and this is the config we use with it. It works the same with any /v1 host.

  3. opencodejr commented on Oct 28, 2026

    @opencodejr
    Contributor

    Thanks for the suggestion, @boyogala!

    If I understand correctly, you'd like to be able to edit the Base URL and the Console API URL of the providers on your workspace's Providers page in the OpenCode Console (opencode.ai/console/<workspace>/providers). Right now those fields can't be changed there. The maintainers will consider this.

    In the meantime, if you want the OpenCode app itself to use a custom endpoint, you can already set it per provider in your opencode.json:

    {
      "provider": {
        "<provider-id>": {
          "options": {
            "baseURL": "https://your-endpoint.example.com/v1"
          }
        }
      }
    }

    It would also help to know your use case, for example a proxy, a gateway or a self-hosted endpoint, and which provider it's for.

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