Skip to content

Opencode v(0.1.152) not working on my Windows 11 #460

Closed

Description

@JDhruv14

After successful OpenAI API login, launching opencode.exe results in a stuck on homepage with just /command interface that just shows up but can't use it anything that shows up with no ability to type or interact, making the CLI unusable on Windows 11. Additionally, the inability to install via npm install blocks alternate setup paths.Even this shortcut keys doesn't work. This needs urgent fixing or at least proper logs and instructions to debug, so users can actually test and use the tool as intended.

Image

Image

Activity

  1. self-assigned this
    on Jun 27, 2025
  2. JDhruv14 commented on Jun 28, 2025

    @JDhruv14
    Author

    Hii @thdxr I downloaded the latest version and still it ain't working. I'm not kidding. I can provide you with video if you think I'm bluffing.

  3. sickmz commented on Jun 28, 2025

    @sickmz

    same, nothing is interactive or typeable

  4. davidanew commented on Jul 2, 2025

    @davidanew

    I have this issue with 0.1.173. Windows 11 Powershell and cmd. The slash commands work but nothing else does. I am logged into Claude pro plan. This was installed with the .exe download.

    BTW - I think if you get opencode workin with Claude in Windows it could be very popular, at least until there is Windows Claude Code version. Us WIndows users are second class citizens when it comes to these tools.

  5. JDhruv14 commented on Jul 3, 2025

    @JDhruv14
    Author

    Yuppp, what @davidanew said is exactly what I'm facing as well

  6. thdxr commented on Jul 3, 2025

    @thdxr
    Member

    closing in favor of #631

  7. Terryohana commented on Jul 3, 2025

    @Terryohana

    Having the same issue with windows :(

  8. davidanew commented on Jul 4, 2025

    @davidanew
  9. strager commented on Jul 5, 2025

    @strager
    Contributor

    Input issues might be related to num lock (see charmbracelet/x#485). Can you try turning off num lock?

  10. kotsh23 commented on Jul 30, 2025

    @kotsh23

    i cant even install

    C:\Users\Kotsh>npm install -g opencode-ai
    npm WARN cleanup Failed to remove some directories [
    npm WARN cleanup   [
    npm WARN cleanup     'C:\\Users\\Kotsh\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64',
    npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\Kotsh\AppData\Roaming\npm\node_modules\opencode-ai\node_modules\opencode-windows-x64\bin'] {
    npm WARN cleanup       errno: -4048,
    npm WARN cleanup       code: 'EPERM',
    npm WARN cleanup       syscall: 'rmdir',
    npm WARN cleanup       path: 'C:\\Users\\Kotsh\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules\\opencode-windows-x64\\bin'
    npm WARN cleanup     }
    npm WARN cleanup   ],
    npm WARN cleanup   [
    npm WARN cleanup     'C:\\Users\\Kotsh\\AppData\\Roaming\\npm\\node_modules\\opencode-ai',
    npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\Kotsh\AppData\Roaming\npm\node_modules\opencode-ai\node_modules'] {
    npm WARN cleanup       errno: -4048,
    npm WARN cleanup       code: 'EPERM',
    npm WARN cleanup       syscall: 'rmdir',
    npm WARN cleanup       path: 'C:\\Users\\Kotsh\\AppData\\Roaming\\npm\\node_modules\\opencode-ai\\node_modules'
    npm WARN cleanup     }
    npm WARN cleanup   ]
    npm WARN cleanup ]
    npm ERR! code 1
    npm ERR! path C:\Users\Kotsh\AppData\Roaming\npm\node_modules\opencode-ai
    npm ERR! command failed
    npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node ./postinstall.mjs
    npm ERR! Failed to create opencode binary symlink: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json'
    npm ERR! Require stack:
    npm ERR! - C:\Users\Kotsh\AppData\Roaming\npm\node_modules\opencode-ai\postinstall.mjs
    
    npm ERR! A complete log of this run can be found in: C:\Users\Kotsh\AppData\Local\npm-cache\_logs\2025-07-30T06_46_32_181Z-debug-0.log
    
    C:\Users\Kotsh>yarn global add opencode-ai
    yarn global v1.22.22
    [1/4] Resolving packages...
    [2/4] Fetching packages...
    [3/4] Linking dependencies...
    [4/4] Building fresh packages...
    error C:\Users\Kotsh\AppData\Local\Yarn\Data\global\node_modules\opencode-ai: Command failed.
    Exit code: 1
    Command: node ./postinstall.mjs
    Arguments:
    Directory: C:\Users\Kotsh\AppData\Local\Yarn\Data\global\node_modules\opencode-ai
    Output:
    Failed to create opencode binary symlink: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json'
    Require stack:
    - C:\Users\Kotsh\AppData\Local\Yarn\Data\global\node_modules\opencode-ai\postinstall.mjs
    info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
    
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions