[FEATURE]:Build script ignores OPENCODE_MODELS_URL env var #8090

Closed
opened 2026-02-16 18:09:08 -05:00 by yindo · 1 comment
Owner

Originally created by @bbartels on GitHub (Jan 30, 2026).

Originally assigned to: @thdxr on GitHub.

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Description

The runtime respects OPENCODE_MODELS_URL to override the models.dev endpoint (see src/provider/models.ts:84), but the build script in script/build.ts hardcodes https://models.dev/api.json.

This makes it difficult to build in airgapped environments or when using an internal mirror.

Expected behavior

Build script should respect OPENCODE_MODELS_URL like the runtime does.

Current behavior

Build always fetches from https://models.dev/api.json regardless of environment configuration.

Originally created by @bbartels on GitHub (Jan 30, 2026). Originally assigned to: @thdxr on GitHub. ### Feature hasn't been suggested before. - [x] I have verified this feature I'm about to request hasn't been suggested before. ### Describe the enhancement you want to request ## Description The runtime respects `OPENCODE_MODELS_URL` to override the models.dev endpoint (see `src/provider/models.ts:84`), but the build script in `script/build.ts` hardcodes `https://models.dev/api.json`. This makes it difficult to build in airgapped environments or when using an internal mirror. ### Expected behavior Build script should respect `OPENCODE_MODELS_URL` like the runtime does. ### Current behavior Build always fetches from `https://models.dev/api.json` regardless of environment configuration.
yindo added the discussion label 2026-02-16 18:09:08 -05:00
yindo closed this issue 2026-02-16 18:09:09 -05:00
Author
Owner

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

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

  • #4959: [FEATURE]: Add option to disable models.dev fetch for corporate proxy environments - specifically addresses the need to skip models.dev fetch in restricted environments
  • #2224: Support for airgapped installation - discusses environment variable configuration for airgapped deployments

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

@github-actions[bot] commented on GitHub (Jan 30, 2026): This issue might be a duplicate of existing issues. Please check: - #4959: [FEATURE]: Add option to disable models.dev fetch for corporate proxy environments - specifically addresses the need to skip models.dev fetch in restricted environments - #2224: Support for airgapped installation - discusses environment variable configuration for airgapped deployments Feel free to ignore if none of these address your specific case.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#8090