• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Saunak
V2EX  ›  程序员

codex 使用问题

  •  
  •   Saunak · Sep 8, 2025 · 11857 views
    This topic created in 422 days ago, the information mentioned may be changed or developed.

    在 remote ssh 连接的机器(无代理)上,通过本地的 clash 端口转发。 codex cli 安装成功,且可以登录并正常使用。 但是 vscode 中的 codex 插件登录成功了,但是 chat 和 agent 均无返回。似乎还超时了? error sending request for url ( https://chatgpt.com/backend-api/codex/responses)

    请问这是什么问题,为何那么同样的网络情况下 cli 可以用,插件的无法访问?如何解决?

    19 replies  •  2026-03-19 11:31:51 +08:00
    stimw
    stimw
    Sep 8, 2025
    1
    先看本地 clash 的日志
    XTTX
    XTTX
    Sep 8, 2025
    2
    https://www.v2ex.com/t/1145732#reply48 24 楼, 我猜大概是要在 terminal 设置代理。codex 文档应该有说怎么用代理。
    Saunak
    Saunak
    OP
    Sep 8, 2025
    3
    @XTTX https://github.com/openai/codex/issues/2987 好像是 bug ?这个代理设置只对 codex cli 有效
    pnczk2019
    pnczk2019
    Sep 10, 2025
    4
    CODEX 现在一个月多少钱?
    midraos
    midraos
    Sep 10, 2025
    5
    @pnczk2019 和 chatgpt 的订阅是一起的,plus 20 刀
    xntzmk
    xntzmk
    Sep 10, 2025
    6
    @midraos 这样是不是可以省一份钱。。
    Saunak
    Saunak
    OP
    Sep 10, 2025
    7
    @xntzmk 理论上是,但是这个在 remote ssh 下有很多问题。没有 augment 好用
    imHarveyy
    imHarveyy
    Sep 10, 2025
    8
    一天就干 limit 了
    @xntzmk
    bytesfold
    bytesfold
    Sep 10, 2025 via iPhone
    9
    这插件不遵循 vscode 的代理规范,GitHub issue 里面能搜到,目前未修复
    xntzmk
    xntzmk
    Sep 11, 2025
    10
    @Saunak #7 哦哦好, 没有用 ssh ,augement 想用的时候就封禁了 😭
    xntzmk
    xntzmk
    Sep 11, 2025
    11
    @imHarveyy 不是说 codex 省 token 么,还想着换掉 cursor 。。
    neilone
    neilone
    Sep 11, 2025
    12
    感觉 codex 在写 UI 方面不如 CC ,其他还挺强的
    imHarveyy
    imHarveyy
    Sep 11, 2025
    13
    @xntzmk 我也想着如果 codex 强的话就退掉 cursor ,用起来感觉挺好用的 就是一天就冻结了。现在我也不知道该用啥了。trae 的假 4sonnet 也不想用了
    sundbnus
    sundbnus
    Sep 23, 2025
    15
    持续关注。目前 remote ssh 的机器能用本地 clash 端口去使用 codex cli 。但是 cursor/vscode 里的插件还是自己调用自己的 request ,管不上
    Saunak
    Saunak
    OP
    Sep 23, 2025
    16
    @sundbnus 我之前有次跑通了,现在好像又不行了。搞不明白官方怎么弄的
    sundbnus
    sundbnus
    Sep 29, 2025
    17
    @Saunak 放弃了,假设有本地机器 A 和远程机器 B ,通过 remote ssh 连接的时候,codex 插件是自己在后台调用接口。所以目前要在 remote ssh 里用 codex ,要么:
    1.在远程机器 B 上安装 vpn ,然后用 codex cli 。在 cli 启动的终端里单独转发 http 请求到 vpn 监听的端口。
    2.在远程机器 B 上安装 vpn ,然后用 TUN 模式去转发远程机器 B 上的所有流量

    我改用回 cursor 了,cursor 在 remote 模式下,流量走的是本地,希望过段时间 cursor 也接入 codex
    Saunak
    Saunak
    OP
    Sep 29, 2025
    18
    @sundbnus cursor 现在怎么用 http2.0 呢? clash 开 tun 模式吗?我试了几个梯子都用不了
    sundbnus
    sundbnus
    Mar 19
    19
    @Saunak 在 L 站看到了一个解决方法,我已经用了一阵子不错: https://linux.do/t/topic/1158832

    V 站站内也有人共享了一个小工具: https://hk.v2ex.com/t/1197449
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2901 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 10:57 · PVG 18:57 · LAX 02:57 · JFK 05:57
    ♥ Do have faith in what you're doing.