V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zllfdd
V2EX  ›  OpenAI

openai Codex 怎么登录?

  •  
  •   zllfdd · 66 天前 · 2967 次点击
    这是一个创建于 66 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2025-11-02 20:38:08 +08:00
    zllfdd
        1
    zllfdd  
    OP
       66 天前
    还是说我想多了,Codex 不能共享 chatgpt team plan ,需要单独订阅?
    SignUpWithSolana
        2
    SignUpWithSolana  
       66 天前 via iPhone
    我在墙外,顺利登录了,应该是你代理的问题
    zhenzhenhuang370
        3
    zhenzhenhuang370  
       52 天前
    我在 vscode 中的插件一直登录不了,非常苦恼。
    zllfdd
        4
    zllfdd  
    OP
       40 天前
    @zhenzhenhuang370 安装 codex cli ,在 codex cli 中登录,终端要设置好代理,codex cli 登录成功后,
    vscode 的就自动登录了。
    diligentCoding
        5
    diligentCoding  
       5 天前
    需要在终端正确配置网络访问代理,插件及 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/ 验证
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   Solana   ·   2744 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 06:02 · PVG 14:02 · LAX 22:02 · JFK 01:02
    ♥ Do have faith in what you're doing.