Skip to content

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

Closed

Description

@bbartels

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.

Activity

  1. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    on Jan 31, 2026
  2. github-actions commented on Jan 31, 2026

    @github-actions
    Contributor

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

discussionUsed for feature requests, proposals, ideas, etc. Open discussion

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions