在未来的工作模式,或者说如何高效使用AI中我提到了那个笑话:
AI流行之后,经常能看到一些社畜下了地铁以后还捧着电脑走路,因为电脑上的AI正在干活,不敢把电脑合上。
要想让AI不间断地干活,要么让自己的电脑24小时开机,要么租一台服务器(VPS),然后远程指挥AI。
前者对笔记本用户来说很难,所以这里主要说第二个办法 - 服务器。
配置好了是这样的:
在自己的电脑或手机上操作Codex或Claude Code -> 云端虚拟电脑上的Codex或Claude Code收到任务并干活
这样你就可以:
这是用浏览器访问虚拟电脑的桌面时的样子(在比如升级Codex或Claude Code app时会用到):

换句话说,这有点像Codex或Claude Code版本的OpenClaw,只不过你还拥有一整台可以远程操作的电脑!
我自己一直在Mac Mini+MacBook Pro+iPhone上使用这套方案,最近又做了个Linux版本,这样就可以在任何云服务商(比如阿里云)上开一台服务器,然后实现相同的效果。
其实OpenAI和Anthropic官方也提供云端服务,但是和上面的方案相比,官方服务有几个主要的限制:
如果在海外开一台服务器,这个办法可以让你用上Codex和Claude Code,因为这就是物理上的在海外嘛!
安全起见最好再加个干净的IP。
你可以让AI帮你设置,在服务器上安装好Codex命令行后(Claude Code请自行调整),直接把这段指令发给它:
Set up this Linux machine as a remotely accessible AI workstation.
1. Install [Codex Desktop for Linux](https://github.com/ilysenko/codex-desktop-linux) and enable remote connections so I can use it from the official Codex app on my Mac, with the same functionality as a local installation.
2. Install Google Chrome and a lightweight desktop environment (e.g. Openbox) to support browser use and computer use.
3. Set up remote desktop access via VNC, including browser-based access using noVNC.
4. Set up Samba to share my home directory with my Mac/PC.
5. Use my existing Linux username and password for both VNC and Samba authentication. Do not create separate accounts or passwords.
6. Use the Codex GUI app as the single source of truth for Codex sessions and configuration. Avoid separate CLI installations or duplicate session state.
7. Configure all services to start automatically after reboot.
Secure remote access, avoid exposing services directly to the public internet, and verify that everything works.
如果有问题或需要帮助,欢迎留言或给我发邮件:[email protected]