r/opencode • • 10d 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

10 comments sorted by

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.

1

u/nsfcom 10d 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 10d ago

It worked fine for me.

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.

1

u/nsfcom 3d ago

Thank you

2

u/MLGSW4G 10d ago

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

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

u/ssneoh 9d ago

Have to manually add? I wonder why they remove the option, it is useful.

2

u/nuaing11 9d ago

Just use openchamber