Event ·Official first-hand

Codex 默认禁用网络访问,可通过域名规则配置网络代理

OpenAI 开发者账号发布的说明确认,Codex CLI 的默认权限配置会禁用网络访问。当命令需要联网时,Codex 会直接向用户弹出授权提示,或把请求交给 auto-review 自动审查处理。 对于需要从包管理源下载依赖的项目,开发者可以在权限配置文件(permission profile)中把对应 registry 的域名加入白名单,并启用网络代理。代理会逐条比对请求与配置中的域名规则来决定是否转发,匹配成功的请求无需每次单独审批,减少构建过程中的重复确认。 实现上,网络代理的核心请求处理与策略逻辑在三套主流操作系统上共用,但代理配置和沙箱集成分平台处理。以 Linux 为例,命令会连接到隔离命名空间内的监听器,由沙箱外的进程把这些连接转发到配置好的代理。

Current read

Codex CLI 网络访问机制讲清楚了:默认断网、按域名放行、代理统一转发。经常跑 npm/pip 装包的开发者可以照着配置一次,以后构建就不用反复点确认了,比手动审批省事不少。

11 sources31° AI heatLast updated 2026/11/18 19:01:27

Evidence

11 sources
Primary source@OpenAIDevs
View source
Related source 1歸藏(guizang.ai)
View source
Related source 2OpenAI Blog
View source
Related source 3Vaibhav Srivastav
View source
Related source 5The Information
View source
Related source 7Simon Willison’s Weblog
View source
Related source 9shao__meng
View source

Conflict check

Dedup data only shows that these sources discuss the same event, not that they agree. There is no structured supporting or refuting evidence yet, so no conflict is inferred automatically.

Codex network proxy filters requests against permission profile domains · 事件专题 | AITOP