# 如何在手机上使用 Claude Code：查看电脑上运行的会话

> 通过 iPhone 或 Android 手机查看电脑上运行的 Claude Code 或 Codex 会话。你可以阅读每项更改并发送下一条指令。

HB Code 的 iPhone 和 Android 应用可打开在你的 Mac 或 Windows 电脑上运行的 Claude Code 或 Codex 会话。项目文件和代理始终留在电脑上。

HB Code 是 Mac 和 Windows 桌面应用，使用你自己的 Claude 和 ChatGPT 套餐，在你的电脑上运行 Claude Code 和 Codex。

## 步骤

1. 在桌面端打开“设置 › 连接”。在“手机连接”下启用“允许远程访问”。记下页面显示的服务器区域。
2. 通过 App Store 或 Google Play 在手机上安装 HB Code。
3. 在手机上选择相同区域，并登录同一个 HB Code 账户。
4. 在设备列表中选择你的电脑，然后选择项目和会话。
5. 打开“工作区”标签页，可在代理工作时阅读对话。打开“更改”标签页，可查看修改的文件和每份差异。
6. 输入或口述下一条指令，然后发送。在运行期间发送的消息会加入当前执行轮次。

## 说明

- 手机连接期间，电脑必须保持唤醒，因为代理在电脑上运行。
- 你需要运行 iOS 18 或更高版本的 iPhone，或运行 Android 8.0 或更高版本的手机。
- 账户连接第一部手机时开始 10 天连接试用期。之后，每部手机都需要通过 App Store 或 Google Play 订阅 HB Code Pro。
- HB Code 账户仅用于远程访问。在桌面上工作只需登录代理账户。

## 查看手册详情

- [Remote access and the device list](https://www.hbcode.ai/docs/setup.md#remote-access): Setup: sign-ins, regions, and remote access
- [iOS: chat hosts, the collection view, and the outbox](https://www.hbcode.ai/docs/ios/chat.md)
- [Android: projections, batch reconciliation, and custody](https://www.hbcode.ai/docs/android/chat.md)
- [The connected preview and HB Code Pro](https://www.hbcode.ai/docs/setup.md#preview): Setup: sign-ins, regions, and remote access

## 指南

- [如何查看使用限额并使用多个账户](https://www.hbcode.ai/zh-Hans/claude-code-usage-limits.md)
- [如何查看 Claude Code 或 Codex 的工作结果](https://www.hbcode.ai/zh-Hans/claude-code-ui.md)
- [如何运行多个 Claude Code 和 Codex 会话](https://www.hbcode.ai/zh-Hans/claude-code-sessions.md)
- [如何查看 Claude Code 子代理的工作内容](https://www.hbcode.ai/zh-Hans/claude-code-subagents.md)
- [如何让 Claude Code 和 Codex 尝试同一项任务](https://www.hbcode.ai/zh-Hans/claude-code-vs-codex.md)
- [如何在 Mac 和 Windows 桌面应用中运行 Codex](https://www.hbcode.ai/zh-Hans/codex-desktop-app.md)
- [下载 HB Code](https://www.hbcode.ai/zh-Hans/downloads)
