Agent HUD

WeChat group

WeChat group

Scan with WeChat to join the group.

Guides

Claude Code Remote Control or Codex remote control not working? What to check

Most failures of Claude Code's Remote Control and Codex's remote connections come from a short list of causes, and each has a fix. This page lists them from the vendors' own docs. Where the official feature cannot fit your setup, the last sections describe another way to reach the same sessions from a phone.

Updated 2026-11-21

Claude Code: Remote Control is not available

What you haveWhat to do
You sign in with an API keyRemote Control needs a Pro, Max, Ultra, Team or Enterprise plan. Run /login and sign in through claude.ai.
Claude Code runs through Amazon Bedrock, Google Cloud's Agent Platform or Microsoft FoundryRemote Control is not available in these setups.
ANTHROPIC_BASE_URL points at a gateway or proxyUnset the variable. Remote Control works only against api.anthropic.com.
CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC or CLAUDE_CODE_DISABLE_FEATURE_FLAGS is setUnset it in your shell and in the env block of settings.json.
A Team or Enterprise account says it is disabled by policyAn Owner turns on Remote Control in Claude Code admin settings, and with custom roles your role needs the remote control permission.
claude remote-control exits with Workspace not trustedRun it in a terminal and answer the trust question for that folder.

Remote Control in Claude Code's docs

Claude Code: Remote Control keeps disconnecting

  • The claude process stopped. Remote Control lives in the local process. Closing the terminal, or quitting the Desktop app or VS Code that runs the session, takes it offline. Over SSH, start claude inside tmux or screen.
  • The computer slept. It has to stay on. Claude Code reconnects on its own when the machine wakes.
  • The network changed. After a VPN or network change Claude Code retries for up to three minutes, then disconnects and names what refused it. Run /remote-control to reconnect.
  • A long outage in server mode. claude remote-control gives up after roughly 10 minutes without a network and exits. Run it again in the same folder to bring the sessions back.
  • Another device took the session. The message says another connection took over. Run /remote-control only if you want it back here.

Codex: the phone will not pair, or the host does not show

  • Set it up from the ChatGPT desktop app. Pairing starts in Settings → Connections → Control this Mac or PC. It cannot be set up from the Codex CLI or the IDE extension.
  • Same account and workspace on both. The phone and the host must be signed in to the same ChatGPT account and workspace, with any SSO, multi-factor or passkey step finished.
  • Allow connections is on, and the app is running. The host has to be awake, online and running the desktop app.
  • An old pairing. A connection not used since June 8, 2026 has to be paired again after updating both apps.
  • You signed out and back in. Signing out turns Remote Control off. Turn it on again; the pairings are kept. If Add then shows an error, restart the desktop app on the host.
  • A ChatGPT workspace. An admin may need to enable Remote Control access before any phone can connect.

Remote connections in OpenAI's docs

When the official feature does not fit

Some setups cannot be fixed from the lists above: Claude Code on an API key or behind a gateway, Codex used only from the CLI, or two agents you would rather not manage in two apps.

Agent HUD Remote takes a different path. It does not use either vendor's remote feature. Agent HUD runs on your Mac beside the agents, and your iPhone and Apple Watch reach it through your own iCloud.

Both need the computer awake and online, since the session runs there.
Official remote featureAgent HUD Remote
Goes throughThe vendor's account and serversAgent HUD on your Mac and your own iCloud
Claude CodeRemote Control, with an eligible planThrough Agent HUD's plugin for Claude Code
CodexThe ChatGPT desktop app as hostCodex sessions on the Mac, the CLI included
Several agentsOne app per vendorOne app, with quota and tokens
Apple Watch—Requests, replies by voice
NeedsThe vendor's app on the phoneThe Agent HUD release on the Mac, an iPhone, a subscription

Control Claude Code and Codex from iPhone and Apple Watch: Agent HUD Remote

What Agent HUD Remote does not replace

The official features show more of the session: Remote Control carries attachments and the diff of your changes, and Codex's remote connection shows diffs, terminal output and screenshots. Agent HUD Remote shows the conversation, takes your messages and answers requests. If the official feature works for you and you use one agent, keep it.

Questions

Why does Claude Code say Remote Control is not available?

The usual causes are signing in with an API key instead of a claude.ai plan, running through Bedrock, Google Cloud's Agent Platform or Microsoft Foundry, pointing ANTHROPIC_BASE_URL at a gateway, or an organization that has not enabled it.

Why does Claude Code Remote Control keep disconnecting?

Remote Control runs inside the local claude process, so it drops when that process stops, the computer sleeps or the network changes. Keep the process running, inside tmux over SSH, and run /remote-control to reconnect.

Why can't I pair my phone with Codex?

Pairing starts in the ChatGPT desktop app under Settings → Connections, not in the Codex CLI. The phone and the host need the same account and workspace, and a pairing unused since June 8, 2026 has to be made again.

Is there another way to reach Claude Code or Codex from my phone?

Yes. Agent HUD Remote reaches the sessions on your Mac through Agent HUD and your own iCloud, without either vendor's remote feature. You read conversations, send messages and answer requests on iPhone and Apple Watch.

Can I control Codex CLI sessions from my phone?

Codex's own remote connection is set up from the desktop app. Agent HUD Remote works with Codex sessions on the Mac, the CLI included; approvals from the Codex CLI need Agent HUD's hook trusted in Codex.