You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Unable to run opencode from source outside of packages/opencode directory on opentui branch #3220
There is no build available for alpine atm so I am force to clone the repo and just do bun $HOME/opencode/packages/opencode/src/index.ts as an alias for opencode to start the UI where I want to run agents for. I swapped to the opentui branch due to perf issues I noticed on bigger monitors when full screened. Everything was working mostly great until I pulled in 22f8c228 which now results running into the below error.
This error occurs if running opencode in any directory that is not packages/opencode. Seems like the relative path is assuming its always going be ran from the opencode package, which may be fine if it is bundled into the binary but breaks the only way I have been able to run this on alpine.
So to replicate, checkout the opentui branch of this repo.
from the root do bun packages/opencode/src/index.ts and see the workers error. then do git checkout 22f8c228~ to see it work just fine
This issue might be a duplicate of existing issues. Please check:
running opencode fails in alpine / musl based distros #649: Similar Alpine Linux compatibility issue where user is forced to run from source using bun packages/opencode/src/index.ts due to binary compatibility issues with musl-based distros
Feel free to ignore if none of these address your specific case.
I have actually discovered another working way for alpine support and that is to just clone the repo, build the opencode package and run the linux-x64 bin file. Not sure if this is because it is built on an alpine system with only glibc available or some other reason 🤷 but allows me to use the latest opentui code now
Activity
github-actions commentedon Oct 16, 2025
This issue might be a duplicate of existing issues. Please check:
bun packages/opencode/src/index.tsdue to binary compatibility issues with musl-based distrosFeel free to ignore if none of these address your specific case.
kalvenschraut commentedon Oct 29, 2025
I have actually discovered another working way for alpine support and that is to just clone the repo, build the opencode package and run the linux-x64 bin file. Not sure if this is because it is built on an alpine system with only glibc available or some other reason 🤷 but allows me to use the latest opentui code now
paralin commentedon Nov 4, 2025
This is fixed now by #3922 and can be closed.