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
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
After installing OpenCode on Windows 11 Business arm64 using WinGet, Chocolatey, or npm install --global opencode-ai, the following error is output but no opencode-windows-arm64 npm package exists or is attached to a GitHub Release.
It seems that your package manager failed to install the right version of the opencode CLI for your platform. You can try manually installing the "opencode-windows-arm64" package
Both issues report the same underlying problem with missing Windows platform-specific packages, just for different architectures (arm64 vs x64). This suggests a broader Windows platform support issue.
Feel free to ignore if none of these address your specific case.
Reacted by Lars Gyrup Brink Nielsen, 冯平坤, shallot and Alexander Poss
Anthropic, which now owns Bun, would prefer its Claude Code run natively on Windows arm64 instead of its current workaround (likely using emulation layers).
So here's to Anthropic helping Bun achieve Windows arm64 support, which in turn will help OpenCode achieve Windows arm64 support without requiring emulation layers.
Reacted by Dody Gunawinata, Michał Weskida and Richie Borrello
Adding a specific bug report that shows the real-world impact of this issue:
TUI Crash on Snapdragon X Elite (Windows 11 ARM64)
Environment:
OS: Windows 11 ARM64 (Build 10.0.26200.7462)
Processor: Snapdragon X Elite - X1E80100 - Qualcomm Oryon CPU
OpenCode Version: 1.1.3 (via curl installer)
Binary: opencode-windows-x64.zip running under x64 emulation Issue: opencode auth login crashes with SIGSEGV (exit code 139) immediately after displaying the provider selection TUI. The crash is intermittent - sometimes works, mostly crashes. Tested across PowerShell, CMD, Windows Terminal, and Git Bash with the same result.
Root Cause:
I understand this is blocked upstream by Bun's lack of Windows ARM64 support (and further upstream by WebKit). The x64 binary running under Windows' emulation layer appears to have TUI rendering issues that cause segfaults.
Workaround Request:
While waiting for native ARM64 support, would it be possible to add a --provider flag for non-interactive auth? For example:
opencode auth login --provider anthropic
This would allow ARM64 users to bypass the TUI entirely and complete authentication even when the interactive menu crashes.
With Snapdragon laptops becoming more common (Surface Pro X, various Snapdragon X Elite devices), this workaround would help bridge the gap until upstream dependencies are resolved.
Reacted by Gabriel Paz, koenigderorangen, Sebas-, leon, TianjinAI, Brendan LeFebvre, Lara Tais Biermann, Numa, Ender Bonnet and Sanath Kumar U
Just adding a data point. I tried to use opencode 1.1.13 on a ARM64 Windows machine, without knowing the support is not available. After running opencode to bring out the TUI, it silently quits with no error. With --log-level DEBUG, the last log it writes is
INFO 2026-01-22T06:49:14 +0ms service=bun cmd=["C:\\.tools\\.npm-global\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin\\opencode.exe","install"]
I would guess it is trying to run a x64 bineary on arm64. The same version works as expected in a x64 machine.
opencode --log-level DEBUG --print-logs
INFO 2026-03-13T10:34:13 +342ms service=default version=0.0.0-dev-202603120428 args=["--log-level","DEBUG","--print-logs"] opencode
INFO 2026-03-13T10:34:13 +4ms service=default directory=D:\projects\sandbox creating instance
INFO 2026-03-13T10:34:13 +1ms service=project directory=D:\projects\sandbox fromDirectory
INFO 2026-03-13T10:34:13 +1ms service=db path=%USERPROFILE%\.local\share\opencode\opencode-dev.db opening database
INFO 2026-03-13T10:34:13 +31ms service=db count=8 mode=bundled applying migrations
INFO 2026-03-13T10:34:13 +26ms service=config path=%USERPROFILE%\.config\opencode\config.json loading
INFO 2026-03-13T10:34:13 +0ms service=config path=%USERPROFILE%\.config\opencode\opencode.json loading
INFO 2026-03-13T10:34:13 +0ms service=config path=%USERPROFILE%\.config\opencode\opencode.jsonc loading
ERROR 2026-03-13T10:34:13 +6ms service=default e=Failed to initialize OpenTUI render library: bun:ffi dlopen() is not available in this build (TinyCC is disabled) rejection
ERROR 2026-03-13T10:34:13 +0ms service=default Error: Failed to initialize OpenTUI render library: bun:ffi dlopen() is not available in this build (TinyCC is disabled)
Yeah, sorry about mentioning the Prism x86_64 emulation, that's unrelated to the dev build. I do run the Windows arm64 build of Node.js and it does stick to arm64 end-to-end when using the dev build from what I can tell.
With the way Prism works - can't you just run the x64 build on Windows ARM?
@Hona for me it did not work (though it works for other apps, the Prism working well). At some point like 3 months ago, opencode via Prism started to crash at random points during start process leaving terminal in a weird state in terms of configuration (control codes would print and so on). So, I was waiting for bun to support arm64 and then opencode to support it to run natively. Now I have native node, native bun and seems to be native arm64 opencode, but the TUI did not work and I shared that. It feels like some minor steps are left.
confirmed, disabling AVX AVX2 Emulation makes it fly again (the x64 binary), this feature was introduced with Windows 11 Build 26100.6899 (check with winver.exe) @wisemanny
The Change emulation settings for opencode.exe is disabled on my machine.
Same here, been waiting long time for ARM support so happy to see it's installable now, but the TUI doesn't run. Is there any way at all to make it work yet?
opencode web works on Windows ARM, so that's good enough for now! Thanks for all the hard work on ARM support 👍
I installed "2026-07 Preview Update (KB5101684) (26200.8973)" and cannot longer load the x64 opencode in emulation mode. Checked emulation settings and tried a few previous versions, no luck. It does not even print logs nor creates log files. If anyone finds a way to fix, please share. I was not able. Even Log shows this:
Activity
github-actions commentedon Nov 14, 2025
This issue might be a duplicate of existing issues. Please check:
Both issues report the same underlying problem with missing Windows platform-specific packages, just for different architectures (arm64 vs x64). This suggests a broader Windows platform support issue.
Feel free to ignore if none of these address your specific case.
rekram1-node commentedon Nov 14, 2025
Will do
Volko61 commentedon Nov 15, 2025
@rekram1-node You're the goat ! I don't use opencode just because there is no windows arm binaries
rekram1-node commentedon Nov 15, 2025
I think this may be blocked by the upstream bun issue
Ref:
So it likely wont be a simple fix
thdxr commentedon Nov 17, 2025
and it's even further upstream, webkit is the first thing to figure out
oven-sh/WebKit#105
mickythompson commentedon Dec 28, 2025
Anthropic, which now owns Bun, would prefer its Claude Code run natively on Windows arm64 instead of its current workaround (likely using emulation layers).
So here's to Anthropic helping Bun achieve Windows arm64 support, which in turn will help OpenCode achieve Windows arm64 support without requiring emulation layers.
adsharma commentedon Jan 3, 2026
Any chance that we can install it with a different package manager? Lots of good holiday deals on Snapdragon laptops.
rekram1-node commentedon Jan 3, 2026
has nothing to do w package managers?
adsharma commentedon Jan 4, 2026
Right. Bun is a JavaScript runtime. Easy to get confused because of
bun install ...khairm commentedon Jan 7, 2026
Adding a specific bug report that shows the real-world impact of this issue:
TUI Crash on Snapdragon X Elite (Windows 11 ARM64)
Environment:
opencode-windows-x64.ziprunning under x64 emulationIssue:
opencode auth logincrashes with SIGSEGV (exit code 139) immediately after displaying the provider selection TUI. The crash is intermittent - sometimes works, mostly crashes. Tested across PowerShell, CMD, Windows Terminal, and Git Bash with the same result.Root Cause:
I understand this is blocked upstream by Bun's lack of Windows ARM64 support (and further upstream by WebKit). The x64 binary running under Windows' emulation layer appears to have TUI rendering issues that cause segfaults.
Workaround Request:
While waiting for native ARM64 support, would it be possible to add a
--providerflag for non-interactive auth? For example:This would allow ARM64 users to bypass the TUI entirely and complete authentication even when the interactive menu crashes.
With Snapdragon laptops becoming more common (Surface Pro X, various Snapdragon X Elite devices), this workaround would help bridge the gap until upstream dependencies are resolved.
ccstr commentedon Jan 22, 2026
Just adding a data point. I tried to use opencode 1.1.13 on a ARM64 Windows machine, without knowing the support is not available. After running
opencodeto bring out the TUI, it silently quits with no error. With --log-level DEBUG, the last log it writes isI would guess it is trying to run a x64 bineary on arm64. The same version works as expected in a x64 machine.
gxsshallot commentedon Jan 23, 2026
wait for support + 1
17 remaining items
LayZeeDK commentedon Mar 13, 2026
Good tip, @wisemanny , thanks!
My output:
LayZeeDK commentedon Mar 13, 2026
Yeah, sorry about mentioning the Prism x86_64 emulation, that's unrelated to the
devbuild. I do run the Windows arm64 build of Node.js and it does stick to arm64 end-to-end when using thedevbuild from what I can tell.wisemanny commentedon Mar 13, 2026
@Hona for me it did not work (though it works for other apps, the Prism working well). At some point like 3 months ago, opencode via Prism started to crash at random points during start process leaving terminal in a weird state in terms of configuration (control codes would print and so on). So, I was waiting for bun to support arm64 and then opencode to support it to run natively. Now I have native node, native bun and seems to be native arm64 opencode, but the TUI did not work and I shared that. It feels like some minor steps are left.
Hona commentedon Mar 13, 2026
Bun doesn't fully support arm64 on windows yet. That's why the TUI doesn't work. FFI is entirely disabled so I created the issue in their repo
machinekoder commentedon Mar 18, 2026
Probably with this update https://techcommunity.microsoft.com/blog/windowsosplatform/windows-on-arm-runs-more-apps-and-games-with-new-prism-update/4475631 Note this can be disabled in the Windows Emulation compatibility settings.
I have similar problems on ARM64 in Parallels
machinekoder commentedon Mar 18, 2026
wisemanny commentedon Mar 18, 2026
@machinekoder wow, good catch and thanks for sharing!
LayZeeDK commentedon Mar 24, 2026
The Change emulation settings for
opencode.exeis disabled on my machine.sondreb commentedon Mar 26, 2026
Same here, been waiting long time for ARM support so happy to see it's installable now, but the TUI doesn't run. Is there any way at all to make it work yet?
opencode webworks on Windows ARM, so that's good enough for now! Thanks for all the hard work on ARM support 👍Hona commentedon Mar 26, 2026
Yeah we're waiting on bun to patch FFI which is disabled for them.
LayZeeDK commentedon Mar 28, 2026
I didn't know about opencode web. Thanks for the pointer, @sondreb!
hmartinez82 commentedon Apr 11, 2026
Can you link the issue here?
LayZeeDK commentedon Apr 11, 2026
#4340 (comment)
wisemanny commentedon Jul 29, 2026
I installed "2026-07 Preview Update (KB5101684) (26200.8973)" and cannot longer load the x64 opencode in emulation mode. Checked emulation settings and tried a few previous versions, no luck. It does not even print logs nor creates log files. If anyone finds a way to fix, please share. I was not able. Even Log shows this:
Faulting application name: opencode.exe, version: 1.3.14.0, time stamp: 0x6a03aae4
Faulting module name: xtajit64.dll, version: 10.0.26100.8972, time stamp: 0xd680d577
Exception code: 0xc0000005
Fault offset: 0x000000000001bdfc
Faulting process id: 0x6FF8
Faulting application start time: 0x1DD1F426B10CD1D
Faulting application path: C:\Users\xxxxxxxx\scoop\persist\bun\install\global\node_modules\opencode-windows-x64\bin\opencode.exe
Faulting module path: C:\WINDOWS\System32\xtajit64.dll
Report Id: 2eb11b1d-58cf-4a91-b0ed-9161b62c4e65
Faulting package full name:
Faulting package-relative application ID:
LayZeeDK commentedon Oct 15, 2026
Definitely working out-of-the-box in OpenCode version 2.0.29. Thanks, team!