[FEATURE]:When customizing a provider, if the npm package is not built-in, it would be better to support specifying the package with a version number. #7532

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

Originally created by @caozhiyuan on GitHub (Jan 25, 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

When customizing a provider, if the npm package is not built-in, it would be better to support specifying the package with a version number. Currently, the package version defaults to "latest". Inside BunProc.install, dependencies[pkg] === version always returns false, causing Bun to add packages very slowly. Every time OpenCode opens and makes the first LLM request, package loading is triggered, which is highly time-consuming.

https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/provider/provider.ts#L1042

Originally created by @caozhiyuan on GitHub (Jan 25, 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 When customizing a provider, if the npm package is not built-in, it would be better to support specifying the package with a version number. Currently, the package version defaults to "latest". Inside BunProc.install, dependencies[pkg] === version always returns false, causing Bun to add packages very slowly. Every time OpenCode opens and makes the first LLM request, package loading is triggered, which is highly time-consuming. [https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/provider/provider.ts#L1042](https://github.com/anomalyco/opencode/blob/dev/packages/opencode/src/provider/provider.ts#L1042)
yindo added the discussion label 2026-02-16 18:07:28 -05:00
yindo closed this issue 2026-02-16 18:07:28 -05:00
Author
Owner

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

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

  • #1533: NPM Provider install seems to be hardcoded to use "beta" tag - directly addresses custom provider npm package version configuration
  • #8763: Plugin loader incorrectly appends @latest to GitHub references - related to how package versions are handled during installation

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

@github-actions[bot] commented on GitHub (Jan 25, 2026): This issue might be a duplicate of existing issues. Please check: - #1533: NPM Provider install seems to be hardcoded to use "beta" tag - directly addresses custom provider npm package version configuration - #8763: Plugin loader incorrectly appends @latest to GitHub references - related to how package versions are handled during installation 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#7532