add Custom Base URL for gemini and anthropic like cline and roocode #77

Closed
opened 2026-02-16 17:25:06 -05:00 by yindo · 5 comments
Owner

Originally created by @sudip358 on GitHub (Jun 15, 2025).

Originally assigned to: @thdxr on GitHub.

Image

Please add custom base url for anthropic and geminin

Originally created by @sudip358 on GitHub (Jun 15, 2025). Originally assigned to: @thdxr on GitHub. ![Image](https://github.com/user-attachments/assets/e86eef53-4101-4087-bcf2-cfcf235feda6) Please add custom base url for anthropic and geminin
yindo closed this issue 2026-02-16 17:25:06 -05:00
Author
Owner

@thdxr commented on GitHub (Jun 15, 2025):

you can specify options under the provider in opencode.json

{
  "provider": { "google": { "options": { "baseURL": "xxx" } } } 
}

is that what you're looking for?

@thdxr commented on GitHub (Jun 15, 2025): you can specify `options` under the provider in `opencode.json` ``` { "provider": { "google": { "options": { "baseURL": "xxx" } } } } ``` is that what you're looking for?
Author
Owner

@sudip358 commented on GitHub (Jun 18, 2025):

yes sir thanks

@sudip358 commented on GitHub (Jun 18, 2025): yes sir thanks
Author
Owner

@sudip358 commented on GitHub (Jun 18, 2025):

{
"provider": { "google": { "options": { "baseURL": "xxx" } } } ,
{ "anthropic": { "options": { "baseURL": "xxx" } } }

}

is this good to go?

@sudip358 commented on GitHub (Jun 18, 2025): { "provider": { "google": { "options": { "baseURL": "xxx" } } } , { "anthropic": { "options": { "baseURL": "xxx" } } } } is this good to go?
Author
Owner

@thdxr commented on GitHub (Jun 18, 2025):

should work yes but what exactly are you trying to do?

@thdxr commented on GitHub (Jun 18, 2025): should work yes but what exactly are you trying to do?
Author
Owner

@thdxr commented on GitHub (Jun 19, 2025):

closing this for now - README should have all info you need

@thdxr commented on GitHub (Jun 19, 2025): closing this for now - README should have all info you need
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#77