Add --remote-control CLI flag to enable remote control at session start
Resolved 💬 3 comments Opened Mar 26, 2026 by BigfootAU Closed Mar 30, 2026
Summary
There is currently no way to start a Claude Code session with remote control enabled from the CLI. The only options are:
/remote-controlslash command inside a running session (requires interactive input)/config→ "Enable Remote Control for all sessions" toggle (affected by bug #29929 where it resets to false)
Use Case
When managing multiple Claude Code sessions from a mobile device (iPhone via claude.ai/code), the workflow is:
- Connect to Session A via remote control
- From Session A, spawn a new Terminal tab with a new Claude session
- Connect to the new session via remote control
This workflow is currently impossible because the spawned session cannot have remote control enabled programmatically. You must have physical access to the Mac to type /remote-control in the new session.
Requested Feature
Add a --remote-control CLI flag:
claude --remote-control
This would start the session with remote control already enabled, printing the connection URL to stdout immediately. This allows:
- Spawning remote-controllable sessions from scripts
- Spawning remote-controllable sessions from other remote-controlled sessions
- Fully remote management of multiple parallel Claude sessions
Workarounds Attempted
claude --remote-control— flag does not exist- Shell function wrapping
claude— strips arguments, but evencommand claude --remote-controldoesn't work since the flag doesn't exist /configtoggle — resets to false (bug #29929)- SessionStart hooks — cannot invoke slash commands
- AppleScript keystroke injection — blocked by macOS security
Related Issues
- #29929 — "Enable Remote Control for all sessions" setting resets to false
- #30495 — "Enable Remote Control for all sessions" option missing from /config
🤖 Generated with Claude Code
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗