remote-control fails: node: bad option: --sdk-url

Resolved 💬 6 comments Opened Feb 25, 2026 by greena25 Closed Mar 5, 2026

Description

claude remote-control immediately fails with a Node.js argument parsing error. It appears that --sdk-url is being passed as a Node.js runtime flag rather than an application argument when spawning the child process.

Error Output

$ claude remote-control
Session failed: /Users/alex/.nvm/versions/node/v22.14.0/bin/node: bad option: --sdk-url session_01ER8UVwm1ruyTdQFkW6uaEr
To reconnect: claude --resume session_01ER8UVwm1ruyTdQFkW6uaEr

Environment

  • Claude Code version: 2.1.53
  • Node.js version: v22.14.0 (via nvm)
  • OS: macOS (Darwin 25.2.0)
  • Shell: zsh
  • Installation: npm install -g @anthropic-ai/claude-code

Steps to Reproduce

  1. Install Claude Code v2.1.53 globally
  2. Run claude remote-control in any directory

Expected Behavior

Remote control session starts and waits for a connection from claude.ai/code.

Actual Behavior

Session immediately fails. --sdk-url is interpreted by Node.js as a runtime option rather than being passed to the Claude Code application.

View original on GitHub ↗

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