vscode中使用codex插件登录openai被拒绝啦.

2026-04-11 12:481阅读0评论SEO教程
  • 内容介绍
  • 文章标签
  • 相关推荐
问题描述:

image1051×461 30.1 KB
求助大佬们,在vscode上登录codex时,一直被拒绝登录,
提示如下:
Codex login

Sign-in could not be completed

Token exchange failed: token endpoint returned status 403 Forbidden: Country, region, or territory not supported

Error code token_exchange_failed

Details Token exchange failed: token endpoint returned status 403 Forbidden: Country, region, or territory not supported

Return to Codex to retry, switch accounts, or contact your workspace admin if access is restricted.

网友解答:
--【壹】--:

windows版本 我也是这个提示登录不了


--【贰】--:

清除掉以前的登录信息(我用的cc-switch,/logout并不会清除)
手动创建一个空的配置信息,在登陆即可


--【叁】--:

只能换节点


--【肆】--:

对,我把以前的登录信息删了,再重新登录就好了


--【伍】--:

换节点,开TUN


--【陆】--:

意思是不用通过vscode了吗?


--【柒】--:

codex不是有windows版本了吗


--【捌】--:

我之前也是用不了


--【玖】--:

开TUN


--【拾】--:

佬友,这个问题最后怎么解决的呀


--【拾壹】--:

这没啥必要啊,我用cli+kiro,一个编一个看分离也行


--【拾贰】--:

大佬,请问是指创建auth.json文件吗

LiLaoMo:

创建一个空的配置信息


--【拾叁】--: wtaynsl:

auth.json

开了tun,新建了auth.json还是不行的咋办


--【拾肆】--:

感谢大佬指点迷津


--【拾伍】--:

大锅 扶墙!


--【拾陆】--:


--【拾柒】--:

刚刚也遇到了,忘记设置代理了,codex直连的openai,重新授权时记得设置HTTPS_PROXY或者使用TUN

标签:软件开发
问题描述:

image1051×461 30.1 KB
求助大佬们,在vscode上登录codex时,一直被拒绝登录,
提示如下:
Codex login

Sign-in could not be completed

Token exchange failed: token endpoint returned status 403 Forbidden: Country, region, or territory not supported

Error code token_exchange_failed

Details Token exchange failed: token endpoint returned status 403 Forbidden: Country, region, or territory not supported

Return to Codex to retry, switch accounts, or contact your workspace admin if access is restricted.

网友解答:
--【壹】--:

windows版本 我也是这个提示登录不了


--【贰】--:

清除掉以前的登录信息(我用的cc-switch,/logout并不会清除)
手动创建一个空的配置信息,在登陆即可


--【叁】--:

只能换节点


--【肆】--:

对,我把以前的登录信息删了,再重新登录就好了


--【伍】--:

换节点,开TUN


--【陆】--:

意思是不用通过vscode了吗?


--【柒】--:

codex不是有windows版本了吗


--【捌】--:

我之前也是用不了


--【玖】--:

开TUN


--【拾】--:

佬友,这个问题最后怎么解决的呀


--【拾壹】--:

这没啥必要啊,我用cli+kiro,一个编一个看分离也行


--【拾贰】--:

大佬,请问是指创建auth.json文件吗

LiLaoMo:

创建一个空的配置信息


--【拾叁】--: wtaynsl:

auth.json

开了tun,新建了auth.json还是不行的咋办


--【拾肆】--:

感谢大佬指点迷津


--【拾伍】--:

大锅 扶墙!


--【拾陆】--:


--【拾柒】--:

刚刚也遇到了,忘记设置代理了,codex直连的openai,重新授权时记得设置HTTPS_PROXY或者使用TUN

标签:软件开发