remote-control fails on Windows: bad option --sdk-url
Resolved 💬 3 comments Opened Feb 25, 2026 by xaxixak Closed Mar 1, 2026
Description
claude remote-control fails on Windows 11 with bad option: --sdk-url error. The session connects briefly but then immediately crashes.
Steps to Reproduce
- Run
claude remote-controlfrom terminal (Git Bash or PowerShell) - Session connects and shows URL + QR code prompt
- After a few seconds, session fails
Error Output
[23:22:33] Session failed: C:\Program Files\nodejs\node.exe: bad option: --sdk-url session_01UsWsRTCr42W6QznvGceTEk
[23:22:33] To reconnect: claude --resume session_01UsWsRTCr42W6QznvGceTEk
Attempting to resume also fails with "failed to load session".
Environment
- Claude Code version: 2.1.56
- OS: Windows 11 Home (10.0.26100)
- Node.js: Located at
C:\Program Files\nodejs\node.exe - Shell: PowerShell / Git Bash
Analysis
It appears the --sdk-url flag is being passed as a Node.js argument rather than a Claude Code argument when spawning the remote session subprocess on Windows.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗