Claude Code Remote Control keeps disconnecting? Check sleep first

By Matyas Rathonyi. Updated October 11, 2026. Guides

Mac sleep is one cause of Remote Control disconnects, not the only one. Check it first because it is the one cause you can prove in a minute: if macOS logged a sleep at the moment the session dropped, keep the Mac awake. If it did not, the cause is the process, the network, your login, another device, or a bug that people report on Macs that never sleep.

First checkpmset -g log at the drop time
Sleep dropsReconnect when the Mac wakes
Other dropsNetwork, login, another device
Still openGitHub issue #33041
Two rows over time. The top row shows the Mac awake except for one sleep gap. The bottom row shows the Remote Control link with two breaks. The first break lines up with the sleep gap. The second break happens while the Mac is awake, so sleep did not cause it. Mac z Link Sleep Mac slept Not sleep Mac awake time
Two drops, two different causes.The first break in the link sits inside a sleep gap, so keeping the Mac awake fixes it. The second happens while the Mac is awake, and no keep-awake setting will help.

Remote Control drops look the same from the phone whatever caused them: the session goes quiet, or the app says it cannot reach your machine. This page gives an order to work through, built from Anthropic's Remote Control documentation and the public bug reports, all read on October 11, 2026. For what a closed lid does to a session and how to keep one going with the lid shut, see Remote Control with the MacBook lid closed; this page is only about finding out why a session dropped.

The order to check things in

Diagnosis ladder. First: is a reason shown on screen? If yes, follow that fix. If no: is there a sleep entry in the power log at the drop time? If yes, keep the Mac awake. If no: did the claude process stop? If yes, start it again. If no: did the network or login change? If yes, fix it and reconnect. If none apply, it is probably a known bug. Reason on screen? Follow that fix Sleep in the log? Keep Mac awake Process stopped? Start it again Network or login? Fix, reconnect Likely a bug see #33041
Right means yes, down means no. Each step is cheaper than the one below it, and only the second step has anything to do with sleep. Most people skip straight to the last box; the first two take a minute and often settle it.

Step 1: read the reason Claude Code gives you

Before guessing, look at the terminal on the Mac. Anthropic's docs say that when the connection fails in an interactive session, the Remote Control indicator changes to show the failure, and "Claude Code shows the reason in a notification and adds it to the conversation." Scroll up in the session and look for a line that starts with Remote Control disconnected. If there is one, it names the cause and you can skip to the matching section below.

In server mode (claude remote-control), the docs list --verbose for detailed connection and session logs and --debug-file <path> to write debug logs to a file. Turn them on if the drops repeat.

One warning about what the phone says. A commenter on issue #33041 reports the client showing that the machine "may be asleep or offline" while the Mac and the Remote Control process were both up. Treat that wording as a guess by the app, and check the Mac's own log.

Step 2: rule sleep in or out

Note the time the session dropped, as closely as you can. Then open Terminal on the Mac and run:

pmset -g log | grep -E "Entering Sleep|Wake from" | tail -40

The pmset manual describes -g log as "a history of sleeps, wakes, and other power management events." It needs no sudo. The full log is long, so the grep keeps only the lines that matter. On the MacBook I ran this on today, the lines look like this:

2026-10-11 14:43:28 +0200 Sleep     Entering Sleep state due to 'Maintenance Sleep' ... Using Batt (Charge:65%)
2026-10-11 14:47:32 +0200 Wake      Wake from Deep Idle [CDNVA] : due to ... lid ... HID Activity
A power log where the session dropped at 14:02. The log shows Sleep at 14:02 and Wake at 14:31, so sleep caused the drop. 13:10 Wake 14:02 Sleep 14:31 Wake dropped at 14:02 Sleep caused it A power log where the session dropped at 14:02. The log shows a Wake at 09:15 and no Sleep until 23:40, so the Mac was awake and sleep did not cause the drop. 09:15 Wake 23:40 Sleep dropped at 14:02 Look elsewhere
Compare the drop time with the log. A Sleep entry at the drop and a Wake entry where the session came back means sleep. A Mac that was awake straight through the drop means you can stop adjusting sleep settings.

How to read it:

If the times match, the fix depends on why the Mac slept:

To see what is holding the Mac awake right now, run pmset -g and read the sleep line, which names the processes preventing sleep, or pmset -g assertions for the full list.

If the Mac was awake across the drop, sleep is not your problem. Keep going.

Step 3: check the process is still running

Remote Control is a local process. Anthropic's docs: "If you close the terminal, quit the Desktop app or VS Code, or otherwise stop the claude process, the session goes offline."

Step 4: network changes and outages

The Mac can be awake and still unable to reach Anthropic. The docs describe three separate cases, each with its own limit:

What happenedWhat Claude Code doesWhat you seeFix
VPN or network change, then HTTP 403 answers Retries for up to three minutes, then disconnects A reason naming what refused: a network edge, or a proxy, VPN or firewall on your network Fix that hop, then /remote-control
Long outage, interactive session Retries for as long as the outage lasts Reconnects by itself when the network returns None needed
Long outage, server mode Gives up after roughly 10 minutes; the process exits No claude remote-control process left Run claude remote-control again
Presence heartbeats failing Disconnects the interactive session could not reach the Remote Control server for about 30 minutes /remote-control

Step 5: login, policy and other devices

Login. Anthropic's error reference explains that a live connection runs on short-lived credentials that Claude Code renews from your saved claude.ai login. If that login stops being accepted, Remote Control stops, and the transcript shows a line such as Remote Control disconnected followed by Claude.ai login expired and the instruction to run /login, then /remote-control. Your local session keeps running the whole time.

Team and Enterprise. If your organization uses Trusted Devices, the message session expired for trusted-device check means your sign-in is more than 18 hours old; the docs say to run /login or confirm with Touch ID, Face ID or a passkey when prompted. If an admin turns Remote Control off while you are connected, Claude Code disconnects it and does not reconnect on its own.

Another device. Three reasons mean the session changed somewhere else, and the docs say to run /remote-control only if you want it back: another connection took over the session, the session was ended or archived from another device or app, or the server no longer reports it.

An old version. "Remote Control got an unexpected server response" means your Claude Code version could not read the server's reply. Retrying fails the same way; the docs say to run claude update, then /remote-control.

Step 6: the drops that are not your Mac

If you have reached this point, the Mac was awake, the process was running, the network was fine and your login was valid. You are not imagining it. Three reports in Anthropic's own issue tracker describe this, and I read each one today:

I found no fix or official workaround posted in any of the three threads. What users there say they do:

If your case matches, add your Claude Code version and the pmset -g log lines showing the Mac was awake to #33041.

When keeping the Mac awake is the fix

Only when step 2 matched. If your drops line up with sleep and the lid is open, the free options in step 2 are enough and you do not need an app. If they line up with 'Clamshell Sleep', meaning you closed the lid with no external display, the choice is pmset disablesleep with its risks, or a lid-closed app.

Clamshell for Mac is a menu bar app for that last case. While armed it keeps an Apple Silicon MacBook awake and on the network with the lid closed, without sudo or an external display, and it pauses while an external display is connected. It does not detect Claude Code, does not reconnect a dropped session, and cannot fix a network, login or server-side disconnect. If the drops in your log are not sleep, it will not change them.

Clamshell is for the drops that match a lid close: it keeps the Mac awake with the lid shut while armed. Free for 7 days, then $9.99 once.

Download free trial

Apple Silicon, macOS 14+. Notarized by Apple. 3.6 MB. Or buy now, $9.99. Reading this on your phone? Send the Mac download link to yourself.

Frequently asked questions

Why does Claude Code Remote Control keep disconnecting?

There are several causes. The Mac went to sleep, the claude process stopped, the network changed or dropped, the claude.ai login could not be refreshed, the session was taken over or archived from another device, or a bug on the connection path. Users in the open GitHub issue 33041 report drops on Macs that never slept, so sleep is only one of them.

How do I tell if Mac sleep caused the disconnect?

Note the time of the drop, then run pmset -g log | grep -E "Entering Sleep|Wake from" | tail -40 in Terminal. If a Sleep entry sits at the drop time and a Wake entry sits where the session came back, sleep caused it. If the Mac was awake across the drop, look at the other causes.

Does caffeinate stop Remote Control from disconnecting?

Only when idle sleep was the cause. caffeinate holds off idle sleep with the lid open. It does not stop lid-close sleep, and it does nothing for network, login or server-side drops. Two of the GitHub reports describe disconnects with caffeinate running.

How do I reconnect Remote Control after it drops?

After sleep or a network drop, Anthropic's docs say Claude Code reconnects on its own. If it does not, run /remote-control in the session. In server mode, run claude remote-control again if the process exited. If you stopped Claude Code, resume with claude --continue or claude --resume.

Can I reconnect from my phone without touching the Mac?

Not when the connection has failed on the Mac side. Anthropic's documented fix is to run /remote-control on the machine, and commenters in issue 33041 ask for a way to recover from the phone. Users there work around it with a remote desktop tool or tmux over SSH.

Will keeping the Mac awake fix every Remote Control disconnect?

No. It fixes the drops that line up with a Sleep entry in the power log. A keep-awake command or app cannot fix a network change, an expired login or a server-side drop.

Related guides

Sources checked October 11, 2026: Anthropic's Claude Code docs for Remote Control and the error reference, GitHub issues #33041, #34500, #50767 and #81832 in anthropics/claude-code, the macOS pmset and caffeinate manual pages, and Apple's sleep settings guide. Issue states and counts are as of that date. The issue comments are user reports, not confirmed diagnoses. Remote Control changes often; check Anthropic's current docs before relying on a detail. Clamshell is an independent app, not affiliated with or endorsed by Anthropic. Claude and Claude Code are trademarks of Anthropic.