Skip to content

opencode ERROR service=models.dev error=unknown certificate verification error Failed to fetch models.dev #12408

Closed as not planned

Description

@vinci3123

Description

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?

Plugins

No response

OpenCode version

1.1.51

Steps to reproduce

No response

Screenshot and/or share link

Image Image

Operating System

win10 1803

Terminal

windows terminal

Activity

  1. github-actions commented on Feb 6, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    The error "unknown certificate verification error Failed to fetch models.dev" typically occurs in restricted network environments with corporate proxies. You may need to:

    1. Set environment variables like SSL_CERT_BUNDLE, REQUESTS_CA_BUNDLE, or NODE_EXTRA_CA_CERTS
    2. Configure your proxy settings
    3. Check your corporate firewall/certificate configuration

    Feel free to ignore if none of these address your specific case.

  2. vinci3123 commented on Feb 6, 2026

    @vinci3123
    Author

    This issue might be a duplicate of existing issues. Please check:

    The error "unknown certificate verification error Failed to fetch models.dev" typically occurs in restricted network environments with corporate proxies. You may need to:

    1. Set environment variables like SSL_CERT_BUNDLE, REQUESTS_CA_BUNDLE, or NODE_EXTRA_CA_CERTS
    2. Configure your proxy settings
    3. 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?

  3. kinggary92 commented on Feb 9, 2026

    @kinggary92

    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.

  4. FreeYouthBin commented on Feb 13, 2026

    @FreeYouthBin

    I have the same problem. Opencode can't access MiniMax, but it could access other models normally. I don't understand

  5. FreeYouthBin commented on Feb 13, 2026

    @FreeYouthBin

    I uninstall the tailscale, but I didn't clear the regedit. I found deleting the configure of Tailscale from regedit will fix the problem.

  6. isaiah2004 commented on Mar 8, 2026

    @isaiah2004

    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

  7. kinggary92 commented on Mar 10, 2026

    @kinggary92

    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.

  8. JunyWuuuu91 commented on Mar 12, 2026

    @JunyWuuuu91

    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"

  9. kinggary92 commented on Mar 23, 2026

    @kinggary92

    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.

    "model": "ProviderX/ModelY",
    "small_model": "ProviderX/ModelY",
    "agent": {
    "title": {
    "disable": true
    }
    },

  10. github-actions commented on Jul 3, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions