Automated builds of OpenCode v2 with bundled musl libraries for systems with older GLIBC versions (e.g., QNAP NAS).
mise install github:pedropombeiro/opencode-legacy-glibc@latest- Download the latest release from the Releases page
- Extract the tarball
- Run
./opencode/bin/opencode
See the OpenCode V2 documentation for usage and configuration.
A scheduled GitHub Action checks hourly for new stable releases of
@opencode/cli on npm. For each new version, it:
- Downloads the upstream
@opencode/cli-linux-x64-baseline-muslbinary and verifies its npm integrity hash. - Patches the binary's ELF interpreter to point at a bundled musl dynamic linker.
- Packages it with the musl loader,
libstdc++,libgcc_s, and wrapper scripts. - Runs a compatibility test suite on CentOS 7 (glibc 2.17) before publishing a release.
Releases up to v1.18.32 were built from OpenCode v1 sources. See
docs/TROUBLESHOOTING.md for technical details.