惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

美团技术团队
罗磊的独立博客
SecWiki News
SecWiki News
The Register - Security
The Register - Security
The GitHub Blog
The GitHub Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Schneier on Security
IT之家
IT之家
博客园 - 聂微东
T
The Exploit Database - CXSecurity.com
Recorded Future
Recorded Future
大猫的无限游戏
大猫的无限游戏
Know Your Adversary
Know Your Adversary
Latest news
Latest news
Vercel News
Vercel News
G
GRAHAM CLULEY
D
DataBreaches.Net
D
Darknet – Hacking Tools, Hacker News & Cyber Security
S
SegmentFault 最新的问题
博客园_首页
雷峰网
雷峰网
T
Tenable Blog
Spread Privacy
Spread Privacy
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
酷 壳 – CoolShell
酷 壳 – CoolShell
Cisco Talos Blog
Cisco Talos Blog
V
Visual Studio Blog
J
Java Code Geeks
博客园 - Franky
The Cloudflare Blog
Apple Machine Learning Research
Apple Machine Learning Research
C
CERT Recently Published Vulnerability Notes
T
Threatpost
Google DeepMind News
Google DeepMind News
F
Fortinet All Blogs
P
Privacy International News Feed
T
Threat Research - Cisco Blogs
T
The Blog of Author Tim Ferriss
V
Vulnerabilities – Threatpost
Recent Announcements
Recent Announcements
Blog — PlanetScale
Blog — PlanetScale
Security Latest
Security Latest
U
Unit 42
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
K
Kaspersky official blog
有赞技术团队
有赞技术团队
B
Blog
腾讯CDC

WUJINGQUAN

邮箱服务选择经验指南 - WUJINGQUAN 用户调研 - WUJINGQUAN 在无GUI 的Linux上玩转AI - WUJINGQUAN ROS2学习记录 - WUJINGQUAN cnb.cool使用踩坑记录 - WUJINGQUAN google adsense - WUJINGQUAN 强制移除HBuilderX 5 打包uni-app新增的3项目权限 - WUJINGQUAN 苹果应用开发水文 - WUJINGQUAN Flutter页面文字双下划线问题复盘 - WUJINGQUAN Mac使用FTP - WUJINGQUAN 20260413傻逼宝塔面板把DNS藏了起来 - WUJINGQUAN 睡不着,起来报考个高级职称系统架构师 - WUJINGQUAN OpenClaw小龙虾 - WUJINGQUAN
在美国服务器上跑Codex CLI - WUJINGQUAN
wujingquan · 2026-04-11 · via WUJINGQUAN

为什么要在美国的服务器上跑Codex CLI ?

因为我不想被封号,后续还要使用Cluade Code。

由于是要SSH到美东地区的服务器,网络不是很稳定,如果我们codex执行任务的期间掉线了,那么任务会中断,为了保证任务执行不中断,我这边使用screen来实现。

apt install screen
screen -R Codex

安装screen后,我们还需要安装fnm,通过fnm去安装Node.js和NPM,然后再通过NPM去安装Codex CLI。

curl -fsSL https://fnm.vercel.app/install | bash
fnm install --lts
npm i -g @openai/codex

输入Codex,然后选择第2种方式去认证,因为我们是在remote or headless machine

2. Sign in with Device Code                                                                                                                                                          Sign in from another device with a one-time code

然后按照提示打开链接,输入机器码即可。