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
The terminal has always shown the error "opencode ERROR service=models.dev error=unknown certificate verification error Failed to fetch models.dev" and I can't use opencode
how can I fix this?
The error "unknown certificate verification error Failed to fetch models.dev" typically occurs in restricted network environments with corporate proxies. You may need to:
Set environment variables like SSL_CERT_BUNDLE, REQUESTS_CA_BUNDLE, or NODE_EXTRA_CA_CERTS
Configure your proxy settings
Check your corporate firewall/certificate configuration
Feel free to ignore if none of these address your specific case.
The error "unknown certificate verification error Failed to fetch models.dev" typically occurs in restricted network environments with corporate proxies. You may need to:
Set environment variables like SSL_CERT_BUNDLE, REQUESTS_CA_BUNDLE, or NODE_EXTRA_CA_CERTS
Configure your proxy settings
Check your corporate firewall/certificate configuration
Feel free to ignore if none of these address your specific case.
Could you please walk me through the steps on Windows 10?
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.
Please let me know if this problem is solved. Thanks a lot in advance.
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.
Please let me know if this problem is solved. Thanks a lot in advance.
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.
Please let me know if this problem is solved. Thanks a lot in advance.
please tell me what fixed it if you found a fix
I finally succeeded. You need to disable title-agent in the file opencode.json, and then opencode won't call SmallModel during the loop.
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.同样的错误已经折磨我两天了。我知道肯定是公司代理环境的问题,因为在我家里的电脑上,同样的操作也能正常运行。但在公司网络中无法访问互联网,也就是说,包括 llm 在内的所有资源都是本地的。
Please let me know if this problem is solved. Thanks a lot in advance.如果问题解决了,请告诉我。非常感谢。
please tell me what fixed it if you found a fix如果您找到了解决方法,请告诉我解决方法
I finally succeeded. You need to disable title-agent in the file opencode.json, and then opencode won't call SmallModel during the loop.我终于成功了。你需要在 opencode.json 文件中禁用 title-agent,这样 opencode 就不会在循环过程中调用 SmallModel。
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.同样的错误已经折磨我两天了。我知道肯定是公司代理环境的问题,因为在我家里的电脑上,同样的操作也能正常运行。但在公司网络中无法访问互联网,也就是说,包括 llm 在内的所有资源都是本地的。
Please let me know if this problem is solved. Thanks a lot in advance.如果问题解决了,请告诉我。非常感谢。
please tell me what fixed it if you found a fix如果您找到了解决方法,请告诉我解决方法
I finally succeeded. You need to disable title-agent in the file opencode.json, and then opencode won't call SmallModel during the loop.我终于成功了。你需要在 opencode.json 文件中禁用 title-agent,这样 opencode 就不会在循环过程中调用 SmallModel。
what is the "small model"
To my understanding, "small_model" is a second model defined by opencode official and used in light-weight tasks such as session name generation. I tried at the beggining of debugging to configure "small_model to" be the same one as the primary model but the workflow still failed (it goes for public models anyway). Then I checked the details print and find out that agent "title" was calling "small_model" so I shut it down. Then it wroks well.
Activity
github-actions commentedon Feb 6, 2026
This issue might be a duplicate of existing issues. Please check:
enabled_providersfiltering, causing unnecessary package installs that can fail #12407: "Custom loaders run before enabled_providers filtering" - References SSL certificate failures in restricted network environments (Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate #8052 and BunInstallFailederror on First Run #6052)The error "unknown certificate verification error Failed to fetch models.dev" typically occurs in restricted network environments with corporate proxies. You may need to:
SSL_CERT_BUNDLE,REQUESTS_CA_BUNDLE, orNODE_EXTRA_CA_CERTSFeel free to ignore if none of these address your specific case.
vinci3123 commentedon Feb 6, 2026
Could you please walk me through the steps on Windows 10?
kinggary92 commentedon Feb 9, 2026
Same error has been torturing me for 2 days. I know it must be the corp proxy env because the exact same operations just run well in my PC at home. But accessing Internet is impossible in the corp network, i.e., the resources including llm are all local.
Please let me know if this problem is solved. Thanks a lot in advance.
FreeYouthBin commentedon Feb 13, 2026
I have the same problem. Opencode can't access MiniMax, but it could access other models normally. I don't understand
FreeYouthBin commentedon Feb 13, 2026
I uninstall the tailscale, but I didn't clear the regedit. I found deleting the configure of Tailscale from regedit will fix the problem.
isaiah2004 commentedon Mar 8, 2026
please tell me what fixed it if you found a fix
kinggary92 commentedon Mar 10, 2026
I finally succeeded. You need to disable title-agent in the file
opencode.json, and then opencode won't call SmallModel during the loop.JunyWuuuu91 commentedon Mar 12, 2026
what is the "small model"
kinggary92 commentedon Mar 23, 2026
To my understanding, "small_model" is a second model defined by opencode official and used in light-weight tasks such as session name generation. I tried at the beggining of debugging to configure "small_model to" be the same one as the primary model but the workflow still failed (it goes for public models anyway). Then I checked the details print and find out that agent "title" was calling "small_model" so I shut it down. Then it wroks well.
"model": "ProviderX/ModelY",
"small_model": "ProviderX/ModelY",
"agent": {
"title": {
"disable": true
}
},
Failed to fetch models.devERROR on every startup #32986 as a duplicate of this issuegithub-actions commentedon Jul 3, 2026
To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.