[BUG] remote-control fails on Windows 11 + Node v24: "bad option: --sdk-url"

Resolved 💬 3 comments Opened Feb 26, 2026 by DevAntsa Closed Mar 3, 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?

claude remote-control connects and authenticates successfully, but
immediately crashes when spawning the local Claude process. Node.js
interprets --sdk-url as a Node flag instead of passing it through to
the Claude script, causing bad option: --sdk-url.

What Should Happen?

Remote control session should start successfully and be accessible from
phone/browser via the session URL or QR code.

Error Messages/Logs

Remote Control v2.1.59
  Max concurrent sessions: 1
  Environment ID: env_01UF4MSKAajTNiUg4HXLV7ZD

  [23:48:11] Connection error, retrying in 1.8s (0s elapsed): Request      
  failed with status code 500: Internal server error
  [23:48:14] Reconnected after 3s
  [23:48:20] Session started: "Session session_01JyD7xww6ybAi2rtnnzSien"   
  [23:48:20] Debug log: C:\Users\anton\AppData\Local\Temp\claude\bridge-ses
  sion-session_01JyD7xww6ybAi2rtnnzSien.log
  Connected · moon-dev-ai-agents · main
  [23:48:20] Session failed: C:\Program Files\nodejs\node.exe: bad option: 
  --sdk-url session_01JyD7xww6ybAi2rtnnzSien
  [23:48:20] To reconnect: claude --resume session_01JyD7xww6ybAi2rtnnzSien
  [23:48:20] Failed to archive session session_01JyD7xww6ybAi2rtnnzSien:   
  Not Found
  [23:48:21] Environment deregistered.
  [23:48:21] Environment offline.

Steps to Reproduce

  1. Open PowerShell on Windows 11
  2. Navigate to any project directory
  3. Run claude remote-control --verbose
  4. Session connects and authenticates, then immediately fails with "bad

option: --sdk-url"

Claude Model

Opus

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.59

Platform

Other

Operating System

Windows

Terminal/Shell

PowerShell

Additional Information

_No response_

View original on GitHub ↗

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