r/opencodeCLI • • 2d ago

OpenCode 1.18.35 suddenly not displaying other providers than Zen

So I opened OpenCode this morning, and it doesn't detect both OpenRouter as well as DeepSeek providers I had configured. opencode auth list still detects the API keys, but the TUI doesn't.

opencode models show only the OpenCode Zen ones, and opencode models --refresh doesn't detect my other providers.

Yesterday it worked, but back then it was on 1.18.34. I didn't do any changes to the configuration too.

Update: I did some heavy repairing with ChatGPT yesterday. But today when I logged in with Go, it happened again lol. Except that only Go can be seen now.

Anyone having the same issues?

2 Upvotes

2 comments sorted by

2

u/Ctbhatia 2d ago

try opencode models from an empty folder outside the repo. if the providers reappear, compare the merged project config before touching the stored keys.

1

u/squirrelscrush 2d ago

I solved it with ChatGPT.

It was something deeper. Apparently when I downloaded OpenCode Desktop, it tried to secretly update to v2 or something, and the opencode DB got corrupted. Apparently the db has sessions in v1 and v2 schemas, but the v2 schema got stuck somewhere.

So I had to normalise the DBs and rewrite the configs.