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

Open
opened 2026-02-16 18:10:32 -05:00 by yindo · 5 comments
Owner

Originally created by @vinci3123 on GitHub (Feb 5, 2026).

Originally assigned to: @rekram1-node on GitHub.

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

Originally created by @vinci3123 on GitHub (Feb 5, 2026). Originally assigned to: @rekram1-node on GitHub. ### 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 <img width="940" height="125" alt="Image" src="https://github.com/user-attachments/assets/9bdf2507-b049-4919-a732-49eb1a136f72" /> <img width="957" height="491" alt="Image" src="https://github.com/user-attachments/assets/74403bb9-9f1d-437c-8ba1-ce821c8dcd30" /> ### Operating System win10 1803 ### Terminal windows terminal
yindo added the windowsbug labels 2026-02-16 18:10:32 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Feb 5, 2026):

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

  • #12405: "Error: Connection reset by server" - Windows 10 user with proxy/connectivity issues
  • #12407: "Custom loaders run before enabled_providers filtering" - References SSL certificate failures in restricted network environments (#8052 and #6052)
  • #8052: "Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate" - Direct SSL certificate verification error, resolved by setting SSL_CERT_BUNDLE and REQUESTS_CA_BUNDLE environment variables
  • #6052: "BunInstallFailedError on First Run" - Ubuntu user with corporate proxy SSL configuration issues

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.

@github-actions[bot] commented on GitHub (Feb 5, 2026): This issue might be a duplicate of existing issues. Please check: - #12405: "Error: Connection reset by server" - Windows 10 user with proxy/connectivity issues - #12407: "Custom loaders run before enabled_providers filtering" - References SSL certificate failures in restricted network environments (#8052 and #6052) - #8052: "Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate" - Direct SSL certificate verification error, resolved by setting SSL_CERT_BUNDLE and REQUESTS_CA_BUNDLE environment variables - #6052: "BunInstallFailedError on First Run" - Ubuntu user with corporate proxy SSL configuration issues 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.
Author
Owner

@vinci3123 commented on GitHub (Feb 5, 2026):

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?

@vinci3123 commented on GitHub (Feb 5, 2026): > This issue might be a duplicate of existing issues. Please check: > > * [Error: Connection reset by server #12405](https://github.com/anomalyco/opencode/issues/12405): "Error: Connection reset by server" - Windows 10 user with proxy/connectivity issues > * [Custom loaders run before `enabled_providers` filtering, causing unnecessary package installs that can fail #12407](https://github.com/anomalyco/opencode/issues/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](https://github.com/anomalyco/opencode/issues/8052) and [BunInstallFailederror on First Run #6052](https://github.com/anomalyco/opencode/issues/6052)) > * [Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate #8052](https://github.com/anomalyco/opencode/issues/8052): "Unable to start opencode with AWS Bedrock as provider when config includes a ca_certificate" - Direct SSL certificate verification error, resolved by setting SSL_CERT_BUNDLE and REQUESTS_CA_BUNDLE environment variables > * [BunInstallFailederror on First Run #6052](https://github.com/anomalyco/opencode/issues/6052): "BunInstallFailedError on First Run" - Ubuntu user with corporate proxy SSL configuration issues > > 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?
Author
Owner

@kinggary92 commented on GitHub (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.

@kinggary92 commented on GitHub (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.
Author
Owner

@FreeYouthBin commented on GitHub (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 commented on GitHub (Feb 13, 2026): I have the same problem. Opencode can't access MiniMax, but it could access other models normally. I don't understand
Author
Owner

@FreeYouthBin commented on GitHub (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.

@FreeYouthBin commented on GitHub (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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8671