Skip to content

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

@narukeu

Description

@narukeu

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.

Metadata

Metadata

Assignees

Labels

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions