Skip to content

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

Closed

Description

@yurivict

Description

Bun requires to have bun available in order to build bun, see oven-sh/bun#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

Activity

  1. e-roux commented on Nov 4, 2025

    @e-roux

    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.

  2. added
    discussionUsed for feature requests, proposals, ideas, etc. Open discussion
    and removed
    bugSomething isn't working
    on Nov 4, 2025
  3. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Contributor

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

  4. yurivict commented on Nov 4, 2025

    @yurivict
    Author

    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?

  5. rekram1-node commented on Nov 4, 2025

    @rekram1-node
    Contributor

    We ship an executable there aren't any node deps

  6. antranigv commented on Mar 28, 2026

    @antranigv

    There have been updates on the Bun side since the last comment. May you re-open this issue and keep an eye for Bun on FreeBSD? :)

    Thank you!

  7. delleceste commented on May 21, 2026

    @delleceste

    bun is now available as a freebsd port under lang/bun

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions