Windows Support #86

Closed
opened 2026-02-16 17:25:08 -05:00 by yindo · 11 comments
Owner

Originally created by @thdxr on GitHub (Jun 16, 2025).

Originally assigned to: @thdxr on GitHub.

Originally created by @thdxr on GitHub (Jun 16, 2025). Originally assigned to: @thdxr on GitHub.
yindo closed this issue 2026-02-16 17:25:08 -05:00
Author
Owner

@Mulej commented on GitHub (Jun 16, 2025):

Seems to just be a few issues with the weird paths that windows has.

packages/opencode/src/app/app.ts:49 Here you try to write to a file with a : in it's name, which is not supported in windows (the colon is there because of the drive letter).
packages/opencode/src/external/ripgrep.ts:112 This isn't finding rg.exe, probably another path issue, since windows uses \ as a path separator.
packages/opencode/src/index.ts:72 For some reason this path starts with a /, which is wrong on windows, since it has drive letters at the start (e.g. C:/rest/of/path).
packages/opencode/src/util/log.ts:22 This is another : in name issue.

These can probably be fixed pretty easily.

@Mulej commented on GitHub (Jun 16, 2025): Seems to just be a few issues with the weird paths that windows has. packages/opencode/src/app/app.ts:49 Here you try to write to a file with a `:` in it's name, which is not supported in windows (the colon is there because of the drive letter). packages/opencode/src/external/ripgrep.ts:112 This isn't finding rg.exe, probably another path issue, since windows uses `\` as a path separator. packages/opencode/src/index.ts:72 For some reason this path starts with a `/`, which is wrong on windows, since it has drive letters at the start (e.g. C:/rest/of/path). packages/opencode/src/util/log.ts:22 This is another `:` in name issue. These can probably be fixed pretty easily.
Author
Owner

@thdxr commented on GitHub (Jun 16, 2025):

yep some minor issues going to go through at the end of this week and fix

@thdxr commented on GitHub (Jun 16, 2025): yep some minor issues going to go through at the end of this week and fix
Author
Owner

@notlousybook commented on GitHub (Jun 17, 2025):

when i installed it with bun it says "/bin/sh" not found, but that only exists on linux, i think

@notlousybook commented on GitHub (Jun 17, 2025): when i installed it with bun it says "/bin/sh" not found, but that only exists on linux, i think
Author
Owner

@kshabanaa commented on GitHub (Jun 17, 2025):

how can i install it for windows

@kshabanaa commented on GitHub (Jun 17, 2025): how can i install it for windows
Author
Owner

@Southclaws commented on GitHub (Jun 22, 2025):

Happy to help windows development or testing, I use both windows/mac 50/50 daily. Would love to get this running as Claude code isn't cross platform so this looks like a much better alternative!

One note on path separators, / is fine on Windows, has been for many years, the : and paths starting with / will be the main issues.

@Southclaws commented on GitHub (Jun 22, 2025): Happy to help windows development or testing, I use both windows/mac 50/50 daily. Would love to get this running as Claude code isn't cross platform so this looks like a much better alternative! One note on path separators, `/` is fine on Windows, has been for many years, the `:` and paths starting with `/` will be the main issues.
Author
Owner

@QDaed commented on GitHub (Jun 23, 2025):

I think having windows native support really good for people want to sync project without using wsl2

@QDaed commented on GitHub (Jun 23, 2025): I think having windows native support really good for people want to sync project without using wsl2
Author
Owner

@justindotdevv commented on GitHub (Jun 24, 2025):

i tried to install using npm i -g opencode-ai@latest but it showed the output below:

14:52:50 [@justin] [/Documents]
$ npm i -g opencode-ai@latest
npm error code 1
npm error path C:\Users\user\AppData\Roaming\npm\node_modules\opencode-ai
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node ./postinstall.mjs
npm error Failed to create opencode binary symlink: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json'
npm error Require stack:
npm error - C:\Users\user\AppData\Roaming\npm\node_modules\opencode-ai\postinstall.mjs
npm error A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2025-06-24T12_52_59_495Z-debug-0.log

here is the log file:

2025-06-24T12_52_59_495Z-debug-0.log

@justindotdevv commented on GitHub (Jun 24, 2025): i tried to install using `npm i -g opencode-ai@latest` but it showed the output below: ``` 14:52:50 [@justin] [/Documents] $ npm i -g opencode-ai@latest npm error code 1 npm error path C:\Users\user\AppData\Roaming\npm\node_modules\opencode-ai npm error command failed npm error command C:\Windows\system32\cmd.exe /d /s /c node ./postinstall.mjs npm error Failed to create opencode binary symlink: Could not find package opencode-win32-x64: Cannot find module 'opencode-win32-x64/package.json' npm error Require stack: npm error - C:\Users\user\AppData\Roaming\npm\node_modules\opencode-ai\postinstall.mjs npm error A complete log of this run can be found in: C:\Users\user\AppData\Local\npm-cache\_logs\2025-06-24T12_52_59_495Z-debug-0.log ``` here is the log file: [2025-06-24T12_52_59_495Z-debug-0.log](https://github.com/user-attachments/files/20884181/2025-06-24T12_52_59_495Z-debug-0.log)
Author
Owner

@BleedingDev commented on GitHub (Jun 24, 2025):

Same here, I am testing on Windows Arm (Microsoft DevKit). :)

@BleedingDev commented on GitHub (Jun 24, 2025): Same here, I am testing on Windows Arm (Microsoft DevKit). :)
Author
Owner

@imackle-rcs commented on GitHub (Jun 26, 2025):

I've started testing out on Windows - grabbed the binary from releases. When using / command to search for files, get an instant crash after the /file_search request

Bun v1.2.17 (282dda62) Windows x64 (baseline)         ┃                                                                              ┃
Windows v.win11_dt                                     enter send                                    GitHub Copilot Claude Sonnet 3.7 
CPU: sse42 avx avx2
Args: "C:\dev\Tooling\bin\opencode.exe"
Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(3) http_server jsc shell(2) spawn standalone_executable transpiler_cache
Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:url" "node:util" "node:http2"
Elapsed: 2227ms | User: 218ms | Sys: 109ms
RSS: 0.25GB | Peak: 0.25GB | Commit: 0.54GB | Faults: 62842

panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF

I'm guessing Ripgrep related

I also experience #404

@imackle-rcs commented on GitHub (Jun 26, 2025): I've started testing out on Windows - grabbed the binary from releases. When using `/` command to search for files, get an instant crash after the /file_search request ``` Bun v1.2.17 (282dda62) Windows x64 (baseline) ┃ ┃ Windows v.win11_dt  enter send GitHub Copilot Claude Sonnet 3.7  CPU: sse42 avx avx2 Args: "C:\dev\Tooling\bin\opencode.exe" Features: Bun.stderr(2) Bun.stdin(2) Bun.stdout(2) fetch(3) http_server jsc shell(2) spawn standalone_executable transpiler_cache Builtins: "bun:main" "node:assert" "node:async_hooks" "node:buffer" "node:child_process" "node:crypto" "node:fs" "node:fs/promises" "node:http" "node:https" "node:module" "node:net" "node:os" "node:path" "node:process" "node:readline" "node:stream" "node:url" "node:util" "node:http2" Elapsed: 2227ms | User: 218ms | Sys: 109ms RSS: 0.25GB | Peak: 0.25GB | Commit: 0.54GB | Faults: 62842 panic(main thread): Segmentation fault at address 0xFFFFFFFFFFFFFFFF ``` I'm guessing Ripgrep related I also experience #404
Author
Owner

@damywise commented on GitHub (Jun 27, 2025):

Just tried v0.1.150 from releases.

I was able to run it with bash. No inputs are recognized when using Command Prompt and Powershell.
However newlines doesn't seem to work, and the last word or from the AI seems to be split into a new message every time.
And scrolling is weird I can't explain it so here's a video.

https://github.com/user-attachments/assets/f93d6ecb-438b-4aa6-b51f-c841c83989e0

@damywise commented on GitHub (Jun 27, 2025): Just tried v0.1.150 from releases. I was able to run it with bash. No inputs are recognized when using Command Prompt and Powershell. However newlines doesn't seem to work, and the last word or from the AI seems to be split into a new message every time. And scrolling is weird I can't explain it so here's a video. https://github.com/user-attachments/assets/f93d6ecb-438b-4aa6-b51f-c841c83989e0
Author
Owner

@rekram1-node commented on GitHub (Dec 27, 2025):

[automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!

@rekram1-node commented on GitHub (Dec 27, 2025): [automated] Closing due to 90+ days of inactivity. Feel free to reopen if you still need this!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#86