[Bug] Remote Control session fails with invalid Node.js flag `--sdk-url`
Resolved 💬 3 comments Opened Feb 25, 2026 by onaka-yurusugi Closed Feb 25, 2026
Bug Description
[BUG] Remote Control session fails with node: bad option: --sdk-url
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report
- [x] I am using the latest version of Claude Code
What's Wrong?
Running claude remote-control fails immediately after session creation with the error:
Session failed: /home/tomo/.nvm/versions/node/v22.15.0/bin/node: bad option: --sdk-url session_01Lpzy2ismeG828c7a2XKDnx
It appears that --sdk-url is being passed as a Node.js CLI flag rather than as an application argument when spawning the child process for the Remote Control session.
Steps to Reproduce
- Run
claude remote-control - Select "y" to enable Remote Control
- Session is created but immediately fails
$ claude remote-control
Remote Control lets you access this CLI session from the web (claude.ai/code)
or the Claude app, so you can pick up where you left off on any device.
You can disconnect remote access anytime by running /remote-control again.
Enable Remote Control? (y/n) y
[09:09:42] Session failed: /home/tomo/.nvm/versions/node/v22.15.0/bin/node: bad option: --sdk-url session_01Lpzy2ismeG828c7a2XKDnx
[09:09:42] To reconnect: claude --resume session_01Lpzy2ismeG828c7a2XKDnx
The same error occurs with Node.js v24.14.0 as well.
Additional Context
- Initially received
Error: Remote Control is not enabled for your account. Contact your administrator.— resolved by logging out and logging back in (/login). /remote-envreturns(no content).- The error is reproducible across multiple attempts and Node.js versions (v22.15.0 and v24.14.0).
Expected Behavior
Remote Control session should start successfully and display a session URL / QR code to connect from another device.
Environment
- Claude Code version: 2.1.52
- Model: Opus 4.6
- Account: Claude Max
- Login method: claude.ai account (not Console)
- OS: Windows 11 / WSL2 (Ubuntu 24.04)
- WSL version: 2.3.26.0 (Kernel: 5.15.167.4-1)
- Node.js: v22.15.0 (also tested with v24.14.0, same result)
- Node manager: nvm
- Terminal: Windows Terminal (WSL)
Environment Info
- Platform: linux
- Terminal: vscode
- Version: 2.1.52
- Feedback ID: 73d1c2bb-2259-4456-a3d0-e9b82e3c7297
Errors
[{"error":"Error: ENOENT: no such file or directory, open '/etc/claude-code/managed-settings.json'\n at Module.openSync (node:fs:562:18)\n at Object.readSync (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:9:1291)\n at Wj (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6487:105)\n at qH (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6489:224)\n at J_z (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6473:6011)\n at nMq (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6473:5788)\n at file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6473:4481\n at async cMq (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6473:4857)\n at async Object.callback (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:12569:391)\n at async Md8.parseAsync (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:6571:4156)","timestamp":"2026-02-25T00:22:48.313Z"},{"error":"Error: LSP server plugin:pyright-lsp:pyright failed to start: spawn pyright-langserver ENOENT\n at Object.start (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2602:22368)\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)\n at async Object.$ [as start] (file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2602:24667)","timestamp":"2026-02-25T00:22:50.037Z"},{"error":"Error: spawn pyright-langserver ENOENT\n at ChildProcess._handle.onexit (node:internal/child_process:285:19)\n at onErrorNT (node:internal/child_process:483:16)\n at process.processTicksAndRejections (node:internal/process/task_queues:90:21)","timestamp":"2026-02-25T00:22:50.038Z"},{"error":"Error: Failed to start LSP server plugin:pyright-lsp:pyright: spawn pyright-langserver ENOENT\n at file:///home/tomo/.nvm/versions/node/v22.15.0/lib/node_modules/@anthropic-ai/claude-code/cli.js:2602:32852\n at process.processTicksAndRejections (node:internal/process/task_queues:105:5)","timestamp":"2026-02-25T00:22:50.038Z"},{"error":"Error: 1: Command failed with exit code 1: code --force --install-extension anthropic.claude-code Unable to connect to VS Code server: Error in request.\nError: connect ENOENT…
Note: Content was truncated.
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗