语言
October 10, 2026阅读约 6 分钟

Claude Code 远程控制无法使用?所有错误与修复方法(2026)

Claude Code Remote Control 通常因为以下三种原因之一而失败。你的登录方式不对,某个设置把 Claude 指向了 Anthropic 以外的地方,或者你 Mac 上的会话已经停止。

在下面找到你看到的提示。每一条都有基于 Anthropic 官方文档的简短修复方法。

错误或现象原因修复方法
"Remote Control requires a claude.ai subscription"没有使用 claude.ai 账号登录claude auth login
"Remote Control requires claude.ai subscription auth"设置了 API 密钥或令牌删除该变量
"Remote Control requires a full-scope login token"令牌来自 claude setup-tokenclaude auth login
"Remote Control isn't enabled for this account"旧的套餐信息被缓存了退出登录后重新登录
"Couldn't verify Remote Control eligibility"离线或被代理拦截重试,然后运行 claude doctor
"Remote Control is only available when using Claude via api.anthropic.com"Bedrock、Google Cloud、Foundry 或 ANTHROPIC_BASE_URL取消设置该变量
"Remote Control is disabled by your organization's policy"Team 或 Enterprise 的开关未开启检查 /status,询问 Owner
"could not reach the Remote Control server for about 30 minutes"长时间失去连接运行 /remote-control
应用里看不到会话从未启动过 Remote Control运行 /rc
会话离线了claude 进程已停止claude remote-control --continue
桌面应用的会话从未出现在手机上已知问题,issue #92306在终端中启动
分叉的会话不见了已知问题,issue #94396在该会话中运行 /remote-control
/remote-control 没有任何输出已在 issue #96591 中报告使用 claude remote-control
几小时没有消息后会话消失已在 issue #98879 中报告发送一条消息或运行 /remote-control
"Couldn't reconnect to your Remote Control session"应用退出、重新启动或更新重试,然后启动新会话

“Remote Control requires a claude.ai subscription”

当 Claude Code 没有使用 claude.ai 账号登录时,你会看到这个提示。运行 claude remote-control 时,提示内容为 "You must be logged in to use Remote Control."

Remote Control 适用于 Pro、Max、Team 和 Enterprise 套餐。API 密钥无法使用。请使用你的 claude.ai 账号登录:

claude auth login

“Remote Control requires claude.ai subscription auth”

你已经登录,但 API 密钥或令牌的优先级更高。提示会指出是哪一个,例如 "ANTHROPIC_API_KEY is set, so this session is using API-key auth"。

从你的 shell 配置文件以及 Claude 设置文件的 env 块中删除该变量。然后重新启动 Claude:

unset ANTHROPIC_API_KEY ANTHROPIC_AUTH_TOKEN claude --remote-control

如果提示中提到 apiKeyHelper,请删除该设置。

“Remote Control requires a full-scope login token”

你使用了 claude setup-token 或 CLAUDE_CODE_OAUTH_TOKEN 生成的长期令牌登录。这类令牌只能发送模型请求。请用常规方式登录:

claude auth login

“Remote Control isn't enabled for this account”

Claude Code 检查了你的账号,结果显示不可用。这通常发生在套餐变更之后,因为旧的账号信息还在缓存中。较旧的版本会显示 "Remote Control is not yet enabled for your account"。

退出登录,重新登录,并更新 Claude Code。claude doctor 会显示哪一项检查失败:

claude auth logout claude auth login claude doctor

“Couldn't verify Remote Control eligibility”

Claude Code 无法连接到检查账号的服务。你可能处于离线状态,或者代理拦截了请求。请在正常网络下重试,或运行 claude doctor 查看详细信息。

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

这种情况很常见。Remote Control 要求 Claude Code 直接与 Anthropic 的 API 通信。在 Amazon Bedrock、Google Cloud 和 Microsoft Foundry 上会失败。即使你使用 claude.ai 登录,只要 ANTHROPIC_BASE_URL 指向代理或 LLM 网关,也会失败。

提示会指出具体原因,例如 CLAUDE_CODE_USE_BEDROCK 或自定义的 ANTHROPIC_BASE_URL。请取消设置它,从设置的 env 块中删除,然后重启会话:

env | grep -i -e ANTHROPIC -e CLAUDE_CODE_USE unset ANTHROPIC_BASE_URL claude --remote-control

“Remote Control is disabled by your organization's policy”

Remote Control 在 Team 和 Enterprise 套餐中默认关闭。Owner 需要在 Claude Code 的管理设置中将其开启。如果你购买的是 Pro 或 Max,Claude Code 可能仍登录在旧的 Team 组织中。

运行 /status 检查你的套餐和组织。如果显示的不对,运行 claude auth logout,然后运行 claude auth login。如果提示中提到 disableRemoteControl,说明你的 IT 团队已在这台设备上将其关闭。

“could not reach the Remote Control server for about 30 minutes”

你的会话很长一段时间与 Anthropic 的服务器失去了联系。在会话中运行以下命令重新连接:

/remote-control

会话没有出现在 Claude 应用中

Remote Control 只在你请求时才会启动。在会话中运行 /rc,或使用 claude --remote-control 启动 Claude。在 Claude 应用中点按 Code 即可看到你的会话。两台设备需要使用同一个账号。

要让每个会话自动连接,运行 /config 并开启 Enable Remote Control for all sessions。在桌面应用中,进入 Settings > Claude Code > Connect new sessions to Remote Control。

会话离线了

Remote Control 运行在你 Mac 上的 claude 进程内。关闭终端或退出应用,会话就会离线。

如果你使用的是服务器模式,请在大约四小时内恢复:

claude remote-control --continue

对于使用 --remote-control 或 /rc 启动的会话,运行 claude --continue,然后运行 /rc。长时间任务请在 tmux 中启动,这样关闭窗口不会中断它们。

Mac 睡眠后会话停止了

Mac 睡眠时,工作会暂停。Mac 唤醒后,Claude Code 会自动重新连接。

如果希望任务运行期间 Mac 保持唤醒,请通过 caffeinate 启动 Claude:

caffeinate -i claude --remote-control

除非连接了外接显示器和电源,否则大多数 MacBook 在合盖时仍会睡眠。

会话没有显示在手机上,或者会话消失了

这些是在 GitHub 上报告的已知问题。截至 2026 年 10 月,大多数问题仍未解决。以下是每种情况的表现,以及你目前可以做的事情。

Claude 桌面应用中的会话从未出现

在 macOS 上,即使开启了自动连接,桌面应用中的交互式 Code 会话仍可能无法使用 Remote Control。同一应用中的定时任务仍会显示在手机上。该问题已在 issue #92306 中报告,目前仍未解决。

目前还没有官方修复方法。报告称单独安装的 CLI 不受影响。在终端中使用 claude --remote-control 启动会话,可能可以绕过这个问题。

分叉的会话从未出现

你从另一个会话分叉出来的会话,从未被标记为可用于 Remote Control。它会一直缺失在手机的 Code 标签页中。参见 issue #94396,仍未解决。

报告者提供的变通方法:在该会话中使用 /remote-control 手动开启。先发送一条消息。如果不发送,你会看到 "Remote Control requires an active session. Send a message first."

/remote-control 没有输出,会话也不出现

有些人运行 /remote-control 后既没有链接,也没有确认信息。再次运行会显示 "Remote Control disconnected."。该问题已在 issue #96591 中报告,并以未计划处理的方式关闭。

运行 claude doctor 检查登录和网络。然后尝试服务器模式 claude remote-control。它会打印会话 URL 和二维码,你可以直接打开该会话。

几小时没有消息后会话消失

有一位 Android 用户报告,会话在大约 8 小时没有消息后从 Code 列表中消失。当时电脑仍然处于唤醒状态。之后再次使用桌面应用,会话才恢复。参见 issue #98879,仍未解决。

目前没有修复方法。从你的 Mac 发送一条消息即可让它恢复,或使用 /remote-control 重新连接。

出现 "Couldn't reconnect to your Remote Control session"

当桌面应用退出、重新启动或自行更新时,其会话会停止,Remote Control 也不会自动恢复。再次开启时可能失败,并显示 "Couldn't reconnect to your Remote Control session. Retry, or start a fresh session without --resume." 参见 issue #98504,仍未解决。

按提示操作。先重试一次,然后启动新会话。已停止的会话必须先在你的 Mac 上运行一轮对话,之后才能重新开启 Remote Control。

该讨论串中社区提供的一种变通方法:在桌面应用之外,于 tmux 中运行 claude。这样应用重启就不会中断它。

当你需要的不只是 Claude 会话时

Remote Control 很适合 Claude Code 对话。有时你还需要 Mac 的其他功能。Macky 可以把你 Mac 自己的终端和屏幕带到你的 iPhone 上。

  • 支持 API 密钥、Bedrock 或代理。这是你自己的 shell,所以你的环境保持不变。
  • 专用的 Claude Code 和 Codex 模式,另有普通终端,用于 git、Docker 以及其他任何工作。
  • 包含 Esc、Tab 和 Ctrl 的按键栏。用 y 和 Enter 确认各个步骤。
  • 你的 SSH 密钥保存在 Mac 上。输入 ssh my-vps 即可连接。
  • 使用 Pro 时,可以合盖使用你的 MacBook,并在后台保持会话连接。

在你的 Mac 和 iPhone 上安装 Macky,两台设备都登录,然后连接。免费版每次会话限时 5 分钟。Pro 为一次性买断 $29。在 App Store 获取。

第一次使用 Remote Control?请阅读 Claude Code Remote Control 设置指南。想比较两者,请参阅 Macky 对比 Claude Code Remote Control。

常见问题

为什么 Claude Code Remote Control 无法工作?

通常是你的登录方式、API 密钥或 ANTHROPIC_BASE_URL 设置有问题,或者你 Mac 上的 claude 进程已停止。错误提示会告诉你是哪一种。

如何修复 "Remote Control is only available when using Claude via api.anthropic.com"?

取消设置 ANTHROPIC_BASE_URL,或提示中指出的 Bedrock、Google Cloud 或 Foundry 变量。然后在使用 claude.ai 登录的状态下重新启动 Claude Code。

Claude Code Remote Control 能用 API 密钥吗?

不能。它需要在 Pro、Max、Team 或 Enterprise 套餐上使用 claude.ai 登录。

为什么我的会话没有出现在 Claude 应用中?

除非你在 /config 中开启了自动连接,否则 Remote Control 只在你运行 /rc 或 claude --remote-control 时才会启动。两台设备必须使用同一个账号。

如果我的 Mac 睡眠了会怎样?

会话会暂停。Mac 唤醒后,Claude Code 会自动重新连接。

没有 Remote Control 我能用手机控制 Claude Code 吗?

可以。Macky 可以在你的 iPhone 上打开 Mac 自己的终端,因此 Claude Code 可以使用任何登录方式,包括 API 密钥。

为什么我的 Claude Code 会话没有出现在移动应用的 Code 标签页中?

首先确认已通过 /rc 或 claude --remote-control 开启 Remote Control。如果已经开启,你可能遇到了已知问题。从 Claude 桌面应用启动的会话和分叉的会话可能一直缺失。在终端中启动会话,或在发送消息后手动运行 /remote-control,可以解决大多数情况。

"Couldn't reconnect to your Remote Control session" 是什么意思?

当 Remote Control 无法连接到已停止的会话时会出现,通常发生在桌面应用退出、重新启动或更新之后。先重试一次。如果仍然失败,就启动新会话。已停止的会话必须先在你的 Mac 上运行一轮对话,之后才能重新开启 Remote Control。

试用 Macky

用你的 iPhone 连接 Mac 上的终端。