anomalyco / anomalyco/opencode
OpenTUI fails to start on Windows ARM64: bun:ffi dlopen() is not available in this build
@Hona is already working on this.
Since Jul 23, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
I'm unable to start the TUI on a Windows 11 ARM64 machine.
The CLI installs successfully via Winget and most commands work as expected, but any command that starts the terminal UI fails with the following error:
Failed to initialize OpenTUI render library: bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Device: Microsoft Surface Laptop 7 Architecture: ARM64 OpenCode: 1.18.4 Installed via Winget (SST.opencode)
Interestingly:
opencode --help✅ worksopencode --version✅ worksopencode web✅ worksopencode❌ failsopencode --mini❌ fails
This looks like the ARM64 build is unable to initialize the native OpenTUI renderer.
Additional information
opencode web works correctly, so the CLI itself is functional.
The issue only occurs when initializing the terminal UI (OpenTUI).
Output:
Error: Unexpected error
Failed to initialize OpenTUI render library:
bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Plugins
None
OpenCode version
1.18.4
Steps to reproduce
-
Install OpenCode using Winget:
winget install SST.opencode
-
Open PowerShell.
-
Verify installation:
opencode --version
-
Run:
opencode
-
The application immediately exits with:
Failed to initialize OpenTUI render library:
bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Screenshot and/or share link
No response
Operating System
Windows 11 ARM64
Terminal
Windows PowerShell 7 (also reproducible in the VS Code integrated terminal)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.