loading models.dev in built artifacts #6460

Open
opened 2026-02-16 18:04:17 -05:00 by yindo · 6 comments
Owner

Originally created by @junmediatek on GitHub (Jan 16, 2026).

Originally assigned to: @thdxr on GitHub.

Description

The change d71153eae6 does not handle bun macros inlined at build time.

I have push a PR https://github.com/anomalyco/opencode/pull/8828

please help to review, thank you.

Plugins

NA

OpenCode version

1.1.23

Steps to reproduce

run the opencode in the network-restricted environment

Screenshot and/or share link

NA

Operating System

Ubuntu 24.04

Terminal

VS Code remoteSSH

Originally created by @junmediatek on GitHub (Jan 16, 2026). Originally assigned to: @thdxr on GitHub. ### Description The change d71153eae6c3218e45c6a32ca7becd4b13ae9414 does not handle bun macros inlined at build time. I have push a PR https://github.com/anomalyco/opencode/pull/8828 please help to review, thank you. ### Plugins NA ### OpenCode version 1.1.23 ### Steps to reproduce run the opencode in the network-restricted environment ### Screenshot and/or share link NA ### Operating System Ubuntu 24.04 ### Terminal VS Code remoteSSH
yindo added the bug label 2026-02-16 18:04:17 -05:00
Author
Owner

@junmediatek commented on GitHub (Jan 16, 2026):

@rekram1-node @thdxr
please help to check this issue

@junmediatek commented on GitHub (Jan 16, 2026): @rekram1-node @thdxr please help to check this issue
Author
Owner

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

This issue might be a duplicate or closely related to existing issues. Please check:

  • #4959: [FEATURE] Add option to disable models.dev fetch for corporate proxy environments - directly addresses the same root cause of models.dev network calls in restricted environments
  • #8830: Cannot use opencode in private network - same day report of models.dev unreachability in private networks
  • #8814: [FEATURE] Run opencode in private net - similar feature request for network-restricted environments
  • #8642: Cannot use without internet connection (需要下载内容) - related network dependency issue

These issues all share the core problem of OpenCode's dependency on models.dev in network-restricted environments. Your fix in PR #8828 for handling bun macros inline at build time appears to be addressing a specific technical aspect of this broader issue.

Feel free to ignore if your fix addresses a specific case not covered by the above issues.

@github-actions[bot] commented on GitHub (Jan 16, 2026): This issue might be a duplicate or closely related to existing issues. Please check: - #4959: [FEATURE] Add option to disable models.dev fetch for corporate proxy environments - directly addresses the same root cause of models.dev network calls in restricted environments - #8830: Cannot use opencode in private network - same day report of models.dev unreachability in private networks - #8814: [FEATURE] Run opencode in private net - similar feature request for network-restricted environments - #8642: Cannot use without internet connection (需要下载内容) - related network dependency issue These issues all share the core problem of OpenCode's dependency on models.dev in network-restricted environments. Your fix in PR #8828 for handling bun macros inline at build time appears to be addressing a specific technical aspect of this broader issue. Feel free to ignore if your fix addresses a specific case not covered by the above issues.
Author
Owner

@junmediatek commented on GitHub (Jan 17, 2026):

@rekram1-node @thdxr

Cloud you help to check this issue?
The opencode can not be used in the private network env now.

@junmediatek commented on GitHub (Jan 17, 2026): @rekram1-node @thdxr Cloud you help to check this issue? The opencode can not be used in the private network env now.
Author
Owner

@GitHubxsy commented on GitHub (Jan 20, 2026):

I encountered the same problem. Is there any way to avoid it?

@GitHubxsy commented on GitHub (Jan 20, 2026): I encountered the same problem. Is there any way to avoid it?
Author
Owner

@junmediatek commented on GitHub (Jan 20, 2026):

I encountered the same problem. Is there any way to avoid it?

refer https://github.com/anomalyco/opencode/pull/9258

@junmediatek commented on GitHub (Jan 20, 2026): > I encountered the same problem. Is there any way to avoid it? refer https://github.com/anomalyco/opencode/pull/9258
Author
Owner

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

不能假定opencode拥有开放的网络环境,因为很多企业代码都是内网私有的。
作为最好的开源AI编码辅助工具,请尽快去掉对任意外网的依赖,谢谢!
特别是opencode老是试图打开models.dev

@jakiechris commented on GitHub (Jan 30, 2026): 不能假定opencode拥有开放的网络环境,因为很多企业代码都是内网私有的。 作为最好的开源AI编码辅助工具,请尽快去掉对任意外网的依赖,谢谢! 特别是opencode老是试图打开models.dev
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#6460