非tun模式下codex默认使用wss协议,只有重试5次才会转https 【已经解决】
- 内容介绍
- 文章标签
- 相关推荐
非正常情况下:
image989×387 16 KB
image919×260 4.04 KB
codex帮我解决了,关键核心:
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
$env:ALL_PROXY="http://127.0.0.1:7897"
$env:NO_PROXY="localhost,127.0.0.1,::1"
codex
永久解决:
setx HTTP_PROXY "http://127.0.0.1:7897"
setx HTTPS_PROXY "http://127.0.0.1:7897"
setx ALL_PROXY "http://127.0.0.1:7897"
setx NO_PROXY "localhost,127.0.0.1,::1"
于是做成脚本了
codex.zip (4.0 KB)
codex gpt-5.5-xhigh编写,说是杀鸡直接用牛刀
image806×553 16.6 KB
解决
image846×328 8.7 KB
--【壹】--:
我之前看到的方案,在.codex目录下新建.env文件
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
ALL_PROXY=http://127.0.0.1:7890
NO_PROXY=localhost,127.0.0.1,::1
非正常情况下:
image989×387 16 KB
image919×260 4.04 KB
codex帮我解决了,关键核心:
$env:HTTP_PROXY="http://127.0.0.1:7897"
$env:HTTPS_PROXY="http://127.0.0.1:7897"
$env:ALL_PROXY="http://127.0.0.1:7897"
$env:NO_PROXY="localhost,127.0.0.1,::1"
codex
永久解决:
setx HTTP_PROXY "http://127.0.0.1:7897"
setx HTTPS_PROXY "http://127.0.0.1:7897"
setx ALL_PROXY "http://127.0.0.1:7897"
setx NO_PROXY "localhost,127.0.0.1,::1"
于是做成脚本了
codex.zip (4.0 KB)
codex gpt-5.5-xhigh编写,说是杀鸡直接用牛刀
image806×553 16.6 KB
解决
image846×328 8.7 KB
--【壹】--:
我之前看到的方案,在.codex目录下新建.env文件
HTTP_PROXY=http://127.0.0.1:7890
HTTPS_PROXY=http://127.0.0.1:7890
ALL_PROXY=http://127.0.0.1:7890
NO_PROXY=localhost,127.0.0.1,::1

