[BUG] claude remote-control fails with "bad option: --sdk-url"

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

Running claude remote-control immediately fails. The --sdk-url flag is being passed as a Node.js CLI argument instead of an application argument, causing Node to reject it.

What Should Happen?

claude remote-control should start a remote control session, display a session URL and QR code, and wait for remote connections.

Error Messages/Logs

Session failed: /usr/local/bin/node: bad option: --sdk-url session_01BAPVd7LyQZSjrvdoPZeupJ [15:59:18] To reconnect: claude --resume session_01BAPVd7LyQZSjrvdoPZeupJ

Steps to Reproduce

  1. Ensure you are logged in (claude then /login)
  2. cd into any project directory
  3. Run claude remote-control
  4. Session immediately fails with "bad option: --sdk-url"

Claude Model

Not sure / Multiple models

Is this a regression?

I don't know

Last Working Version

_No response_

Claude Code Version

2.1.61 (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 ↗