opencode icon indicating copy to clipboard operation
opencode copied to clipboard

[FEATURE]: Add Windows arm64 support

Open LayZeeDK opened this issue 4 months ago β€’ 10 comments

Feature hasn't been suggested before.

  • [x] 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

Please add Windows arm64 support πŸ™‡β€β™‚οΈ

LayZeeDK avatar Nov 14 '25 20:11 LayZeeDK

This issue might be a duplicate of existing issues. Please check:

  • #3002: Same error pattern for Windows x64 - "It seems that your package manager failed to install the right version of the opencode CLI for your platform"

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.

github-actions[bot] avatar Nov 14 '25 20:11 github-actions[bot]

Will do

rekram1-node avatar Nov 14 '25 20:11 rekram1-node

@rekram1-node You're the goat ! I don't use opencode just because there is no windows arm binaries

Volko61 avatar Nov 15 '25 06:11 Volko61

I think this may be blocked by the upstream bun issue

Ref:

β€”target | Operating System | Architecture | Modern | Baseline | Libc
-- | -- | -- | -- | -- | --
bun-linux-x64 | Linux | x64 | βœ… | βœ… | glibc
bun-linux-arm64 | Linux | arm64 | βœ… | N/A | glibc
bun-windows-x64 | Windows | x64 | βœ… | βœ… | -
bun-windows-arm64 | Windows | arm64 | ❌ | ❌ | -
bun-darwin-x64 | macOS | x64 | βœ… | βœ… | -
bun-darwin-arm64 | macOS | arm64 | βœ… | N/A | -
bun-linux-x64-musl | Linux | x64 | βœ… | βœ… | musl
bun-linux-arm64-musl | Linux | arm64 | βœ… | N/A

So it likely wont be a simple fix

rekram1-node avatar Nov 15 '25 06:11 rekram1-node

and it's even further upstream, webkit is the first thing to figure out https://github.com/oven-sh/WebKit/pull/105

thdxr avatar Nov 17 '25 19:11 thdxr

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.

mickythompson avatar Dec 28 '25 03:12 mickythompson

Any chance that we can install it with a different package manager? Lots of good holiday deals on Snapdragon laptops.

adsharma avatar Jan 03 '26 19:01 adsharma

has nothing to do w package managers?

rekram1-node avatar Jan 03 '26 20:01 rekram1-node

Right. Bun is a JavaScript runtime. Easy to get confused because of bun install ...

adsharma avatar Jan 04 '26 00:01 adsharma

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.

khairm avatar Jan 07 '26 11:01 khairm

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.

weichensw avatar Jan 22 '26 06:01 weichensw

wait for support + 1

gxsshallot avatar Jan 23 '26 22:01 gxsshallot

+1

TianjinAI avatar Jan 24 '26 01:01 TianjinAI

+1

chaishah avatar Jan 26 '26 23:01 chaishah

+1

Numaphor avatar Jan 30 '26 17:01 Numaphor

Thank you for helping highlight the importance of this issue, everyone. Please react to the original post to show your interest instead of adding +1 comments as they add noise to this thread, making it harder for maintainers and community members to catch up and get an overview of the situation.

LayZeeDK avatar Jan 30 '26 19:01 LayZeeDK

and it's even further upstream, webkit is the first thing to figure out oven-sh/WebKit#105

I added support for Windows ARM64.

https://github.com/oven-sh/bun/pull/26677

Image

bold84 avatar Feb 02 '26 23:02 bold84