laoooo
V2EX  ›  OpenAI

Codex 免验证码登录公益站

  •  
  •   laoooo · May 12 · 10746 views
    This topic created in 179 days ago, the information mentioned may be changed or developed.

    最近发现 Codex 登录需要验证码,因此做了个公益站:传送门,免验证码登录 Codex 。打开即用,纯 JS 处理。

    原理:手动配置 access token 给 Codex 。

    注意:此方案有有效期问题,大概 10 天左右需要重新获取一次。

    29 replies  •  2026-10-05 14:15:30 +08:00
    idragonet
    idragonet
    May 12
    1
    Visual Studio CODE 插件 CodeX 好像不行。
    ca2oh4
    ca2oh4
    May 12
    2
    windows 的命令不对
    idragonet
    idragonet
    May 12
    3
    发现:refresh_token 是空的,使用不了:“Failed to refresh token: 400 Bad Request: Invalid 'refresh_token': empty string. Expected a string with minimum length 1, but got an empty string instead.
    ”
    laoooo
    laoooo
    OP
    May 12
    4
    @idragonet refresh_token 是必须要验证手机号才有的,这个为空是正常情况。关于使用不了的问题,建议升级一下版本试试看,如果不行估计只能使用 APP 客户端了。
    laoooo
    laoooo
    OP
    May 12
    5
    @laoooo 或者尝试在 refresh_token 中,填入一些随机字符试试
    idragonet
    idragonet
    May 12
    6
    @laoooo #5 Visual Studio CODE 插件 CodeX 这样不行,依旧报错:Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again.
    。
    Oktfolio
    Oktfolio
    May 12
    8
    用不了
    liang0352
    liang0352
    May 12
    9
    用不了+1
    yusemo
    yusemo
    May 12
    10
    依旧报错: Failed to refresh token: 400 Bad Request: Invalid 'refresh_token': empty string. Expected a string with minimum length 1, but got an empty string instead.
    填入一些随机字符报 Your access token could not be refreshed. Please log out and sign in again.
    934831065ldc
    11
    id_token 和 access_token 是不一样的
    Xdragon
    Xdragon
    May 12
    12
    上面的问题都存在
    有解决办法了么
    csfreshman
    13
    天下苦 codex 和 claudecode 久已,想付费用个,还得胆战心惊,解决各种问题,我 cc 从 25 年 9 月到现在基本月抛号
    r03r03
    r03r03
    May 12 via Android
    14
    没有通过验证码核验的账号也可以用吗?
    ihongren
    ihongren
    May 12
    15
    可用
    outtime
    outtime
    PRO
    May 12
    16
    App 可以用,应该是 cli 强制要 refresh token
    r03r03
    r03r03
    May 13
    17
    @outtime 请问下,你说的 app 是指桌面版的 codex 客户端吗?我这里还是提示:Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again.使用不了。
    laoooo
    laoooo
    OP
    May 13
    18
    @r03r03 是的,我这边测试没问题
    ihongren
    ihongren
    May 13
    19
    @ihongren 是能登录进去,但是使用报错:Failed to refresh token: 400 Bad Request: Invalid 'refresh_token': empty string. Expected a string with minimum length 1, but got an empty string instead.
    r03r03
    r03r03
    May 13
    20
    上午折腾了两个小时,还是不行。完全退出账号,删除 cookie ,重新登陆账号。删除本地的 codex 相关缓存以及账号信息相关的配置文件,依然会提示:Your access token could not be refreshed because your refresh token was already used. Please log out and sign in again.🤣
    myKing
    myKing
    May 19
    21
    谢谢高手
    hikarugo
    hikarugo
    May 20
    22
    太强了,感谢,天才程序员继续工作
    lc0376
    lc0376
    May 21
    23
    感谢
    myKing
    myKing
    May 21
    24
    @ca2oh4 哥,日期:20260521 显示重连 5 词,然后提示错误 Failed to refresh token: 400 Bad Request: Invalid 'refresh_token': empty string. Expected a string with minimum length 1, but got an empty string instead.
    ca2oh4
    ca2oh4
    May 22
    25
    @myKing 貌似需要之前验证过手机号,您之前有认证过手机号吗?
    xiangdd
    xiangdd
    May 22
    26
    codex cli 不行,报错 refresh token was already used
    Ch1hao
    Ch1hao
    Jun 1
    27
    大佬 nb ,真的非常感谢
    myKing
    myKing
    Jun 3
    28
    @ca2oh4 好的 信息
    eunrui
    eunrui
    Oct 5
    29
    更新了 0.160 后好像失效了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1638 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 10:53 · PVG 18:53 · LAX 02:53 · JFK 05:53
    ♥ Do have faith in what you're doing.