zllfdd
V2EX  ›  OpenAI

openai Codex 怎么登录?

  •  
  •   zllfdd · Sep 2, 2025 · 7832 views
    This topic created in 288 days ago, the information mentioned may be changed or developed.

    https://chatgpt.com/codex ,在这里选“在您的 IDE 中尝试”:

    1. 打开了 vscode, 安装了插件。
    2. 在插件中,sign in with chatgpt 。
    3. 自动打开了 https://auth.openai.com/log-in ,用账号登录。
    4. 最后 http://localhost:1455/auth/callback?code=.... 提示:Token exchange failed: token endpoint returned status 403 Forbidden 。

    是代理配置的原因吗?

    5 replies    2025-11-02 20:38:08 +08:00
    zllfdd
        1
    zllfdd  
    OP
       Sep 2, 2025
    还是说我想多了,Codex 不能共享 chatgpt team plan ,需要单独订阅?
    SignUpWithSolana
        2
    SignUpWithSolana  
       Sep 3, 2025 via iPhone
    我在墙外,顺利登录了,应该是你代理的问题
    zhenzhenhuang370
        3
    zhenzhenhuang370  
       Sep 16, 2025
    我在 vscode 中的插件一直登录不了,非常苦恼。
    zllfdd
        4
    zllfdd  
    OP
       Sep 28, 2025
    @zhenzhenhuang370 安装 codex cli ,在 codex cli 中登录,终端要设置好代理,codex cli 登录成功后,
    vscode 的就自动登录了。
    diligentCoding
        5
    diligentCoding  
       Nov 2, 2025   ❤️ 1
    需要在终端正确配置网络访问代理,插件及 wsl 使用的网络有时候默认不是走的全局映射;
    参照 https://learn.microsoft.com/en-us/windows/wsl/networking 微软的 wsl 配置指南基本三步走
    1 、ip route show | grep -i default | awk '{ print $3}'` 打印拿到宿主 ip
    2 、export http_proxy="http://${ip_host}:7890"
    export https_proxy="https://${ip_host}:7890"
    ip_host 为第一步使用的 ip
    3 、curl https://chatgpt.com/ 验证
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3048 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 00:27 · PVG 08:27 · LAX 17:27 · JFK 20:27
    ♥ Do have faith in what you're doing.