guideCodex from an iPad在 iPad 上用 Codex
Approve Codex on your Mac from an iPad在 iPad 上审批 Mac 上的 Codex
Install Afaron on the Mac, sign Codex in with your ChatGPT plan, and scan the Mac’s code with the iPad. Codex keeps working on your Mac, with your files and tools; when it wants to run a command, you approve it on the iPad, in Safari or from the Home Screen. 在 Mac 上装好 Afaron,用你的 ChatGPT 订阅登录 Codex,再用 iPad 扫一下 Mac 的码。Codex 照样在你的 Mac 上干活,用你的文件和工具;它要运行命令时,你在 iPad 上批准,用 Safari 或从主屏幕打开都行。
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,醒着、连着网。笔记本请接上电源,并在系统设置 → 电池 → 选项里打开保持唤醒;屏幕可以关。
- Codex with a ChatGPT Plus or Pro plan, or an OpenAI API key. If it is not on the Mac yet, Afaron installs it and starts its own sign-in. Codex,配 ChatGPT Plus 或 Pro 订阅,或 OpenAI API key。Mac 上还没有的话,Afaron 会帮你装好,并启动它自己的登录。
- An iPad with Safari. Nothing to install on it. 一台有 Safari 的 iPad,上面什么都不用装。
- An Afaron account, made when you first sign in. Afaron is free during the beta. 一个 Afaron 账号,第一次登录时自动创建。内测期间免费。
Five steps五步
- Install and sign in. Download Afaron, drag it into Applications and open it. In the setup window, click Sign in in your browser, sign in on afaron.com, type the four-character code the window shows and choose Connect this Mac. The Claude Code guide shows these steps with pictures. 安装并登录。下载 Afaron,拖进“应用程序”并打开。在设置窗口里点在浏览器里登录,在 afaron.com 登录,输入窗口上显示的四位确认码,再点连接这台 Mac。Claude Code 那篇指南里有这几步的截图。
-
Codex. In the Agents step, choose Also install Codex: it runs OpenAI’s own installer. Sign in then starts Codex’s own sign-in in your Mac’s browser, with your ChatGPT account. Afaron never sees that password or token.
Codex。在 Agent 这一步点也安装 Codex:它运行 OpenAI 官方的安装程序。然后点登录,在 Mac 的浏览器里启动 Codex 自己的登录,用你的 ChatGPT 账号。Afaron 从不接触那个密码或令牌。
The agents step: Codex is one click away.Agent 这一步:Codex 点一下就装。 -
Pair the iPad and put it on the Home Screen. Scan the code in the window with the iPad’s camera and open the link in Safari. Then tap Share → Add to Home Screen and open Afaron from there: the Home Screen app pairs once for itself (scan the Mac’s code in it) and can show notifications; allow them.
配对 iPad,并添加到主屏幕。用 iPad 的相机扫窗口里的二维码,在 Safari 里打开链接。然后点分享 → 添加到主屏幕,从主屏幕打开 Afaron:主屏幕上的这个应用要自己配对一次(在里面扫一下 Mac 的码),之后才能发通知;允许通知。
On the Mac: the code to scan with the iPad’s camera.Mac 上:用 iPad 相机扫的二维码。 - Start Codex. Tap +, choose Codex and a folder on the Mac, and say what to do. The session runs on the Mac, in its own terminal; the iPad shows it as a chat, and Term shows the real terminal. 开一个 Codex 会话。点 +,选 Codex 和 Mac 上的一个文件夹,说要它做什么。会话在 Mac 上、在它自己的终端里运行;iPad 上看到的是聊天,终端里是真正的终端。
-
Approve from the iPad. When Codex asks to run a command, the question comes to the iPad as a card with Codex’s own choices: run it, run it and stop asking for this command, or say what to do instead. Tap one, or type an answer. Questions Codex queues while it works can be answered one by one, and a notification tells you when it needs you or has finished.
在 iPad 上批准。Codex 要运行命令时,问题会以卡片的形式出现在 iPad 上,上面是 Codex 自己的选项:运行、运行且这条命令以后不再问,或者告诉它换个做法。点一个,或者直接打字回答。Codex 一边干活一边排队的提问可以逐个回答;它需要你或者干完活时,会发通知给你。
Codex asks before installing a library: the card shows the command and its reason.Codex 安装库之前先问你:卡片上写着命令和原因。
Answered on the iPad; Codex carries on with the next step.在 iPad 上答完,Codex 接着做下一步。
When the iPad is closed合上 iPad 时
Nothing stops. Codex runs on the Mac, so closing Safari, locking the iPad or leaving Wi-Fi changes nothing there. Open Afaron again and the session is where it is now. If the Mac itself sleeps, the iPad says it cannot reach it; when the Mac wakes, the sessions are where you left them. 什么都不会停。Codex 在 Mac 上运行,所以关掉 Safari、锁上 iPad 或者离开 Wi-Fi,都不影响那边。再打开 Afaron,会话就是它现在的样子。如果是 Mac 自己睡着了,iPad 会提示连不上;Mac 醒来后,会话都在原处。
Only Codex? The ChatGPT app may be enough只用 Codex?ChatGPT App 可能就够了
OpenAI’s own route: with the ChatGPT desktop app on the Mac, turn on control of this computer in its settings and scan its code with the ChatGPT app on the iPad; then you can answer Codex and approve its commands there. It needs a ChatGPT plan with Codex, and the updates travel through OpenAI’s relay. Afaron is for when you also use Claude Code or another model, want any browser rather than an app, 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. OpenAI 自己的办法:在 Mac 上装 ChatGPT 桌面 App,在它的设置里打开“控制这台电脑”,用 iPad 上的 ChatGPT App 扫它的码;之后就能在那里回答 Codex、批准它的命令。它需要含 Codex 的 ChatGPT 订阅,更新经过 OpenAI 的中继。如果你还用 Claude Code 或别的模型、想用任何浏览器而不是某个 App、要设备和 Mac 之间端到端加密,或者任务需要时要看 Mac 自己的屏幕,那就用 Afaron。这篇对比里有详细说明和来源。
Next接下来
- The full guide: other models, the screen, voice, updating and troubleshooting. 完整使用说明:别的模型、屏幕、语音、更新和排错。
- Claude Code from your phone: the same, for Claude Code. 用手机接着用 Claude Code:同样的事,换成 Claude Code。
- Download Afaron for your Mac. 给你的 Mac 下载 Afaron。