Claude Code Remote Control Not Working or Keeps Disconnecting

Claude Code Remote Control Not Working or Keeps Disconnecting

If Claude Code Remote Control is not working, the cause is almost always one of three things: something on your computer blocks it before it starts, your sign-in isn’t a claude.ai account, or the link between your phone and your computer broke. Run claude doctor first. It has a Remote Control section that names the exact check that failed.

If claude remote-control stops right away with an “Error:” line, read the variable it names and unset it. The usual ones are ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL, CLAUDE_CODE_OAUTH_TOKEN, CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC and CLAUDE_CODE_DISABLE_FEATURE_FLAGS. Then sign in with claude auth login and pick the claude.ai option.

If it worked and then shows “Remote Control disconnected” or “Can’t reach”, look at the computer, not the phone. The computer has to be awake and online, and the claude process has to keep running. Once that’s true, run /remote-control in the session to reconnect.

We triggered five of these errors for real in a throwaway demo folder, using fake values only, and show what Claude Code printed each time. The rest come straight from Anthropic’s official troubleshooting docs, and we say so each time.

Browse all our Claude Code tutorials for more fixes and how-tos.

Tested with Claude Code v2.1.332 on macOS on December 6, 2026. We never started a live Remote Control session or paired a device; every error below came from a demo folder with fake variables, so no real account or setup changed.

Disconnects, sleep and network drops can’t be reproduced safely, so those fixes follow Anthropic’s official Remote Control documentation. We tested on macOS; the Windows and Linux steps follow Anthropic’s official instructions.

Quick Summary: Why Claude Code Remote Control Fails

Find the message you see in the first column. The first six rows are errors we triggered ourselves; the rest come from the official docs.

What you seeCauseFix
requires feature-flag evaluationCLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC or CLAUDE_CODE_DISABLE_FEATURE_FLAGS is setUnset it in your shell or settings env block
only available when using Claude via api.anthropic.comANTHROPIC_BASE_URL, Bedrock, Google Cloud Agent Platform or FoundryUnset the named variable
requires claude.ai subscription authANTHROPIC_API_KEY, ANTHROPIC_AUTH_TOKEN or apiKeyHelperRemove it, then claude auth login
requires a full-scope login tokenCLAUDE_CODE_OAUTH_TOKEN or claude setup-tokenclaude auth login
Same error, but the variable isn’t in your shellIt’s in a settings.json env blockRemove it from that file
disabled by your organization's policySetting, old Team login, or admin toggleCheck the causes in order (below)
Remote Control disconnected or Can't reachComputer asleep, offline, or claude stoppedWake it, then /remote-control
Couldn't verify Remote Control eligibilityOffline, or a proxy blocks the checkRestore network, run claude doctor
isn't enabled for this accountStale cached plan infoclaude auth logout, then claude auth login
got an unexpected server responseOld Claude Code versionclaude update, then /remote-control

How Remote Control Works (and Where It Breaks)

Remote Control lets you drive a Claude Code session on your computer from claude.ai/code or the Claude mobile app. If you’ve never set it up, our Remote Control guide walks through the first run.

The key thing to understand is where the work happens. Your phone is only a window. Claude keeps running on your computer, and your computer talks to Anthropic’s servers over outbound HTTPS only, so nothing ever connects into your machine.

Diagram of how a Claude Code Remote Control session connects a phone, the Anthropic API and your computer, with computer, network and account failure points
Three links have to hold: your computer, the network, and your account.

That gives you three places where things go wrong. The computer side breaks when it sleeps or you close the terminal. The network side breaks with VPN changes, proxies and firewalls, and the account side breaks when Claude Code isn’t using a claude.ai sign-in.

Your phone is a window into your computer. If the computer stops, the window goes dark.

Step 1: Check Your Version and Run claude doctor

Start with the basics. Remote Control needs a Pro, Max, Ultra, Team or Enterprise plan and a claude.ai sign-in; API keys aren’t supported. On Team and Enterprise, an Owner also has to turn it on first.

Claude Code Remote Control requirements in the official docs: subscription plans, custom roles, authentication and API endpoint
The official requirements: plan, sign-in, and a direct connection to the Anthropic API.

Next, check your version with claude --version. Several Remote Control errors only exist on older builds, and the docs fix a few of them with a plain update. Run claude update if you’re behind.

Terminal showing claude --version output 2.1.332 and the claude remote-control --help options including --continue
Our test machine ran v2.1.332. The help screen also shows --continue for bringing a stopped session back.

Then run claude doctor in a normal terminal. It checks API connectivity and has its own Remote Control section. According to Anthropic’s Remote Control docs, environment-variable conflicts, unreachable checks and your organization’s setting each produce their own message there.

claude doctor output with a Remote Control section saying feature-flag evaluation is disabled by CLAUDE_CODE_DISABLE_FEATURE_FLAGS
claude doctor named the exact variable that was blocking Remote Control in our demo folder.

Step 2: Fix “Error:” Messages That Appear Right Away

If claude remote-control exits at once, the good news is that it tells you exactly why. We set four different variables to fake values, one at a time, and ran the command in a demo folder.

Four real Claude Code Remote Control errors caused by CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, ANTHROPIC_BASE_URL, CLAUDE_CODE_USE_BEDROCK and CLAUDE_CODE_OAUTH_TOKEN
Real output: each error names the variable that blocked Remote Control.

“Remote Control requires feature-flag evaluation”

Claude Code checks a feature flag to see if Remote Control is on for your account. CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC, CLAUDE_CODE_DISABLE_FEATURE_FLAGS and DISABLE_GROWTHBOOK all turn that check off, so Remote Control can’t start. Unset the variable the message names.

People often set these to cut background traffic. Our telemetry guide explains what each one does. Per the docs, DISABLE_TELEMETRY and DO_NOT_TRACK on their own don’t block Remote Control on v2.1.283 or later, unless your organization requires Trusted Devices.

“Remote Control is only available when using Claude via api.anthropic.com”

This shows up when ANTHROPIC_BASE_URL points at an LLM gateway or proxy, or when you use Amazon Bedrock, Google Cloud’s Agent Platform or Microsoft Foundry. In our test, the message named ANTHROPIC_BASE_URL in one run and CLAUDE_CODE_USE_BEDROCK in the other.

If you have an eligible claude.ai login, unset the named variable and restart the session. There’s no workaround for gateways; Remote Control has to talk to Anthropic’s API directly.

“Remote Control requires claude.ai subscription auth”

You’re signed in, but an API key wins over your login. The message names the credential, such as ANTHROPIC_API_KEY is set. We saw exactly that when we set a fake key.

Remove ANTHROPIC_API_KEY or ANTHROPIC_AUTH_TOKEN wherever it’s set, or remove an apiKeyHelper setting. Then run claude auth login and choose the claude.ai option. If sign-in itself fails, see our fix for login errors.

“Remote Control requires a full-scope login token”

Long-lived tokens from claude setup-token or CLAUDE_CODE_OAUTH_TOKEN are limited to inference, so they can’t open a Remote Control session. Our test printed that exact reason. Unset the token and run claude auth login for a full session.

Step 3: Find a Variable Hidden in a Settings File

Here’s the trap that wastes the most time. You check your shell, the variable isn’t there, and the error still names it. That usually means it lives in the env block of a settings.json file.

To test this, we put CLAUDE_CODE_DISABLE_FEATURE_FLAGS in the demo folder’s .claude/settings.local.json. The shell was clean, yet claude remote-control failed with the same feature-flag error.

A settings.local.json env block setting CLAUDE_CODE_DISABLE_FEATURE_FLAGS, the Remote Control error it causes, and grep finding the file and line
The variable came from a project settings file, not the shell. A quick grep found the file and line.

Search every place settings can come from:

  • Your shell: env | grep -E '^(ANTHROPIC_|CLAUDE_CODE_|DISABLE_|DO_NOT_TRACK)'
  • Your user settings: ~/.claude/settings.json
  • The project: .claude/settings.json and .claude/settings.local.json
  • Your shell startup files, such as ~/.zshrc or ~/.bashrc

Note that other DISABLE_ variables can show up too. In our run, DISABLE_AUTOUPDATER and DISABLE_MICROCOMPACT were set, and neither one affects Remote Control. Once we moved the settings file out of the way, claude doctor showed Remote Control as available again.

claude doctor Remote Control section after the fix saying control this session from claude.ai/code or the Claude mobile app
After removing the variable, the Remote Control check passed.

Step 4: Fix “Remote Control Keeps Disconnecting”

A disconnect is different from a startup error. The docs say “Remote Control disconnected” or “Can’t reach” on your phone only means it lost contact with your computer. It doesn’t tell you whether Claude is still working there.

Official Claude Code docs troubleshooting entry for Remote Control disconnected or Can't reach messages
The official advice: check what Claude Code is doing on your computer, then follow the matching step.

Go to the computer and check which case you’re in:

  1. The terminal shows “Remote Control disconnected” with a reason. Follow that reason. If it says another connection took over or the session was archived elsewhere, run /remote-control only if you want it back.
  2. Claude Code is running and shows no failure. Do nothing. An interactive session reconnects on its own once the machine is awake and online.
  3. Claude Code isn’t running. Start it again. For server mode, run claude remote-control --continue in the same folder within about four hours.

Your laptop went to sleep

Sleep is the most common cause. Per the docs, Claude Code reconnects automatically when the machine comes back online. If you need it reachable for hours, change your power settings so the computer doesn’t sleep while plugged in.

You closed the terminal or the SSH session

Remote Control runs as a local process. Closing the terminal, quitting the Desktop app or VS Code, or stopping claude takes the session offline. On a remote server, start Claude Code inside tmux or screen so it survives when SSH drops.

Official Claude Code docs Remote Control limitations: local process must keep running, crashed sessions, HTTP 403 refusals and extended network outage
The official limitations explain most disconnects: process stopped, VPN changes and long outages.

VPN, proxy or Wi-Fi changes

After a VPN or network change, something between you and Anthropic may answer with HTTP 403. The docs say an interactive session retries for up to three minutes, then disconnects and names what refused. Remote Control needs outbound access to the Anthropic API on port 443.

Long outages hit server mode harder. A claude remote-control server gives up after roughly 10 minutes offline and exits. If you see 403 pages from your network, our Cloudflare 403 fix covers VPN and proxy checks, and the connection errors guide covers timeouts.

“Could not reach the Remote Control server”

If an interactive session drops with this message after about 30 minutes of failed heartbeats, run /remote-control to reconnect. The same command fixes “Previous session is unavailable”, which starts a fresh Remote Control session under your current login.

Step 5: Organization Policy and Account Errors

“Remote Control is disabled by your organization’s policy” has several causes. The docs list them in a set order, so check them from the top.

Official Claude Code docs listing causes of Remote Control is disabled by your organization's policy in order
The official checklist for the organization policy error.
  • The message mentions disableRemoteControl: remove that key from your settings files, or ask your admin if it’s in managed settings.
  • You’re on Pro, Max or Ultra: Claude Code may still be signed in under an old Team or Enterprise organization. Check with /status, then run claude auth logout and claude auth login.
  • Your Enterprise org uses custom roles: you need both the cloud sessions and the Claude Code remote control permissions.
  • Otherwise, an Owner hasn’t enabled it. It’s off by default on Team and Enterprise, and an Owner turns it on in the Claude Code admin settings.

Two other account errors have short fixes. “Remote Control isn’t enabled for this account” usually means cached plan info is stale after a plan change, so log out and back in. “Unable to determine your organization” is fixed with claude auth login.

QR Code Not Working or Session Not Showing on Your Phone

The QR code opens the session in the Claude app. With claude remote-control, press the spacebar to show or hide it. In an interactive session, run /remote-control again to open the status panel with the URL and QR code.

If scanning doesn’t work, skip it. Open the URL Claude Code prints in any browser, or open the Claude app, tap Code, and find the session by name. Online Remote Control sessions show a computer icon with a green dot.

Make sure the phone uses the same account and organization as the terminal. If you don’t have the app yet, run /mobile in Claude Code to get a QR code for the app store.

Still Stuck? Use This Decision Path

If you’re not sure which section fits, walk through this from the top.

Decision diagram for Claude Code Remote Control not working: startup error, organization policy, disconnected, phone can't find session, then claude doctor
Start at the top and stop at the first answer that fits.

If nothing fits, capture a debug log. The docs suggest starting a session with claude --remote-control --debug-file claude-debug.log and searching the log for code-session. Our guide to Claude Code logs shows how to read these files.

Try It Yourself

You can see these errors safely without touching a real session. Make an empty folder, then run the command with a fake variable set only for that one line:

mkdir -p ~/rc-test && cd ~/rc-test
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 claude remote-control
ANTHROPIC_BASE_URL=http://localhost:4000 claude remote-control
claude doctor

Each command prints an error and exits, and nothing connects. Because the variable is set only for that line, your shell stays clean afterward.

Common Mistakes

  • Checking only your shell. The variable often lives in a settings.json env block.
  • Restarting the phone app when the computer is asleep. The phone is only a window.
  • Using an API key and expecting Remote Control to work. It needs a claude.ai sign-in.
  • Closing the terminal after starting a session. The session goes offline with it.
  • Running server mode on an unstable network. It exits after about 10 minutes offline.

Pro Tips

  • Run claude doctor first every time. It names the failing check faster than guessing.
  • Use tmux or screen on remote machines so Remote Control survives SSH drops.
  • Give sessions a clear name with --name so you can find them in the app list.
  • After an update, restart a running claude remote-control server so it moves to the new version.

Remote Control Fix Cheat Sheet

Claude Code Remote Control fix cheat sheet with check commands, sign-in fixes and variables that block Remote Control
Save this card for the next time Remote Control won’t connect.

Frequently Asked Questions

Why is Claude Code Remote Control not working with my API key?

Remote Control only works with a claude.ai sign-in on a Pro, Max, Ultra, Team or Enterprise plan. API keys aren’t supported. Unset ANTHROPIC_API_KEY and run claude auth login.

Why does Remote Control keep disconnecting?

Usually your computer slept, lost network, or the claude process stopped. An interactive session reconnects on its own once the machine is back online. If the terminal shows a failure, run /remote-control.

Does closing my laptop stop Remote Control?

Yes, while it’s asleep. Claude runs on your computer, so the session pauses until the machine wakes up and gets back online.

Can I use Remote Control through a proxy or LLM gateway?

No. If ANTHROPIC_BASE_URL points anywhere other than api.anthropic.com, Remote Control won’t start. A corporate firewall is fine as long as it allows outbound HTTPS to the Anthropic API on port 443.

Why can’t my team use Remote Control?

It’s off by default on Team and Enterprise plans. An Owner has to turn on the Remote Control toggle in the Claude Code admin settings. Organizations with Zero Data Retention or the HIPAA configuration can’t turn it on.

For more error messages, see our list of common Claude Code errors and our overview of Claude AI.

Conclusion

When Claude Code Remote Control is not working, start with claude doctor and read the exact message, because Claude Code almost always names the cause. Startup errors come from a variable or credential, such as an API key, a custom base URL, a long-lived token or a traffic-disabling setting, and the fix is to unset it in your shell or settings file and sign in with claude auth login. Disconnects come from the computer side, so keep the machine awake and online, keep claude running, and use /remote-control to reconnect, while organization policy errors need the checklist in Anthropic’s troubleshooting docs or a word with your Owner.

Newsletter

New AI tools in your inbox

The best new tools and the AI news that matters, in one short email. Unsubscribe any time.

Free · No spam · Unsubscribe any time

✓ Looks like you’re subscribed

Loading Google’s sign-up form…

Looks like you’re already subscribed

Thanks for reading! New AI tools and the AI news that matters will land in your inbox.

Not subscribed yet? Refresh the page to load the sign-up form.

The sign-up form couldn’t load. If you use an ad or content blocker, allow news.google.com and reload the page.

Free instant check before you pay. Takes a few seconds.

Scroll to Top