remote-control fails with 'bad option: --sdk-url' on Node 22/25
Resolved 💬 3 comments Opened Mar 4, 2026 by harutoguri Closed Apr 1, 2026
Description
claude remote-control immediately fails with a Node.js error. The --sdk-url flag is being passed as a Node.js option instead of an application argument.
Error
[01:57:14] Session failed: /usr/local/Cellar/node@22/22.22.0_1/bin/node: bad option: --sdk-url session_01SJx5RfngSwkUNomfjaFv4w
[01:57:14] To reconnect: claude --resume session_01SJx5RfngSwkUNomfjaFv4w
Environment
- Claude Code: 2.1.68
- OS: macOS Sonoma (Darwin 25.3.0)
- Node.js: tested with both v25.6.0 and v22.22.0 (same error)
- Installed via:
npm install -g @anthropic-ai/claude-code - Shell: bash
Steps to Reproduce
cdinto a trusted workspace- Run
claude remote-control - Select
yto enable - Session immediately fails with the above error
Expected Behavior
Remote control session should start and display a QR code / URL for connecting from another device.
Additional Context
- Fresh reinstall of Claude Code did not fix the issue
- Switching Node versions (25 → 22 LTS) did not fix the issue
- The web interface at claude.ai/code also does not show the session
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗