Please make it buildable with regular node, not bun #2567

Open
opened 2026-02-16 17:36:16 -05:00 by yindo · 4 comments
Owner

Originally created by @yurivict on GitHub (Nov 4, 2025).

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

Originally created by @yurivict on GitHub (Nov 4, 2025). ### 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_
yindo added the discussion label 2026-02-16 17:36:16 -05:00
Author
Owner

@e-roux commented on GitHub (Nov 4, 2025):

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 commented on GitHub (Nov 4, 2025): if you look at the project [AGENTS.md](https://raw.githubusercontent.com/sst/opencode/refs/heads/dev/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.
Author
Owner

@rekram1-node commented on GitHub (Nov 4, 2025):

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 commented on GitHub (Nov 4, 2025): 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
Author
Owner

@yurivict commented on GitHub (Nov 4, 2025):

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 commented on GitHub (Nov 4, 2025): 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?
Author
Owner

@rekram1-node commented on GitHub (Nov 4, 2025):

We ship an executable there aren't any node deps

@rekram1-node commented on GitHub (Nov 4, 2025): We ship an executable there aren't any node deps
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2567