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
I ran rm -rf ~/.cache/opencode and then in the same directory:
λ opencode ls
models.json package.json tui
λ opencode npm i
npm error code ETARGET
npm error notarget No matching version found for @openrouter/ai-sdk-provider@beta.
npm error notarget In most cases you or one of your dependencies are requesting
npm error notarget a package version that doesn't exist.
So, how can I install the dependencies again, just reinstalling the app? This is the content of package.json
I have also just installed opencode and I am trying to use a custom provider, but it keeps setting the version to @beta (like this issue) - is there a way to disable this or specify the version of the package to use?
Activity
thdxr commentedon Jul 9, 2025
hm we shouldn't be using that package at all - do you have config somewhere pointing to that package?
cravenceiling commentedon Jul 9, 2025
I don't think so.
lhjt commentedon Jul 10, 2025
I have also just installed opencode and I am trying to use a custom provider, but it keeps setting the version to
@beta(like this issue) - is there a way to disable this or specify the version of the package to use?lhjt commentedon Jul 10, 2025
I found the line and it appears it is being forced here:
https://github.com/sst/opencode/blob/085c0e4e2b8518d740f75372367a44d19b22f90e/packages/opencode/src/provider/provider.ts#L361
Would the way to fix this be to allow versions to be specified in the
npmkey and be used instead of forcing beta?daemonfire300 commentedon Jul 10, 2025
It's from the documentation: https://opencode.ai/docs/models/#custom (if you mean just the package name and not the version)
daemonfire300 commentedon Jul 10, 2025
So the fix is to just not use that line, i.e., drop the
npmentry. At least now I get a response from openrouter.rekram1-node commentedon Dec 28, 2025
[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
feat(hooks): add config protection hook to block linter config manipu…