goose icon indicating copy to clipboard operation
goose copied to clipboard

Can't use Claude Code on Windows

Open sguergachi opened this issue 4 months ago • 10 comments

Describe the bug

  1. Select Claude Code as model provider
  2. Exec chat "Develop a tamagotchi game that lives on my computer and follows a pixelated styling"
  3. Error: Request failed: Failed to spawn Claude CLI command 'C:\Users\Sammy\AppData\Roaming\npm\claude': %1 is not a valid Win32 application. (os error 193). Make sure the Claude Code CLI is installed and in your PATH, or set CLAUDE_CODE_COMMAND in your config to the correct path.

Expected behavior Command should not fail

Screenshots If applicable, add screenshots to help explain your problem.

Image

claude is a recognized command on my system:

Image

Please provide following information:

  • OS & Arch: Windows 11 Pro 24H2
  • Interface: [UI/CLI]
  • Version: 1.4.0
  • Extensions enabled: Computer Controller, Developer, Playwright, Vscode, Memory
  • Provider & Model: Claude Code

Additional context Add any other context about the problem here.

sguergachi avatar Aug 16 '25 13:08 sguergachi

Same here.

some reason mine says

Request failed: Failed to spawn Claude CLI command 'C:\Users\acoop\scoop\apps\nvm\current\nodejs\nodejs\claude': %1 is not a valid Win32 application. (os error 193). Make sure the Claude Code CLI is installed and in your PATH, or set CLAUDE_CODE_COMMAND in your config to the correct path.

Snazzie avatar Sep 19 '25 15:09 Snazzie

Same problem here: Request failed: Failed to spawn Claude CLI command

even if set the path in config.

tzutoo avatar Sep 25 '25 04:09 tzutoo

same here, even though if I do spawn a powershell window and type 'claude', it works out of the box..

yuisheaven avatar Sep 26 '25 02:09 yuisheaven

FYI we won't be able to support claude cli provider on windows for the time being. cc @blackgirlbytes do you happen to recall if you document this limitation?

michaelneale avatar Oct 13 '25 06:10 michaelneale

If I had to guess, the problem will be that Goose is trying to spawn npm's command claude, which is not executable on Windows, instead of claude.cmd, which can be started on Windows. Windows shell is smart enough to add .cmd, but whatever goose is using to run these, probably isn't.

I think I saw it before, and it might happen for npx/npx.cmd and extensions too.

vlascik avatar Oct 21 '25 17:10 vlascik

I'm getting the same error on Mac too...I have claude installed as a global npm install and I've added the bin for npm on the PATH, same for gemini

paoloricciuti avatar Oct 22 '25 11:10 paoloricciuti

the error says to try to set CLAUDE_CODE_COMMAND, can you try that? not saying that is the correct solution, but if it does work it tells us what's going on

DOsinga avatar Oct 22 '25 17:10 DOsinga

I've kinda fixed it by using the direct path of Claude code as a command but that's obviously not ideal

paoloricciuti avatar Oct 22 '25 18:10 paoloricciuti

agree with @michaelneale that we should mark claude code on windows as not officially supported. :(

DOsinga avatar Oct 31 '25 18:10 DOsinga

no i dont think we document this limitation. i think you were kind enough to add the documentation for us, @michaelneale . I will add this limitation now. Thank you!

blackgirlbytes avatar Nov 01 '25 21:11 blackgirlbytes