跳到正文
meng shao· @shao__meng · X·· 2026-05-21AI 评分69
AI 导读

Alex Finn 提出的远程开发架构核心在于将“执行代码的主机”与“发送指令的终端”分离。一台主力机(如Mac Studio)常开,作为唯一执行环境,集中所有代码与依赖;其他设备(如iPad、iPhone)仅作为“遥控器”发送指令。通过Codex的远程控制功能与Tailscale私有网络连接,开发者可在任何地点、任何设备无缝推进同一项目,实现开发能力与物理位置的解耦,从而提升灵活性和效率。

正文 · 原文

看看 Alex Finn 推荐的 Codex 远程开发架构,虽然 1000x 生产力略显夸张 😄

Alex 的核心理念是把"写代码的设备"和"发指令的设备"分离开:
一台主力机(Mac Studio):唯一真正执行代码编写的环境,所有代码库、依赖、运行时都集中在这里。
多台终端设备(iPad、iPhone、第二台 Mac Studio、两台 Mac mini):只作为"遥控器",向主力机发送指令。

带来的结果是:物理位置与开发能力解耦——在床上、在超市、在日本、在车里,都能继续推进同一套代码。

三层技术架构
1. 主力机(Host)
· 始终开机、禁用睡眠。
· 在 Codex 应用中开启 Settings → Connections → Control this Mac,把自己暴露为可被远程控制的节点。

2. 控制端(Clients)
· 所有其他设备在 Codex 中开启 Control other devices。
这些设备不存放代码,只负责发送 prompt、查看结果。

3. 网络层(Tailscale)
· 在所有设备上安装 Tailscale,组成一张私有 mesh 网络(基于 WireGuard)。
· 作用不仅是穿透 NAT,更关键的是:让其他 AI agent(他举例的 OpenClaw、Hermes)能够跨机器跳转、在不同节点上执行修改。
· 等于把"多台设备"在网络层抽象成"一台逻辑机器"。

落地步骤(精简版)
1. 选一台桌面设备作为 Host(Mac mini 或 Mac Studio 优先)。
2. 系统设置中关闭自动睡眠,确保常开。
3. Host 上:Codex → Settings → Connections → Control this Mac 打开。
4. 其他每台设备:Codex → Settings → Control other devices 打开。
5. 全部设备安装 Tailscale,登录同一账号,组成私有网络。
6.(可选)部署跨机 agent(如 OpenClaw、Hermes),让它们利用 Tailscale 跨节点执行任务。

引用Alex Finn@AlexFinn
You need to set up this Codex system I have Been taking advantage of their new remote features and my productivity has 1000x'd I have one device (Mac Studio 1) as my main dev machine. That's where all code is written Then all my other devices (iPad, iPhone, Mac Studio 2, 2 Mac Minis) are nodes I send commands from No matter which device I'm on, no matter where I am in the world (could be at the grocery store, in bed, Japan, on the toilet, by the pool, on the road using FSD) I have code written in one place Made coding big projects SO much easier Here's what I'd do if I were you Choose one device you have (preferably a desktop device like Mac Mini or Mac Studio) Make this your main dev device. Make sure it never turns off and never goes to sleep Go into Codex app then settings on that device. Go to connections > control this Mac. Turn that on Then go into every other device you have, mobile, desktop, whatever, and go into Codex settings and enable control other devices Also download Tailscale on every device. This will allow you to create a private network that will allow your other agents (OpenClaw or Hermes) to jump between computers and make changes when necessary You now have a super powered AI private network where you can code or get work done from any device anywhere in the world Promise this 1000x's your productivity
在 X 查看被引用的帖子

来源:meng shao · x.com