You want a persistent Claude Code remote-control session running in the background on your Mac, accessible from your phone at any time. This avoids needing to manually open a terminal and run claude remote-control every time.
File: ~/Library/LaunchAgents/com.jubi.claude-remote.plist
A LaunchAgent that:
- Runs
claude remote-control --permission-mode acceptEdits --verbose - Working directory:
/Users/jubi/Desktop/podhaven - Passes
MAX_THINKING_TOKENS=10000environment variable - Logs stdout/stderr to
~/.claude/remote-control.log - Uses
KeepAlive = trueso it auto-restarts if the process exits - Starts automatically on login (
RunAtLoad = true)
Key details:
- Binary path:
/Users/jubi/.local/bin/claude --verboseflag for connection diagnostics in logsacceptEditspermission mode (reads/edits freely, prompts for shell commands)
- Load it:
launchctl load ~/Library/LaunchAgents/com.jubi.claude-remote.plist - Verify it's running:
launchctl list | grep claude - Check logs:
tail -f ~/.claude/remote-control.log - Connect from phone via Claude app — the session should appear in claude.ai/code
- Stop:
launchctl unload ~/Library/LaunchAgents/com.jubi.claude-remote.plist - Restart: unload then load again
- View logs:
cat ~/.claude/remote-control.log
- After loading, confirm the process is running via
launchctl list | grep claude - Check
~/.claude/remote-control.logfor the session URL - Open the URL or find the session in the Claude app on your phone