You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@thdxr still getting the same even after removing cache. Do I need to any other config before running command? OpenAI and Anthropic models work, but not Google.
@homanp@thdxr looks like the auth is not set properly..
opencode run --model anthropic/claude-sonnet-4-20250514 --print-logs "create test.txt file with some summy text"
This failed .. providerModelNotFound
I have this issue with OpenRouter (any model so far), double checked the auth.json, the api key is correct, I even tried copy & pasting the openrouter example from the docs and tried exactly that model: Same error.
It’s written there. Remove the npm entry from the documentation sample there, clear the cache, run open code again. This should re install the cache with the correct packages.
Activity
thdxr commentedon Jun 24, 2025
that exact line worked for me - can you try clearing
~/.cache/opencodehomanp commentedon Jun 24, 2025
will check
homanp commentedon Jun 24, 2025
@thdxr still getting the same even after removing cache. Do I need to any other config before running command? OpenAI and Anthropic models work, but not Google.
rajivraghu commentedon Jun 25, 2025
@homanp @thdxr looks like the auth is not set properly..
opencode run --model anthropic/claude-sonnet-4-20250514 --print-logs "create test.txt file with some summy text"
This failed .. providerModelNotFound
When i explicitly set the key , it worked
anthropic works!!
google is failing 👎
rajivraghu commentedon Jun 25, 2025
@thdxr if i manually set opencode auth login via cli by selecting stuff it works..
daemonfire300 commentedon Jul 10, 2025
I have this issue with OpenRouter (any model so far), double checked the auth.json, the api key is correct, I even tried copy & pasting the openrouter example from the docs and tried exactly that model: Same error.
Was still on 0.2.13
Upgraded to 0.2.20
Testing again. Will report back.
daemonfire300 commentedon Jul 10, 2025
Same issue.
Normal Anthropic works, except that every request is an
Overloadbut that's on anthropics side.Still, cannot get OpenRouter to work.
I think this seems to get my one step further and then I end up with:
Then running
rm -rf ~/.cache/opencodeagainThen running
opencode run -m 'openrouter/mistralai/devstral-small' --print-logs 'Say test'again now gives me:daemonfire300 commentedon Jul 10, 2025
Fix is described here: #758 (comment)
homanp commentedon Jul 10, 2025
What was the fix?
daemonfire300 commentedon Jul 11, 2025
It’s written there. Remove the npm entry from the documentation sample there, clear the cache, run open code again. This should re install the cache with the correct packages.
rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!