You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: Could you add action of changing the BASE URL and Console API URL in Providers? #52218
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.
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:
Activity
github-actions commentedon Sep 30, 2026
This issue might be a duplicate of existing issues. Please check:
ankita37105 commentedon Oct 26, 2026
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 sameoptions.baseURL. Use the/v1root, 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
/v1host.opencodejr commentedon Oct 28, 2026
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.