r/opencode • • 5d ago

How to add custom provider ?

Post image

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

9 comments sorted by

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.

1

u/nsfcom 5d ago

it takes a lot longer , consume tokens , the models sometimes are not doing it correctly or touching other things they should not touch

removing it is not a good idea

3

u/Robonotes1760 5d ago

It worked fine for me.

1

u/Decent_Flight4010 5d ago

For me too. Deepseek 4.1 flash is a monster

2

u/MLGSW4G 5d ago

It was removed in 2.2.0. You have to edit your opencode.jsonc file

2

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.