[PR #11384] feat(build): respect OPENCODE_MODELS_URL env var #13766

Closed
opened 2026-02-16 18:18:36 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/11384

State: closed
Merged: Yes


What does this PR do?

The build script hardcodes https://models.dev/api.json but the runtime already supports OPENCODE_MODELS_URL to override this. This adds the same env var support to the build script for consistency.

Useful for airgapped environments or internal mirrors.

How did you verify your code works?

OPENCODE_MODELS_URL=https://internal-mirror/models bun run build --single

Fixes: #11385

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/11384 **State:** closed **Merged:** Yes --- ### What does this PR do? The build script hardcodes `https://models.dev/api.json` but the runtime already supports `OPENCODE_MODELS_URL` to override this. This adds the same env var support to the build script for consistency. Useful for airgapped environments or internal mirrors. ### How did you verify your code works? ```bash OPENCODE_MODELS_URL=https://internal-mirror/models bun run build --single ``` Fixes: #11385
yindo added the pull-request label 2026-02-16 18:18:36 -05:00
yindo closed this issue 2026-02-16 18:18:36 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13766