"claude remote-control" CLI subcommand fails on Windows with "bad option: --sdk-url"
Resolved 💬 3 comments Opened Feb 26, 2026 by takeshihashimoto Closed Mar 3, 2026
Bug Description
Running claude remote-control (or claude rc) directly from the terminal before starting a Claude Code session fails with the following error on Windows:
Session failed: C:\Program Files\nodejs\node.exe: bad option: --sdk-url
To reconnect: claude --resume session_01CEuAukqwBbXHLSARSb1Sit
However, using /remote-control (or /rc) from within an active Claude Code session works perfectly fine.
Additionally: QR code not displayed
When /remote-control is activated from within a session, only the session URL is shown. The QR code (for easy phone access) does not appear. Pressing spacebar does not toggle QR code display either.
Steps to Reproduce
Issue 1: CLI subcommand failure
- Open a terminal (PowerShell or Windows Terminal)
- Run
claude remote-controlorclaude rc - Error:
Session failed: C:\Program Files\nodejs\node.exe: bad option: --sdk-url
Issue 2: Missing QR code
- Start Claude Code normally with
claude - Run
/remote-controlfrom within the session - Session URL is displayed, but no QR code appears
Expected Behavior
claude remote-controlshould start remote control directly from the terminal without needing to first launch Claude interactively- QR code should be displayed alongside the session URL for easy mobile access
Workaround
Start Claude Code first (claude), then use /remote-control within the session. Remote control itself works fine this way (minus the QR code).
Environment
- OS: Windows 11 Pro (10.0.26200)
- Claude Code version: v2.1.59
- Terminal: Windows Terminal (PowerShell)
- Node.js: Installed at
C:\Program Files\nodejs\node.exe
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗