Opencode quits/hangs when models.dev not responding #6855

Closed
opened 2026-02-16 18:05:26 -05:00 by yindo · 2 comments
Owner

Originally created by @mavlenkov on GitHub (Jan 19, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Opencode hangs when models.dev not responding for some reasons.

Plugins

none

OpenCode version

1.1.25

Steps to reproduce

  1. Ban models.dev at /etc/hosts
  2. Run Opencode - it quits with error
  3. Opencode just hangs for about five minutes when models.dev partly responding and then quits with timeout error

Screenshot and/or share link

No response

Operating System

Slackware Linux 15.0, seemingly any Linux, Mac OS

Terminal

No response

Originally created by @mavlenkov on GitHub (Jan 19, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Opencode hangs when models.dev not responding for some reasons. ### Plugins none ### OpenCode version 1.1.25 ### Steps to reproduce 1. Ban models.dev at /etc/hosts 2. Run Opencode - it quits with error 3. Opencode just hangs for about five minutes when models.dev partly responding and then quits with timeout error ### Screenshot and/or share link _No response_ ### Operating System Slackware Linux 15.0, seemingly any Linux, Mac OS ### Terminal _No response_
yindo added the bug label 2026-02-16 18:05:26 -05:00
yindo closed this issue 2026-02-16 18:05:26 -05:00
Author
Owner

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

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

  • #8860: loading models.dev in built artifacts - Related issue about models.dev not loading properly in network-restricted environments
  • #8830: Cannot use opencode in private network - Exact same issue: models.dev fetch fails on private networks causing OpenCode to fail
  • #7313: Does OpenCode Require Internet APIs? - Discusses models.dev dependency and network requirements
  • #4959: [FEATURE]: Add option to disable models.dev fetch for corporate proxy environments - Feature request for offline/network-restricted mode

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

@github-actions[bot] commented on GitHub (Jan 19, 2026): This issue might be a duplicate of existing issues. Please check: - #8860: loading models.dev in built artifacts - Related issue about models.dev not loading properly in network-restricted environments - #8830: Cannot use opencode in private network - Exact same issue: models.dev fetch fails on private networks causing OpenCode to fail - #7313: Does OpenCode Require Internet APIs? - Discusses models.dev dependency and network requirements - #4959: [FEATURE]: Add option to disable models.dev fetch for corporate proxy environments - Feature request for offline/network-restricted mode Feel free to ignore if none of these address your specific case.
Author
Owner

@mavlenkov commented on GitHub (Jan 22, 2026):

Fixed in https://github.com/anomalyco/opencode/pull/9258

@mavlenkov commented on GitHub (Jan 22, 2026): Fixed in 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#6855