[BUG]

Resolved 💬 3 comments Opened Mar 2, 2026 by rad2407 Closed Mar 6, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

Title: claude remote-control fails on Windows — bad option: --sdk-url

Description:

Running claude remote-control on Windows fails immediately with:

[18:01:11] Session failed: C:\Program Files\nodejs\node.exe: bad option: --sdk-url session_01FWLTNJKv7h3YDcqoFfM9XS
[18:01:11] To reconnect: claude --resume session_01FWLTNJKv7h3YDcqoFfM9XS
Node.js is receiving --sdk-url as a Node.js flag instead of as a script argument. The spawn call appears to be constructing node.exe --sdk-url <session> instead of node.exe claude.js --sdk-url <session>.

Environment:

Claude Code: 2.1.63
Node.js: v24.5.0
OS: Windows 11
Shell: Git Bash (bash.exe)
Plan: Max
Steps to reproduce:

cd to any trusted project directory
Run claude remote-control
Session immediately fails with above error

What Should Happen?

Running claude remote-control should display a QR code and a URL
(https://claude.ai/remote/session_xxx) in the terminal, allowing the
user to connect to the session from a mobile device via browser.

Error Messages/Logs

[18:01:11] Session failed: C:\Program Files\nodejs\node.exe: bad option: --sdk-url session_01FWLTNJKv7h3YDcqoFfM9XS
[18:01:11] To reconnect: claude --resume session_01FWLTNJKv7h3YDcqoFfM9XS

Steps to Reproduce

cd to any trusted project directory
Run claude remote-control
Session immediately fails with above erro

Claude Model

None

Is this a regression?

Yes, this worked in a previous version

Last Working Version

_No response_

Claude Code Version

2.1.63 (Claude Code)

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗