opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Please make it buildable with regular node, not bun

Open yurivict opened this issue 3 weeks ago • 4 comments

Description

Bun requires to have bun available in order to build bun, see https://github.com/oven-sh/bun/issues/22991

This makes it a no-go on non-Linux systems, like FreeBSD.

Is there a way to build opencode with regular NodeJS?

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

yurivict avatar Nov 04 '25 07:11 yurivict

if you look at the project AGENTS.md, it does not look like being the technical direction of the project so I guess the chance to switch to node are near 0.

e-roux avatar Nov 04 '25 08:11 e-roux

we are pretty tied into bun so i dont expect this to change, most likely bun will have freebsd support at some point: https://github.com/oven-sh/bun/issues/1524

rekram1-node avatar Nov 04 '25 14:11 rekram1-node

Users are asking for the Open Code port on FreeBSD.

Are you guys distriburing the pre-built version, like github-copilot-cli does? copilot-cli only installs 15 files, including 3 binary dependencies that we build.

Besides JS scripts and other non-platform dependent files, are there any binaries required to run Open Code? Can node run it once it is built?

yurivict avatar Nov 04 '25 16:11 yurivict

We ship an executable there aren't any node deps

rekram1-node avatar Nov 04 '25 17:11 rekram1-node