r/opencode • u/nsfcom • 5d ago
How to add custom provider ?
I'm using opencode desktop on Windows version number Version 2.3.2
I can't find. The option to add custom provider. It was there before. But now I think it was hidden or removed to another location in the UI
I tried to search for it in the list But nothing.
Kindly guide me if you have any information about this.
6
Upvotes
7
u/Robonotes1760 5d ago
The easiest way to add a custom provider is to let one of your existing AI agents in OpenCode (even Big Pickle) set it up for you.
2
u/MLGSW4G 5d ago
It was removed in 2.2.0. You have to edit your
opencode.jsoncfile2
u/taytay735 5d ago
Same way as the TUI. https://opencode.ai/docs/providers/#custom
Inside ~/.config/opencode/opencode.jsonc, or the equivalent bundled opencode server in the Desktop app
2
u/ssneoh 5d ago
Have to manually add? I wonder why they remove the option, it is useful.
2
u/nuaing11 5d ago
Just use openchamber
1
u/ueritomrb 4h ago
No meu caso eu descobri conversando com a IA do próprio OpenCode (eu uso Windows) que eu tinha que ir até C:\Users\xxxx\.config\opencode (xxxx é o meu nome de usuário no Windows) e criar um arquivo chamado opencode.json ou opencode.jsonc e inserir a configuração do modelo lá dentro.
Depois disso no chat do OpenCode dar /reload para reiniciar e por fim /model para escolher o modelo que cadastrei.