anomalyco / anomalyco/opencode

opencode.exe fails with "Unsupported 16-Bit Application" error on Windows 10/11

Open
#40,097 3 comments 3 reactions 1 assignee View on GitHub

@Hona is already working on this.

Since Aug 1, 2026.

Dominant language
TypeScript
Stars
209k
Forks
27.5k
PR merge metrics
PR metrics pending

Description

Description
Image When trying to run `opencode` after a global installation via npm on Windows, it fails to execute and triggers a Windows system dialog error: "Unsupported 16-Bit Application. The program or feature '...\opencode.exe' cannot start or run due to incompatibility with 64-bit versions of Windows."

It seems the post-install script that should replace the placeholder .exe with the actual binary is either blocked or failing during the setup.
Steps to reproduce the behavior:

  1. Run npm i -g opencode-ai (Notice the install-scripts blocked warning during installation).
  2. Run opencode in PowerShell or Command Prompt.
  3. See the "Unsupported 16-Bit Application" error pop-up.
Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link
Image
Operating System

Windows 10 Pro

Terminal

Windows Terminal

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.