文档Docs
离开Agent J 主机前,先把这些事一次做好Before you leave the Agent J host
装好以后,趁你还在Agent J 主机前,让 Agent 把以后用手机远程工作要你本人帮忙的事一次列全、做完、验证。After installing, while you are still at the Agent J host, let your Agent list, finish and verify everything remote work will need from you.
Agent J 装好、遥控器浏览器和手机都配好以后,先别急着离开Agent J 主机。让你的 Agent 把以后用手机工作需要你本人协助的事一次检查好。你只需处理登录、系统提示和接电源这些必须本人做的事,其余交给它。
第一次安装时,Agent 会在新手引导结束后主动提议一次;已经在用的Agent J 主机不会自动弹出,需要时直接对 Agent 说就行。
把这句话发给你的 Agent:
我现在在Agent J 主机前。请把以后远程工作需要我本人协助的事情一次列全,先检查已经配置好的。我不用的可以跳过,其余按顺序带我做完并验证。密码和密钥只用手机专用卡,不进聊天。最后告诉我哪些事可以离开Agent J 主机继续做,还有哪些需要回来。
配对或解绑后,已打开页面的遥控器数量、配对建议和清单里的配对状态会自动更新,无需刷新;断线重连后也会补齐。清单已收起时不会因此重新弹出。
清单页
打开「设置」→「Agent 的功能」→「首次准备清单」。这是固定入口,不必寻找聊天页顶部的横幅。主机已有清单、主机与这台设备都没收起时,聊天上方才显示「首次准备 3/12 · 继续」。横幅右边的 ✕(或清单页上的「✕ 收起清单」)立即收起;继续准备、复查或重启都不会让它自动回来。要看清单时仍从上述设置入口打开,也可以直接让 Agent 帮你关掉。
按每项的位置和具体下一步操作:能在手机上完成的选择、审批和授权就在手机上做;登录主机浏览器、接电源、系统首次授权等才需要你在 Agent J 主机前。卡住了直接在聊天里告诉 Agent。清单分六组:基本连接、电源与服务、常用网站、Google 工具、按需系统权限、可选通道。
点完整清单中任一待定或待处理行,就能展开这一项,直接选择或执行下一步;不用先做完当前组。
- 要用:这件事你要用,Agent 带你做完。
- 我不用:只对可选项出现。Agent 会记住,直到你以后想用或某个新任务确实需要它。
- 稍后:保留为没做完,不等于「我不用」。
- 检查:让Agent J 主机重新检查一次。你说做完了,只会触发检查,检查通过才算完成。
必需的事项(账号、AI 登录、两个遥控器、通行密钥、后台服务、接电源不睡眠、网络、最后的手机检查)没有「我不用」。随时对 Agent 说「继续首次准备」,从上次停下的地方接着做,不用重装或重新配对。
某一项没通过时,清单页会直接写明查到了什么、影响什么、下一步点哪里,比如写明是 Agent J 的专用浏览器里还没登录 Gmail(你平时用的浏览器不算),只影响要用 Gmail 的事。只有依赖它的事会等,其他照常,Agent 也照常聊天。
先完成基本连接
登录你选用的一个 AI 工具,配好这台Agent J 主机的浏览器和手机遥控器,从手机发一条消息并收到回复。手机的通行密钥用于批准和支持的恢复;它不是Agent J 主机的管理员密码,也不能代替 Mac 的本机 Touch ID。
在香港、澳门、中国大陆等用不了 Claude Code 和 Codex 的地区,清单的「主 AI 登录与权限」一项按地区推荐:中国大陆从零开始首推火山方舟 Coding Plan,先买 Lite(和 Pro 能力一样,只差 5 倍用量);香港 / 海外推荐 Kimi 会员 Plus 或更高档(通过 OpenCode,Go 档没有编程额度),并给出 Agent J 官方的邀请链接,链接后面紧跟「这是 Agent J 官方的邀请链接,您和我们各得一次抽奖」;已经有其中一家的就继续用。判断依据是实测,见装好 AI 命令行工具。
让Agent J 主机保持在线
插上电源,让Agent J 主机不睡眠;屏幕可以关闭。安装最后已经同意永不休眠的话,这一项已经做好;Mac 合盖也不睡时,出门前要自己关机。Agent 会检查设置并保存可恢复的原值,改系统设置会发一张手机密码卡(见Agent J 主机防休眠)。Windows/WSL 要检查 Windows 本身,不能只改 WSL。Mac 若还要求本机 Touch ID,Agent 会说明需要你在Agent J 主机上处理哪一步,不会连续索要手机密码。
网站与 Google
常用网站(Gmail、YouTube Studio、B站、抖音、公众号等)要在Agent J 主机的正式登录页上由你本人登录。清单只读取 Agent J 所用浏览器的真实登录检查结果,从不读你平时用的浏览器,每个网站项都写明查的是哪个浏览器。超过 15 分钟的结果需要重新检查,光说做完了不能直接让网站通过。公众号和视频号分别检查,两项都通过才算完成微信这一项。
- 在 Agent J 主机上设置浏览器。 按浏览器设置指南操作。Linux 使用系统安装的 Chrome 或 Chromium。
- 在 Mac 或 Windows 上连接 Ego Lite。 点让 Agent 帮我装,Agent 会帮你安装并准备名为
Agent J的专用资料。Agent 发起连接后,用已配对的手机在这张清单上点使用 Ego Lite。 - 用我已有的浏览器。 Linux 上可以选择你已经用来做自动化的专用浏览器。Agent J 只打开和关闭自己开的标签页,浏览器和登录资料仍由你管理。
- 在 Agent J 主机上打开并登录。 在 Agent J 使用的浏览器里打开网站的登录页,然后在本机登录。
Gmail 网页登录和 Google 的邮件、日历、云盘、YouTube 接口授权是两回事。这一版会预装 Google 工具,邮件、日历、云盘、YouTube、Search Console 每个用途都用你自己的 Google 项目分别授权(原计划 0.18.1,从 0.26.8 起全部可用),详见 连接 Google。
只给需要的权限
普通对话、文件项目和浏览器操作不会一律要求 Mac 的辅助功能、完全磁盘访问和屏幕录制。只有你选的任务确实需要时,Agent 才说明是哪个程序、为什么要申请。手机语音、相机权限在手机上就能补,不必回Agent J 主机。
离开前做一次手机检查
其他已选事项都通过后,在卡片上点「开始离机检查」:让Agent J 主机屏幕熄灭,手机关掉 Wi-Fi 用蜂窝网络,在聊天里随便发一句话,收到回复就完成。
通过后你会看到:「从现在起,你可以离开Agent J 主机,用手机继续处理已选并验证的事项。」同时列出没启用的事项和检查时间。还有没做完的,只会告诉你手机对话已经能用、离机检查还剩几项,不会说所有事都能远程。
Agent J 主机断电、重启后要解锁、新的系统权限或账号安全检查,仍可能需要你回到Agent J 主机。付款、发信等操作仍会在手机上按具体事项请你批准;首次准备不会预先批准这些事,也不会为了省一次回来而关掉Agent J 主机的安全设置。
技术细节
- 命令:
agentj setup checklist --json(只读,没开始时返回 needs_setup)、agentj setup checklist --resume(开始或继续,手机和Agent J 主机网页出现横幅)、agentj setup checklist --check/--item <项>(复查;网站项会真去做一次只读登录检查)、agentj setup checklist --close(各处立即收起,之后不会自己弹回来)、agentj setup checklist --open(你要看时才重新打开)。没有任何命令能替你标记「我不用」或标记完成。 - 用你已有的 Linux 浏览器:
agentj browser adopt --endpoint http://127.0.0.1:<端口>只是提议(只限本机回环地址,其他一律拒绝),你在清单页点「用我已有的浏览器」才生效;--dry-run [--site gmail]只读、不登记;agentj browser adopt --forget不再使用它。agentj browser setup发现已有浏览器会先问。加--own可以用系统浏览器给 Agent J 配一套专用浏览器。 - 状态保存在本机状态目录的
setup/checklist.json(只有你自己的用户能读写),不上传云端。卡片上的选择由已配对设备签名,旧版本的卡片会被拒绝并刷新。 - 检查有效期:网站 15 分钟,其他 24 小时;离机检查的手机回合 2 小时内有效。
本机文件访问
Mac 首次安装、主人还在 Agent J 主机前时,主动完成「Mac 文件夹与 Finder 权限」清单项:主人在自己的终端运行 agentj files prepare --at-computer(Agent J 服务须已启动)。服务依次请求下载、桌面、文稿的目录访问,以及 Finder 自动化;请主人按系统提示确认。Finder 自动化能让 Agent J 经 Finder 复制指定文件,作用范围比手机目录白名单更广,只有确实需要远程导入时才同意。完全磁盘访问可选,仅需要更多受保护数据时到系统设置 → 隐私与安全 → 完全磁盘访问授予系统列出的实际程序;不默认开、不自动点击、不用 tccutil 改权限。安装终端和后台服务可能有不同的 macOS permissions 归属,服务检查结果才是本功能的依据;设置和 doctor 显示上次观察,不声称永久授权。
遇到允许访问…文件夹或 Permission denied / Operation not permitted:先 agentj files fetch '<原路径>',给命令至少 6 分钟;服务发手机卡本次允许 / 以后这个文件夹都允许 / 拒绝。批准后先尝试只读复制;仅 macOS 权限拒绝时走 Finder,且自动化预检必须已授权。原文件不删不改,只使用成功回执的新路径。拒绝、超时、离线、主人暂停所有工作、元数据不可核实、符号链接、敏感目录均不导入。命令被中断不能视为成功,核对回执;没有成功回执时重新 fetch,不猜路径。
如果 Finder Automation 尚未授权,系统仍可能需要本人在本机点一次。说明这是 macOS 首次系统授权,手机卡无法替代;下次在 Agent J 主机前准备即可,继续其它独立工作,不让户外主人立刻回到 Agent J 主机前,不反复 cp/sudo,不用 computer use 代点。设置 → 本机文件访问可添加(签名审批)/撤销导入文件夹,临时授权一小时后到期;直到撤销只影响以后导入,已复制文件保留。这些授权不修改 AI 工具或 macOS 的权限。外置盘与完全磁盘访问状态不能由本检查证明。
Once Agent J is installed and the Agent J host's browser and your phone are paired, stay at the Agent J host for one final preparation round. Your Agent handles the technical work. You handle the sign-ins, system prompts and physical steps that need you.
After the first installation your Agent offers this once, when the welcome tour ends. Computers already in use never get it automatically; ask your Agent whenever you want it.
Send this to your Agent:
I am at my computer now. List everything that needs my help before I can work remotely, and check what is already configured. Let me decline things I will not use. Guide me through the rest in order and verify each result. Use secure phone cards for passwords and keys, never chat. Finish by telling me what I can do away from the Agent J host and what might still require a return.
After pairing or unbinding, open pages update the remote count, pairing suggestion and pairing rows in the checklist automatically. Reconnecting catches up without a page reload. A closed checklist stays closed.
The checklist page
Open Settings → Agent tools → First-run checklist. This is the stable route; you do not need a banner above the chat. That banner appears only after the host has a checklist and neither the host nor this device has closed it. Its ✕ (or Close checklist on the page) hides it; continuing, checking and restarting do not bring it back. Open it again from the same Settings route, or ask your Agent to close it.
Follow each item’s location and concrete next step. Make choices and approvals on the phone wherever supported. Only local steps such as signing in to the host browser, plugging in power and first-time system permission prompts require you at the Agent J host. If stuck, tell your Agent in the chat. The six groups are your connection, power and services, your websites, Google tools, permissions you need, and optional connections.
Tap any pending or undecided row in the full list to expand that item and choose or take its next step directly. You do not need to finish the current group first:
- Use it: you need it; your Agent guides you through it.
- I won't use this: optional items only. Your Agent remembers until you ask for it or a new task truly needs it.
- Later: kept as unfinished, which is not the same as "I won't use this".
- Check: the Agent J host checks again. Saying you are done only starts a check; the item completes when the check passes.
Required items (account, AI login, both remotes, passkey, background service, plugged in without sleep, network, the final phone check) have no "I won't use this". Say "Continue first-run setup" at any time to pick up where you stopped, without reinstalling or pairing again.
When an item has not passed, the page says exactly what was found, what it affects, and what to tap next — for example that Gmail is not signed in in Agent J's own browser (your everyday browser does not count) and only tasks that use Gmail wait. Only what depends on it waits; everything else continues, and your Agent keeps chatting.
Connect first
Sign in to one AI tool. Pair the Agent J host's browser and your phone remote, then send a message from the phone and receive a reply. A phone passkey approves supported requests and recovery. It is separate from the Agent J host's administrator password and a Mac's local Touch ID prompt.
Where Claude Code and Codex are not offered (Hong Kong, Macau, mainland China and similar), the checklist's "Main AI login and access" row recommends by region: in mainland China, starting from zero, Volcano Ark Coding Plan — buy Lite first (same as Pro, only 1/5 of the quota); in Hong Kong / overseas, a Kimi membership, Plus or higher, through OpenCode (the Go plan has no coding quota), with Agent J's official invite link and this sentence right next to it: "This is Agent J's official invite link: you and we each get one prize draw". Already paying for one of them? Keep it. The decision comes from a real check; see Set up AI command-line tools.
Keep the Agent J host reachable
Plug it in. The display may turn off while the Agent J host keeps working. If you already said yes to keeping it awake at the end of setup, this is done; on a Mac whose closed lid stays awake, shut it down yourself before travel. Your Agent checks the settings and keeps the original values; a system change comes to your phone as a password card (see Keep the Agent J host awake). With Windows and WSL, Windows itself needs checking. If a Mac still asks for local Touch ID, your Agent explains the local step instead of asking for the phone password again and again.
Websites and Google
Sign in to your websites (Gmail, YouTube Studio and others) yourself, on the real sign-in page on the Agent J host. The checklist reads the sign-in checks of the browser Agent J uses, never your everyday browser, and every website row says which browser it checked. A check older than 15 minutes needs refreshing; saying you are done cannot make a site pass. WeChat completes only when both Official Accounts and Channels pass their own checks.
- Set up the browser on the Agent J host. Follow the browser setup guide. On Linux, Agent J uses the system Chrome or Chromium.
- Connect Ego Lite on Mac or Windows. Tap Ask Agent to install for help installing Ego Lite and preparing a dedicated profile named
Agent J. Once your Agent starts the connection, confirm Use Ego Lite here from your paired phone. - Use my existing browser. On Linux, you can choose a dedicated browser you already run for automation. Agent J opens and closes only its own tabs. You keep control of that browser and its profile.
- Open it on the Agent J host and sign in. Open the site's sign-in page in the browser Agent J uses and sign in on the computer.
Signing in to Gmail's website is not the same as authorizing Gmail, Calendar, Drive or YouTube tools. This version pre-installs the Google tools; each Google purpose (Gmail, Calendar, Drive, YouTube, Search Console) is authorized on its own with your own Google project (planned for 0.18.1; every purpose since 0.26.8). See Connect Google.
Grant only the permissions you need
Chat, file work and browser automation do not automatically require every Mac privacy permission. Only when a task you chose needs one does your Agent name the program and the reason. Phone microphone and camera permissions can be granted on the phone later.
Check before you leave
When everything else you chose has passed, tap "Start the leaving check" on the card: let the Agent J host's display turn off, switch the phone to mobile data, and send any chat message. A reply completes it.
You then see "You can now leave the Agent J host and continue the selected, verified tasks from your phone." It also lists the items you did not enable and the check time. If anything is unfinished, you see what already works and how many items are left, never a claim that everything is remote.
Power loss, a restart that needs unlocking, a new system permission or an account security check may still need you at the Agent J host. Sending, paying and similar actions still ask for their own approval on the phone; the first-run checklist does not approve them in advance, and it never turns off a security setting to save you a trip.
Technical details
- Commands:
agentj setup checklist --json(read-only;needs_setupbefore you start),agentj setup checklist --resume(start or continue and show the banner on the phone and the Agent J host's browser),agentj setup checklist --check/--item <id>(re-check; a website item runs a real read-only sign-in check),agentj setup checklist --close(close it everywhere at once; nothing reopens it by itself),agentj setup checklist --open(show it again, only when you ask). No command can mark "I won't use this" or "done" for you. - Your existing Linux browser:
agentj browser adopt --endpoint http://127.0.0.1:<port>only proposes it (the Agent J host's loopback only; anything else is refused) — it takes effect when you tap "Use my existing browser";--dry-run [--site gmail]only reads and registers nothing;agentj browser adopt --forgetstops using it.agentj browser setupasks first when it finds one. Use--ownto set up a dedicated system browser for Agent J. - The state lives in
setup/checklist.jsonin the local state folder (readable only by your user) and is not uploaded. Choices on the card are signed by a paired device; a card showing an older revision is refused and refreshed. - Freshness: websites 15 minutes, everything else 24 hours; the leaving check's phone round trip counts for 2 hours.
Local file access
During the first Mac installation, while the owner is at the computer, proactively complete the Mac folders and Finder access checklist item. Have the owner run agentj files prepare --at-computer in their own terminal after the Agent J service starts. The service requests Downloads, Desktop, Documents and Finder Automation access; the owner confirms macOS prompts. Finder Automation allows Agent J to ask Finder to copy selected files and is broader than the phone's folder allowlist; approve it only for remote importing. Full Disk Access is optional: grant it to the actual program shown in System Settings → Privacy & Security only when a task needs more protected data. Never enable it by default, click system prompts or edit macOS permissions. A terminal and background service may have different macOS permissions attribution; use the service's observations. Settings and doctor show the last check, not a permanent OS grant.
On a folder permission prompt, Permission denied or Operation not permitted, first run agentj files fetch '<original path>', with at least a six-minute command timeout. Serve asks the paired phone: Allow once / Always allow folder / Deny. It tries a read-only copy, then Finder only after a macOS permission refusal and an already-authorized Automation preflight. Keep the source unchanged and use only the successful receipt's new path. Denial, timeout, offline, emergency stop, unverifiable metadata, symbolic links and sensitive paths fail closed. An interrupted command is not a success; retry fetch if no successful receipt exists, never guess a destination.
Missing Finder Automation still requires the owner's first local macOS consent. Explain that the phone cannot grant macOS permissions and preparation can wait until they are next at the computer; continue independent work. Do not send an outdoor owner back to the computer now, loop cp/sudo or click system prompts through computer use. Settings → Local file access supports signed folder additions and removal; a temporary grant lasts one hour. Removal affects future imports; existing copies remain. Grants change neither AI tool or macOS permissions. This check does not prove external-volume or Full Disk Access permission.