guideClaude Code from your phone用手机接着用 Claude Code
Use Claude Code on your Mac from your phone用手机接着用 Mac 上的 Claude Code
Install Afaron on the Mac, sign in, and scan its code with the phone. From then on Claude Code keeps working on your Mac, with your files and logins, and its questions come to your phone as buttons in a chat. About ten minutes. 在 Mac 上装好 Afaron,登录,用手机扫一下它的二维码。之后 Claude Code 照样在你的 Mac 上干活,用你的文件和登录;它要问你的事,会以按钮的形式出现在手机上的聊天里。大约十分钟。
What you need需要准备什么
- A Mac with Apple silicon and macOS 14 or later, awake and online. On a laptop, keep it on power and turn on staying awake in System Settings → Battery → Options; the display can be off. 一台 Apple 芯片、macOS 14 或更新的 Mac,醒着、连着网。笔记本请接上电源,并在系统设置 → 电池 → 选项里打开保持唤醒;屏幕可以关。
- Claude Code with a Claude Pro, Max or Team plan, or an Anthropic API key. If it is not on the Mac yet, Afaron installs it and starts its own sign-in. Claude Code,配 Claude Pro、Max 或 Team 订阅,或 Anthropic API key。Mac 上还没有的话,Afaron 会帮你装好,并启动它自己的登录。
- A phone or tablet with a modern browser: iPhone, iPad or Android. Nothing to install on it. 一部手机或平板,有现代浏览器就行:iPhone、iPad 或安卓。上面什么都不用装。
- An Afaron account, made when you first sign in. Afaron is free during the beta. 一个 Afaron 账号,第一次登录时自动创建。内测期间免费。
Five steps五步
- Install. Download Afaron, open the disk image and drag Afaron into Applications. Open it; because beta builds are not yet notarized, macOS asks once, and the guide shows where to click Open Anyway. 安装。下载 Afaron,打开安装包,把 Afaron 拖进“应用程序”,然后打开它。测试版还没有经过苹果公证,macOS 会问一次;使用说明里有在哪里点仍要打开。
-
Sign in. The setup window opens. Click Sign in in your browser, sign in on afaron.com with Google, your email or a passkey, type the four-character code the window shows, and choose Connect this Mac. The Mac now has an address of its own, so the phone reaches it on any network.
登录。设置窗口会打开。点在浏览器里登录,在 afaron.com 用 Google、邮箱或 Passkey 登录,输入窗口上显示的四位确认码,再点连接这台 Mac。这台 Mac 就有了自己的地址,手机在任何网络下都能连上。
While you sign in, the window shows the code to type on the sign-in page.你登录时,窗口上显示要在登录页输入的确认码。 -
Claude Code. The window looks for Claude Code and says what it finds. Install runs Anthropic’s own installer; Sign in starts Claude Code’s own sign-in in your Mac’s browser. Afaron never sees that password or token.
Claude Code。窗口会在 Mac 上找 Claude Code,并告诉你找到了什么。安装会运行 Anthropic 官方的安装程序;登录会在 Mac 的浏览器里启动 Claude Code 自己的登录。Afaron 从不接触那个密码或令牌。
The agents step: Claude Code found; Codex is optional.Agent 这一步:找到了 Claude Code;Codex 可选。 -
Pair the phone. Scan the code in the window with the phone’s camera and open the link in its browser. On iPhone and iPad, add it to the Home Screen and open it from there to get notifications. More devices are added later from a device that is already connected.
配对手机。用手机相机扫窗口里的二维码,在浏览器里打开链接。在 iPhone 和 iPad 上,添加到主屏幕、从主屏幕打开,才能收到通知。以后再加设备,由一台已经连上的设备来添加。
On the Mac: the code to scan with the phone’s camera.Mac 上:用手机相机扫的二维码。
On the phone: connected to the Mac.手机上:已经连上 Mac。 -
Answer Claude from the phone. Open a session, or start one with + in a folder of your choice. When Claude asks to run a command or edit a file, the question comes to the phone as a card with Claude’s own choices; tap one, or type an answer. A notification tells you when Claude needs you or has finished.
在手机上回答 Claude。打开一个会话,或者点 + 在你选的文件夹里新开一个。Claude 要运行命令或改文件时,问题会以卡片的形式出现在手机上,上面是 Claude 自己的选项;点一个,或者直接打字回答。Claude 需要你或者干完活时,会发通知给你。
Claude asks before running the tests.Claude 运行测试前先问你。
Answered on the phone; Claude carries on and reports.在手机上答完,Claude 接着干活并汇报。
When the phone loses signal手机断网时
Nothing stops. Claude Code runs on the Mac, in a terminal session of its own, so closing the app, locking the phone or a dead zone on the train changes nothing there. Open Afaron again and each session is where it is now. If the Mac itself sleeps, the phone says it cannot reach it; when the Mac wakes, the sessions are where you left them. 什么都不会停。Claude Code 在 Mac 上、在它自己的终端会话里运行,所以关掉应用、锁屏,或者地铁里没信号,都不影响那边。再打开 Afaron,每个会话就是它现在的样子。如果是 Mac 自己睡着了,手机会提示连不上;Mac 醒来后,会话都在原处。
Only Claude Code? Remote Control may be enough只用 Claude Code?Remote Control 可能就够了
Anthropic’s own Remote Control continues a Claude Code session in the Claude app or on claude.ai: run /remote-control in the session. It needs a Claude plan (not an API key), and its traffic and transcript go through Anthropic. Afaron is for when you also use Codex or another model, want any browser on any device, end-to-end encryption between your devices and the Mac, or the Mac’s own screen when a task needs it. The comparison has the details and sources.
Anthropic 自己的 Remote Control 能在 Claude App 或 claude.ai 上接着用 Claude Code 会话:在会话里运行 /remote-control 就行。它需要 Claude 订阅(API key 不行),流量和会话记录都经过 Anthropic。如果你还用 Codex 或别的模型、想在任何设备的任何浏览器上用、要设备和 Mac 之间端到端加密,或者任务需要时要看 Mac 自己的屏幕,那就用 Afaron。这篇对比里有详细说明和来源。
Next接下来
- The full guide: other models, the screen, voice, updating and troubleshooting. 完整使用说明:别的模型、屏幕、语音、更新和排错。
- Codex from an iPad: the same, for Codex. 在 iPad 上审批 Codex:同样的事,换成 Codex。
- Download Afaron for your Mac. 给你的 Mac 下载 Afaron。