Failed to fetch models.dev #7686

Open
opened 2026-02-16 18:07:56 -05:00 by yindo · 4 comments
Owner

Originally created by @ushio20 on GitHub (Jan 26, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

when I run on offline network with corp model api,it report Failed to fetch models.dev,how to solve it?

Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @ushio20 on GitHub (Jan 26, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description when I run on offline network with corp model api,it report Failed to fetch models.dev,how to solve it? <img width="2426" height="909" alt="Image" src="https://github.com/user-attachments/assets/5b74f1d9-ce07-4d1e-a413-7f53fd88e427" /> ### Plugins _No response_ ### OpenCode version _No response_ ### Steps to reproduce _No response_ ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 18:07:56 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 26, 2026):

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

  • #10221: Black screen on startup with 'Failed to fetch models.dev' error - similar symptoms in offline/network-restricted environments
  • #8830: Cannot use opencode in private network - directly addresses models.dev unreachable issue
  • #4959: Add option to disable models.dev fetch for corporate proxy environments - feature request for the same problem
  • #2224: Support for airgapped installation - addresses running OpenCode in network-restricted environments

Feel free to ignore if your specific case involves different circumstances.

@github-actions[bot] commented on GitHub (Jan 26, 2026): This issue might be a duplicate of existing issues. Please check: - #10221: Black screen on startup with 'Failed to fetch models.dev' error - similar symptoms in offline/network-restricted environments - #8830: Cannot use opencode in private network - directly addresses models.dev unreachable issue - #4959: Add option to disable models.dev fetch for corporate proxy environments - feature request for the same problem - #2224: Support for airgapped installation - addresses running OpenCode in network-restricted environments Feel free to ignore if your specific case involves different circumstances.
Author
Owner

@ariane-emory commented on GitHub (Jan 27, 2026):

You may avoid this by starting Opencode thusly: OPENCODE_DISABLE_MODELS_FETCH=1 opencode

@ariane-emory commented on GitHub (Jan 27, 2026): You may avoid this by starting Opencode thusly: `OPENCODE_DISABLE_MODELS_FETCH=1 opencode`
Author
Owner

@jakiechris commented on GitHub (Jan 30, 2026):

You may avoid this by starting Opencode thusly: OPENCODE_DISABLE_MODELS_FETCH=1 opencode

in offline environment, still 500 internal error when open web page of "opencode serve"

@jakiechris commented on GitHub (Jan 30, 2026): > You may avoid this by starting Opencode thusly: `OPENCODE_DISABLE_MODELS_FETCH=1 opencode` in offline environment, still 500 internal error when open web page of "opencode serve"
Author
Owner

@jakiechris commented on GitHub (Jan 31, 2026):

this may help, i'm trying it
https://github.com/anomalyco/opencode/pull/9258

@jakiechris commented on GitHub (Jan 31, 2026): this may help, i'm trying it https://github.com/anomalyco/opencode/pull/9258
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#7686