[FEATURE]: Support launching OpenCode directly with the Node.js runtime, similar to a standard Node.js backend application #7752

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

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

I am the author of Issue #10799. After posting that issue, I looked into the relevant documentation and believe that Bun still has some compatibility issues regarding specific details.

Although Bun performs well in terms of performance, its stability in complex environments (especially during low-level shell interactions, memory-intensive operations, and edge cases on non-POSIX platforms) is not yet as mature as Node.js. Currently, the single-file packaging model forces a dependency on the Bun runtime, preventing users from avoiding such low-level crashes. From a deeper perspective, I personally believe that decoupling the OpenCode application itself from a specific runtime could be more beneficial for OpenCode.

I suggest introducing a "Native Node.js Runtime" mode for OpenCode as a complement or alternative to the existing Bun mode.

If this mode is already supported, I recommend clearly documenting the setup guide in the official documentation or README to facilitate developer usage. If it is not yet supported, I suggest adding it to the development roadmap to adapt to the Node.js environment, providing users with a more mature and controllable runtime option.

Originally created by @narukeu on GitHub (Jan 27, 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 I am the author of Issue #10799. After posting that issue, I looked into the relevant documentation and believe that Bun still has some compatibility issues regarding specific details. Although Bun performs well in terms of performance, its stability in complex environments (especially during low-level shell interactions, memory-intensive operations, and edge cases on non-POSIX platforms) is not yet as mature as **Node.js**. Currently, the single-file packaging model forces a dependency on the Bun runtime, preventing users from avoiding such low-level crashes. From a deeper perspective, I personally believe that decoupling the OpenCode application itself from a specific runtime could be more beneficial for OpenCode. I suggest introducing a **"Native Node.js Runtime"** mode for OpenCode as a complement or alternative to the existing Bun mode. If this mode is already supported, I recommend clearly documenting the setup guide in the official documentation or README to facilitate developer usage. If it is not yet supported, I suggest adding it to the development roadmap to adapt to the Node.js environment, providing users with a more mature and controllable runtime option.
yindo added the discussiondocs labels 2026-02-16 18:08:08 -05:00
yindo closed this issue 2026-02-16 18:08:08 -05:00
Author
Owner

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

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

  • #10799: OpenCode crashed during LLM analysis of IndexedDB (referenced as the original issue from this author)
  • #7960: OpenCode CLI Critical Runtime Failure (Bun runtime compatibility issues with PRoot/Termux environments)
  • #6825: [FEATURE]: Provide a package without native binary, for running with nodejs (similar request for Node.js compatibility)
  • #4442: Bun install package in NFS (Bun compatibility issues on non-standard filesystems)
  • #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (runtime compatibility issues)

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

@github-actions[bot] commented on GitHub (Jan 27, 2026): This issue might be a duplicate of existing issues. Please check: - #10799: OpenCode crashed during LLM analysis of IndexedDB (referenced as the original issue from this author) - #7960: OpenCode CLI Critical Runtime Failure (Bun runtime compatibility issues with PRoot/Termux environments) - #6825: [FEATURE]: Provide a package without native binary, for running with nodejs (similar request for Node.js compatibility) - #4442: Bun install package in NFS (Bun compatibility issues on non-standard filesystems) - #6080: OpenCode TUI Hangs on Fedora Linux (npm & bun & standalone) (runtime compatibility issues) 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#7752