You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nix build fails: build.ts fetches from network instead of using MODELS_DEV_API_JSON #10429
The Nix package build fails because packages/opencode/script/build.ts attempts to fetch https://models.dev/api.json during the build phase. Nix builds are sandboxed without network access, causing the build to fail.
Running phase: buildPhase
opencode script {
"channel": "local",
"version": "1.1.34-e3c1861",
"preview": true
}
error: Unable to connect. Is the computer able to access the url?
path: "https://models.dev/api.json",
errno: 0,
code: "ConnectionRefused"
Root Cause
In #9032, nix/opencode.nix was updated to set env.MODELS_DEV_API_JSON with the path to a pre-fetched models-dev derivation:
Activity
github-actions commentedon Jan 24, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
thdxr commentedon Jan 24, 2026
sorry just fixed
dlukegordon commentedon Jan 24, 2026
Confirmed fixed, thanks!