[BUG] remote-control fails on Windows: "node.exe: bad option: --sdk-url"
Resolved 💬 2 comments Opened Feb 25, 2026 by coelacanth2017 Closed Mar 25, 2026
Bug Description
claude remote-control fails immediately on Windows with the error:
Session failed: D:\Dev\Install\nodejs\node.exe: bad option: --sdk-url session_xxx
It appears that --sdk-url is being passed as a flag to node.exe rather than to the Claude Code process.
Steps to Reproduce
- Run
claude remote-controlon Windows - Select "y" to enable Remote Control
- Session immediately fails with the above error
Environment
- OS: Windows 11 Pro 10.0.26100
- Claude Code: 2.1.56 (latest, installed via npm)
- Node.js: v22.16.0
- Shell: PowerShell
- Plan: Max
Expected Behavior
Remote Control session should start and display a session URL / QR code.
Actual Behavior
Session fails immediately with node.exe: bad option: --sdk-url.
Additional Context
- Tried reinstalling Claude Code (
npm install -g @anthropic-ai/claude-code@latest) — same result. /loginwas run successfully before attemptingremote-control.- Claude Code is installed at a custom global npm path:
D:\Dev\Install\npm\node_modules\@anthropic-ai\claude-code
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗