-
-
Notifications
You must be signed in to change notification settings - Fork 80.7k
[Bug]: Windows 11 - Claude CLI provider fails with spawn claude ENOENT #92054
Copy link
Copy link
Closed
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Description
Metadata
Metadata
Assignees
Labels
P1High-priority user-facing bug, regression, or broken workflow.High-priority user-facing bug, regression, or broken workflow.bugSomething isn't workingSomething isn't workingclawsweeper:linked-pr-openClawSweeper found an open linked pull request for this issue.ClawSweeper found an open linked pull request for this issue.clawsweeper:no-new-fix-prClawSweeper does not recommend queueing a new automated fix PR for this issue.ClawSweeper does not recommend queueing a new automated fix PR for this issue.clawsweeper:source-reproClawSweeper found a high-confidence source-level issue reproduction.ClawSweeper found a high-confidence source-level issue reproduction.impact:auth-providerAuth, provider routing, model choice, or SecretRef resolution may break.Auth, provider routing, model choice, or SecretRef resolution may break.issue-rating: 🦞 diamond lobsterVery strong issue quality with high-confidence source-level or clear reproduction.Very strong issue quality with high-confidence source-level or clear reproduction.regressionBehavior that previously worked and now failsBehavior that previously worked and now fails
Type
Fields
Priority
None yet
Bug type
Regression (worked before, now fails)
Beta release blocker
No
Summary
OpenClaw fails to execute Claude Code on Windows 11 with "spawn claude ENOENT" even though Claude Code is installed and working.
Steps to reproduce
openclaw agent --local --agent main --message "hello"
spawn claude ENOENT
Expected behavior
OpenClaw should successfully execute Claude Code and return a model response.
Actual behavior
Every request fails before model execution with:
spawn claude ENOENT
Claude Code itself is installed and functional.
OpenClaw version
2026.6.5
Operating system
Windows 11
Install method
No response
Model
npm global
Provider / routing chain
openclaw -> claude-cli -> anthropic
Additional provider/model setup details
Claude Code 2.1.167 is installed.
The following command works:
claude --version
Result:
2.1.167 (Claude Code)
The Claude executable also works directly:
C:\Users\artur\AppData\Roaming\npm\node_modules@anthropic-ai\claude-code\bin\claude.exe --version
Result:
2.1.167 (Claude Code)
Logs, screenshots, and evidence
Impact and severity
Affected: Windows users using Claude CLI provider
Severity: High
Frequency: 100% reproducible
Consequence: OpenClaw cannot use Claude Code and all requests fail before model execution.
Additional information
Node.js version: 24.15.0
Claude Code version: 2.1.167
PATH includes:
C:\Users\artur\AppData\Roaming\npm
The issue appears related to process spawning on Windows because spawn('claude') fails while spawn('claude',{shell:true}) succeeds.