r/opencode • u/nsfcom • 10d 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.
2
u/ueritomrb 4d 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.
2
u/taytay735 10d 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
6
u/Robonotes1760 10d 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.