Modern apps, old systems

View on GitHub and download the scripts

Control a Catalina Mac from your phone (Claude Remote Control)

🇪🇸 Versión en español

Status: ⚠️ partial. From the Claude phone app (Code section) or claude.ai/code you can use this Mac: open new sessions on it and follow open ones. It does not appear in the regular chat’s “Devices” list, because a 2013 Mac has no Secure Enclave.

From Mac with T2 / Apple Silicon Intel Mac without T2
Regular chat (web/app) → “Devices” ✅ ❌
Claude Code (web/app) → open sessions (Remote Control) ✅ ✅
Claude Code (web/app) → new session on the Mac (claude remote-control) ✅ ✅

Why not “Devices”

The device registry stores a key in the Secure Enclave. On a Mac without T2 the log shows hardwareKey: SecItemCopyMatching failed (OSStatus -34018) / enclave key unavailable and the Mac connects with device_id none. A software-key path exists only for development builds; forcing it would bypass an Anthropic security control, so we don’t.

1. Remote Control for sessions

Enable Remote Control in a Claude Code session, and in Claude Desktop settings turn on “Connect new sessions to Remote Control”.

2. New sessions on the Mac from the phone

mkdir -p ~/claude-movil
cd ~/claude-movil && claude          # accept folder trust once, then /exit
claude remote-control --name "My MacBook"

When it says Connected: phone → Code → new session → environment “My MacBook”. Notes: launchd can’t access ~/Desktop on Catalina (uv_cwd ENOENT), hence ~/claude-movil; restarting quickly gives 409 for ~1 minute (old registration expiring), and two entries may show briefly.

3. Automatic while Claude Desktop is open

claude-despierto.sh (run by the LaunchAgent com.usuario.claude-despierto.plist) checks every 15 s; while Claude Desktop runs it keeps the Mac awake (caffeinate -i -s -w <pid>) and keeps claude remote-control running (retry at most every 5 min); it stops everything when Claude quits. On Catalina pgrep doesn’t see Claude, so it uses ps -axo pid=,args=. Closing the lid still sleeps the Mac.

mkdir -p ~/bin ~/claude-movil
cp claude-despierto.sh ~/bin/ && chmod +x ~/bin/claude-despierto.sh   # edit NOMBRE and the Node PATH inside
sed "s|/Users/TU_USUARIO|$HOME|g" com.usuario.claude-despierto.plist > ~/Library/LaunchAgents/com.usuario.claude-despierto.plist
launchctl load -w ~/Library/LaunchAgents/com.usuario.claude-despierto.plist
tail ~/Library/Logs/claude-despierto.log
# remove: launchctl unload -w ~/Library/LaunchAgents/com.usuario.claude-despierto.plist