"Sign in With ChatGPT" functionality needs to be robust against all account types
Resolved 💬 169 comments Opened Jun 6, 2025 by bolinfest Closed Oct 16, 2025
💡 Likely answer: A maintainer (bolinfest, collaborator)
responded on this thread — see the highlighted reply below.
The bulk of the work to support this feature was implemented in these PRs:
That said, I know there are cases where users may or may not have credits, differences between Pro and Plus, etc., and we need to be sure that all edge cases are addressed and that users see appropriate messaging.
169 Comments
to save ~/.codex/auth.json
codex-get-auth-conf
<img width="759" height="539" alt="Image" src="https://github.com/user-attachments/assets/27d7ed2e-68ad-48ff-a578-e76aa46f29a7" />
This is what I currently get with codex login. A very confused LLM trying to figure out what I mean by "login" 😆
Just mentioning it in case it helps. It works great with the API key in the env.
I attempted to log in with a Plus account. I am able to use gpt-4.1, but not the default model codex-mini-latest, or the o-series models, due to the organization needing to be verified. Perhaps of note is that I've previously logged in to platform.openai.com with this account (but have not purchased credits). In the browser, the login flow completes successfully, although on the "Codex CLI wants access to your API organization" page [1], the "New organization" option [2] reports "invalid organization id" [3]; the existing default org works. Screenshots below.
Entering a prompt into Codex then results with this error:
I have not completed the "Verify Organization" workflow as that requires purchasing credits, which I would not like to do at this time.
Using
codex -m gpt-4.1DOES work.<img width="846" height="966" alt="Image" src="https://github.com/user-attachments/assets/d0236fe8-0286-4b96-9137-fba18167321d" />
<img width="841" height="966" alt="Image" src="https://github.com/user-attachments/assets/a2927ea4-5235-4640-81d9-8691da55cc12" />
<img width="844" height="966" alt="Image" src="https://github.com/user-attachments/assets/bc81f0c1-a12f-4ca2-a466-9dc800172b96" />
Same here, doesn't work for me
I get this when I try to login to ChatGPT
I only see requests to datadog being blocked by uBlock Origin.
Using Firefox 140.0.2
FWIW This flow does not degrade gracefully with a company-provided ChatGPT account that does not have access to platform.openai.com.
Codex works on the hosted Web UI (as expected) but without API access, codex-cli cannot work. The login fails with a "Authentication Error - No eligible ChatGPT account found." error on the web auth flow. This requires a Ctrl-C in the terminal.
(for the avoidance of doubt - I don't _expect_ the login flow or codex-cli to work without access to the API, but it could potentially handle the error more gracefully).
I logged in using my ChatGPT account (I am a plus subscriber) and I get the following error.
I tried to use the
--modeloption to use GPT-4.1 but it showed that I do not have enough quota.I believe I should have access to Codex as a ChatGPT Plus customer right?
I'm also Plus subscriber and getting error
"ERROR: unexpected status 400 Bad Request: {"error": {"message": "Your organization must be verified to generate reasoning summaries. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate." "type": "invalid_request_error", "param": "reasoning.summary", "code": "unsupported_value" }}"while trying to use codex in interactive mode with codex-mini-latest enabled. Are plus users limited to GPT-4.1 or something? 🤔Now I get this instead...
Seems to be on another datadog.client initiated request against the auth endpoint
https://auth.openai.com/api/accounts/authorize/continueWhen I logging, the result is:
And after:
<img width="1367" height="553" alt="Image" src="https://github.com/user-attachments/assets/9ea987de-a77e-4203-ba8f-b1a52681b655" />
Is not CODEX CLI included in the Team subscription license? Because after the login, seems that it generates an API key and start to count the cost per token in the platform.
<img width="639" height="270" alt="Image" src="https://github.com/user-attachments/assets/206b8062-03fa-465c-8040-44b6a5fded06" />
i ran that over an ssh connection. Therefore the redirection to the localhost part can never work. I know this is an edge case but if we can allow hand copy the redirect link to the console the process can then move on to the next part.
I also tried curl the redirect link on a separate terminal.
the main thread i got
the 2nd thread:
Have the same issue as @javichu148
<img width="448" height="41" alt="Image" src="https://github.com/user-attachments/assets/aecf0827-3447-41a7-aa79-f69697239ece" />
and after
<img width="1036" height="127" alt="Image" src="https://github.com/user-attachments/assets/3bf69e28-47ce-48ae-89cf-9d2f98c4ebb3" />
This some logs
<img width="1280" height="88" alt="Image" src="https://github.com/user-attachments/assets/1745d3a6-3ed5-47a6-af3e-492242f38970" />
mac system
I have plus subscription
It seems that this is a very recent problem?
https://github.com/openai/codex/issues/1481
Same issue as @laricko, plus subscription using macOS
<img width="227" height="114" alt="Image" src="https://github.com/user-attachments/assets/3e8992a2-858d-44ce-a2e2-51e4514f27c4" />
<img width="763" height="724" alt="Image" src="https://github.com/user-attachments/assets/6e0a8279-81ae-4f89-803b-3d17a7f6881e" />
Same here, on ubuntu.
Same issue as well on Windows 11 with WSL and a ChatGPT plus user, I am able to login via the OAuth flow and then am presented with
Then the same experience as some individuals in this thread
<img width="1897" height="83" alt="Image" src="https://github.com/user-attachments/assets/aeec7913-3804-4b00-a68e-411106290b87" />
Same issue as @lemessdavi, plus subscription using macOS
I have a "Team" account and tried to login. After I login succesfully, in the terminal I see:
which is quite confusing 🫤
Do I have access to Codex CLI or not?
Plus user. Mac 15.5 (24F74). Login with Apple. After logging in and clicking continue on the "Codex CLI wants access to your API organization" page, I'm redirected to: http://localhost:1455/auth/callback?code=[redacted]&scope=openid+profile+email+offline_access&state=[redacted]
And the below error:
Error response
Error code: 500
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>.
Error code explanation: 500 - Server got itself in trouble.
Was actually able to fix this by running
Install\ Certificates.commandfrom python directory.MacOS 26.0 Beta
This worked for me:
Despite 'successfully' installing, it looks like I'm unable to actually successfully use it. Similar issues to some above.
<img width="2190" height="794" alt="Image" src="https://github.com/user-attachments/assets/24f089f6-95cc-40a5-8976-daaf9caaaa65" />
I still get this error also after installing the certificates.
I am getting a screen full of these w/0.7.0:
I have a paid Pro account.
Getting "Operation timed out" with a plus account:
<img width="504" height="386" alt="Image" src="https://github.com/user-attachments/assets/89382ef2-0689-4365-a710-f960765a9744" />
I’m encountering this error after completing the authorization and granting the app access to my API key. I have a
teamsubscription and installed the CLI usingbrewError response
Error code: 500
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)>.
Error code explanation: 500 - Server got itself in trouble.
``
codex login``, page opens, login with google, input 2fa code, click into final step with defaults, and get these errorsTerminal Output:
Error on webpage:
Plus User, trying to log in from an Ubuntu server that I am ssh'ed into.
When i do codex login, it generates a URL that I then put into my dev pcs browser (not the server). Then I go through the authentication process.
After logging in it seems to want me to link with my API account, but I want to use the Plus account not my API key. Regardless, if I move forward with the API account, it errors out. If I try a new account I get this
<img width="841" height="555" alt="Image" src="https://github.com/user-attachments/assets/2184393e-4482-4519-8a17-1a485d6bea5b" />
If I try my existing account I get this
<img width="570" height="572" alt="Image" src="https://github.com/user-attachments/assets/2dcc8972-cad7-4eb1-869a-3f222132432b" />
Goal is to login from my server (since thats where I will be running codex) and to use my Plus account not my API key.
Pro Account
API Usage Tier 1 (with positive balance)
Codex 0.7.0 installed with brew on MacOS 15.5
codex loginopens browser and I successfully log in:<img width="317" height="200" alt="Image" src="https://github.com/user-attachments/assets/f88750fd-7b57-4bcf-b6c3-dc0ed545a3ef" />
The CLI says otherwise:
<img width="466" height="36" alt="Image" src="https://github.com/user-attachments/assets/8c0ec126-fff2-4c8c-9389-7f830abf64d0" />
Attempting any chat within the TUI:
<img width="917" height="198" alt="Image" src="https://github.com/user-attachments/assets/7b498d70-b2c5-4dfb-b0c6-15c296559b32" />
API key is getting generated in my API account:
<img width="789" height="143" alt="Image" src="https://github.com/user-attachments/assets/be5d6162-75e0-459a-b37a-3c9dce1fdde9" />
same for me
Plus subscriber. But Codex still wants to use additional paid API calls.
I have this same issue. Organization verified and with balance. It fails if I try to do use the login.
<img width="2190" height="794" alt="Image" src="https://github.com/user-attachments/assets/dbfee123-762f-48a8-904d-47a6ede27e9f" />
So if you have a Pro account, is the CLI suppose to use that instead of an API organization/project and balance?
I’ve had no luck just using my Pro account. I get redirect to pick my organization and project on new sign-ins.
It's trying to hit a localhost url
http://localhost:1455/auth/callbackYep, plus user, can't log in via
codex login, gets to a "Codex CLI wants access to your API organization" page, click Continue, get localhost responseI'm using Google OAuth to authenticate, my subscription is via Google Play
It would be nice to get some guidance on whether Teams accounts are eligible or not.
Even though I am a Plus user when I authenticate with
codex loginmy request are charged through API<img width="411" height="259" alt="Image" src="https://github.com/user-attachments/assets/4cc7b49f-3da1-42e5-a04b-22f8553a295a" />
If you have
OPENAI_API_KEYin your environment variable, codex CLI might use that. Remove that or unset it.Which environment variables you are referring to I don't have any in terminal environmental variables or in he repository. Codex cli is intalled via brew. When I enter credentials I see Codex CLI wants access to your API organization screen.
<img width="486" height="213" alt="Image" src="https://github.com/user-attachments/assets/1b216b1e-c497-4487-987d-65ea26c66574" />
I am also a Teams-User. The Readme says
but logging in returns an authentication error
codex loginis starting a local login server on a headless server without a browser.curl http://localhost:1455/auth/callback?code=..gives:Error logging in: login_with_chatgpt subprocess failed:
Error response
Error code: 400
Message: State parameter mismatch.
Error code explanation: 400 - Bad request syntax or unsupported method.
There should be a prompt to paste a token.
Is this P0 being worked on? Is this an internal only effort, or are public contributions allowed?
This flow is broken. Running
codex logindoesn't use my ChatGPT Plus Account. It seems to connect to my API account and that too doesn't work and shows this error message.Does it used to work and broke recently? If yes, I can take a look and see what's going wrong.
Replying to my previous message, after running
/Applications/Python 3.x/Install Certificates.command, the SSL error is gone. Now it says that I need to wait 7 days to redeem credits. So just need to wait for 7 more days to use codex CLI.When trying to login with CLI as a Plus user I get below error, what could be the issue? Codex works well without any problem from Web
⚠ Insufficient quota: You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs:
https://platform.openai.com/docs/guides/error-codes/api-errors. Manage or purchase credits at https://platform.openai.com/account/billing.
Okay! For me this was a Mac specific Python 3 issue where Python wasn't finding the certificate authority (CA) bundle. If you're using Homebrew Python, then:
That builds Python against the latest OpenSSL and links to the correct CA certs.
Other Python installs (e.g. from python.org, pyenv) will need different fixes, but the underlying issue is likely the same: Python can't find valid certificates so HTTPS fails
---
Am I right in thinking the Python version is being rebuilt in Rust, so this particular issue will go away?
And now it wants me to verify my "organisation" on a personal account, using biometrics processed by a third party. No thank you. I think I am going to wait for a while, tihs is a cool concept, and I look forward to trying it out, but it's not at the UX feedback stage for ChatGPT users yet
I was faced with this issue
I ran
/Applications/Python 3.<your‑version>/Install\ Certificates.commandon my terminal and it solved my issue :)I am a Plus subscriber and I get
What could be the reason? Thank you in advance
Plus user accessing a cloud Ubuntu server via SSH on Windows. Plus user, so running :codex login: and I get a link, Open it in my Windows browser, authenticate, and it tries to send the token to localhost.. What we have here...is a failure to communicate.
Others return the token in the browser and you paste it into the CLI, and away you go. I'm just sitting going nowhere with a "xdg-open: no method available for opening <big url here>" message.
@jimCresswell I'm in the same situation. I shouldn't have to verify my organization by providing a government ID with photo to a third-party especially since I'm just looking to try this out right now. I wanted to comment so you know you're not alone in that feeling. I've found and am monitoring several other related issues on the repo here that having growing comments sharing they're running into this issue. With that I think this is just a snag in the auth flow and logic right now so my guess is it will get sorted out as the tool progresses and matures.
This is bizarre. As a small business owner I have to upload my ID to Persona instead of just providing certificate of registration/company details. I guess no codex for us then :/
Hi all, thanks for continuing to post examples on this thread. Admittedly, things like auth and billing are sensitive pieces of the system, so we have to get them right and they can only reasonably get done by folks working on our side. I am not at liberty to share specifics, but this has been flagged as a hi-pri issue for Codex CLI internally and there are folks working it.
I'm excited to share more when I can. In the meantime, if you are an API user, for sure using a valid
OPENAI_API_KEYenvironment variable to authenticate is the most reliable option. For those of you using that solution, FYI, you can store the value in$CODEX_HOME/.envor$(pwd)/.envnow:https://github.com/openai/codex/pull/1653
@bolinfest
Is there a version/workaround that is working on a headless server? This is a CLI tool that requires a desktop/browser environment. Could you provide the steps if there are any?
@clarkio thank you for the solidarity!
Thanks for the update @bolinfest !
I managed to login by port forwarding SSH. Now as Plus user I am getting:
BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected ││before completion: You exceeded your current quota, please check your plan and │
│billing details. For more information on this error, read the docs: │
│https://platform.openai.com/docs/guides/error-codes/api-errors.; retrying 1/10 in │
│203ms…" })
with o3
│BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected█│o3│before completion: Your organization must be verified to use the model
. █││Please go to: https://platform.openai.com/settings/organization/general and click █│
│on Verify Organization. If you just verified, it can take up to 15 minutes for █│
│access to propagate.; retrying 1/10 in 207ms…" })
<img width="813" height="147" alt="Image" src="https://github.com/user-attachments/assets/3192ca37-c3e2-4aef-83d8-dbbbdd70903b" /> sorry guys. you have so many bugs, that it's nonsense to dig deeper.
When Logging in with plus account:
When I try to login I get this error:
The error I encountered when following the instruction in README.MD:
When I'm checking the login status:
version:
When i try using the login command i just get a prompt for an api key:
**codex login status
Missing OpenAI API key.
Set the environment variable OPENAI_API_KEY and re-run this command.**
I get this error on my Pro account:
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1122)>.
with
codex loginafter logging in:first
<img width="556" height="634" alt="Image" src="https://github.com/user-attachments/assets/ce287cbc-8fd8-49ca-8d14-5e82bddcaa13" />
then when continue:
<img width="428" height="666" alt="Image" src="https://github.com/user-attachments/assets/f91801ac-40eb-4e31-8af7-34c11a187fce" />
quite bothersom as a new plus memeber. i'm poor so $20 is already too much for me but i bit the bullet. Now running into this nonsense. blegh!
hope it's fixed soon.
Unfortunately
loginfeature just encapsulates API key creation using your ChatGPT account. This becomes obvious if you look at the description of https://github.com/openai/codex/pull/1212But current version of README.MD states that rather unclearly for some reason.
Trying to
codex loginwith my ChatGPT credentials results in the website asking me to link to an API-level organization.I was hoping to avoid that and use my ChatGPT subscription instead, similar to how Claude can be signed into using a "normal" Claude subscription. Is that not possible with Codex? With Claude, using a normal subscription is much more economical than using an API key. Was hoping the same might be true here.
Oh, also: I'm trying to do
codex loginon a headless dev box, and the auth flow tries to redirect tolocalhost:1455which obviously doesn't work. Is this also not possible?Looks like I'm going be sticking with Claude for a while longer yet. Was hoping to compare it to GPT-5.
You can auth on your laptop, then copy the auth to your server.
(i.e scp ~/.codex/auth.json youruser@192.1.2.3:~/.codex/auth.json)
@aivajoe please try 0.16.0 or later: today was a big release
I hear you on the problems with using it on a headless box. We're moving a bunch of things around in the docs right now, but the current workaround is to copy/
scp~/.codex/auth.jsonfrom your local machine (assuming you successfully got through the login flow locally) to the headless box where you want to use the CLI.I logged in via my pro account but I can still see that API credits were being deducted from my API account. FYI this is my first time installing codex on the machine I am working on. I am using windows 11
getting this
<img width="2162" height="380" alt="Image" src="https://github.com/user-attachments/assets/21e95259-4bfd-478e-849c-27501a7c279f" />
@siddhantparadox For now, you need to explicitly _unset_
OPENAI_API_KEYwhen runningcodex, so considerOPENAI_API_KEY= codexRoute Error (400 ): {
"error": {
"message": "No eligible ChatGPT workspaces found.",
"type": "invalid_request_error",
"param": null,
"code": "chatgpt_account_missing"
}
}
Should login by chatGPT account for teams, work? I see contradictory information.
1) "Who can use the new sign-in flow?
Free, Plus, and Pro ChatGPT accounts.
Enterprise, Edu, and Team workspaces are excluded for now." -> https://help.openai.com/en/articles/11381614-codex-cli-and-sign-in-with-chatgpt
but
2) "After you run codex select Sign in with ChatGPT. You'll need a Plus, Pro, or Team ChatGPT account, and will get access to our latest models, including gpt-5, at no extra cost to your plan." -> https://github.com/openai/codex
Which is then?
Having the same issue smh -_-
UPDATE: same error still occurring on
v0.19.0as well.codex
v0.16.0, attempting to authorize a Team account, also seeing the "No eligible ChatGPT workspaces found" 400 error:Tryin to log in with Team Account but error:
<img width="424" height="417" alt="Image" src="https://github.com/user-attachments/assets/db9c15e4-df48-441f-9809-ac90a3637fda" />
Same here with a team account. Oh boy, the impatience when something gets released but doesn't work directly. 😂
MacOS 15.6
In Firefox, Chrome, and Safari.
Thank you @bolinfest, this worked for me!
<img width="484" height="389" alt="Image" src="https://github.com/user-attachments/assets/1ffe5b03-ff60-4c85-b271-d08184aab3e2" />
I get this one after writing "codex login" on codex 0.16.0 and proceeding to login on auth.openai.com with my Google account
Can you elaborate on how to do it? I'm having the same problems with the plus account type, it's saying I have an insufficient quota. I have max spending set to 0, and I should be able to use it with a plus account right?
<img width="362" height="78" alt="Image" src="https://github.com/user-attachments/assets/5df3cbff-55a0-4d9c-bb7a-aef48ba1a206" />
I run
codex loginand it gives me this:I run
codex --helpand it says that I should actually be using--logininstead oflogin:<img width="1356" height="497" alt="Image" src="https://github.com/user-attachments/assets/9299314e-30c2-439c-bb42-c1794f489dac" />
I run
codex --loginI get:<img width="1397" height="95" alt="Image" src="https://github.com/user-attachments/assets/9eac1c10-8365-45bd-90d0-eea068a8322d" />
no api key is in env
i do codex login - it goes to openai , sign in , accept.
back in terminal it says logged in but looks like codex crashed.
launch codex again, looks like working
but i enter any simple prompt, like hi. and it says
🖐 stream disconnected before completion: stream closed before response.completed
tried login several times, not working
chatgpt plus user
using my google account which is a team admin account - tried with different browsers, hard reload etc - can log in normally to the admin panel but not working with codex get this :
<img width="576" height="459" alt="Image" src="https://github.com/user-attachments/assets/7ff3c10c-d2ec-48aa-a77b-493ea68c9e5c" />
and also managed to get this :
<img width="1600" height="1237" alt="Image" src="https://github.com/user-attachments/assets/2a176999-9c5f-4a08-92e8-b741a4fdda62" />
Things are getting quite weird on my end.
The login was successful, when I am under user's home directory, its working fine, but when I go into any specific project directory, it keeps complaining "Incorrect API key provided"
<img width="3090" height="1038" alt="Image" src="https://github.com/user-attachments/assets/f3604993-5782-4bb7-ad68-92b0c552bfbf" />
Edit: I have never created such api key so I am really confused as to whats going on here
New installation with
npm install -g @openai/codex.Tried
codex loginusing my ChatGPT Plus account, but encountered the following error message on terminal after successful login in browser:Both MacOS and Ubuntu have the same issue.
Login plus user and: system
⚠ Insufficient quota: You exceeded your current quota, please check your plan and billing details. For more
information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors. Manage or
purchase credits at https://platform.openai.com/account/billing.
Hi I tried with gpt plan.
codex -m gpt-4.1
and I am getting
<img width="555" height="97" alt="Image" src="https://github.com/user-attachments/assets/8dc0542f-792c-451c-8cf8-598ab47a2ce2" />
it seems this only work with gpt-5
I was able to authenticate a team account via
codex login, but then it selects the free plan, and not my team workspace...Same issue with dvaldivia
Have logged in using the team plan and i get the following message.
<img width="993" height="185" alt="Image" src="https://github.com/user-attachments/assets/f5dc4592-784b-450a-913d-47d5f90c869d" />
Is the CLI included in team plan? If so how does the billing for the same work?
I'm getting
Hi,
I am having an issue., When I installed Codex I get this:
<img width="1104" height="356" alt="Image" src="https://github.com/user-attachments/assets/20ff6bd2-200f-41cf-8d15-63027e6ed362" />
I am running on Windows 11 Pro
Using
codex --loginand selectingSign in with ChatGPTgives the following error on our ChatGPT Teams plan with SSO via Entra ID:<img width="451" height="427" alt="Image" src="https://github.com/user-attachments/assets/7ff50967-1fd8-48a5-8f7f-217b39d28f32" />
Codex Version: 0.19.0
I also have a team account through my employer and getting this error while trying to login:
I should mention that I have MFA enabled and can login to regular ChatGPT on Chrome just fine with the team account but the login fails with the above error when trying to login to codex CLI.
I have ChatGPT Pro and I also cannot login (neither codex normal flow and
codex loginworked), I use MFA.browser:
Tried re-install with cache flush and it didn't help.
Team user here
Route Error (400 ): {
"error": {
"message": "No eligible ChatGPT workspaces found.",
"type": "invalid_request_error",
"param": null,
"code": "chatgpt_account_missing"
}
}
is this somthing i need to ask my company to create?
It basically routes to OpenAI when want to use chat and it can't find the team orgs there... not sure if this intentional or not but for certain is broken.
how to approve CODEX CLI on cluster with H100 / H200 GPU?
Plus user can't login
Bash cmd
Login using Google
Terminal response
Browser response
I got the same error. I have chatGPT Team account.
Yes same exact error:
Error response
Error code: 500
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)>.
Error code explanation: 500 - Server got itself in trouble.
Getting the same issue. According to docs, the codex CLI is included with team plan. when I run /status, it thinks I am on the Free Plan:
👤 Account
• Signed in with ChatGPT
• Login: <MY_WORK_EMAIL>
• Plan: Free
Went to use the API key and got this response:
hey
🖐 unexpected status 400 Bad Request: {
"error": {
"message": "Your organization must be verified to use the model 'gpt-5'. Please go to: https://platform.openai.com/settings/organization/general and click on Verify Organization. If you just verified, it can take up to 15 minutes for access to propagate.",
"type": "invalid_request_error",
"param": "model",
"code": "unsupported_value"
}
}
I verified using the link. That took a few minutes to verify, and then another few minutes for the CLI to work with the API. Just spun for a few minutes before working.
I tried the login with ChatGPT after that, and I am still getting the error that I am on the free plan.
Seems like some of this is launch troubles. ChatGPT webapp is not showing me GPT5. It is stuck on 4o, but the mac app and the phone app are giving me GPT5. 🤷♂️
Maybe my case is not common, I have plus and pro plan and cannot login with my account (both plan is attached to same google account). The error message in browser auth page ask me to contact help center. any fix?
<img width="1148" height="588" alt="Image" src="https://github.com/user-attachments/assets/44a08d22-20e6-4e97-b1bf-5aa000263b93" />
I am a plus user and its showing this.
Getting an error when running this in github codespaces.
Steps to reproduce:
<img width="2732" height="1640" alt="Image" src="https://github.com/user-attachments/assets/db4f5f89-786c-48d6-94b5-492ca6e41e30" />
Here is the comand and terminal output:
@flowgeniusmz ➜ /workspaces/lendix_v2 (main) $ codex login
Starting local login server on http://localhost:1455
. If your browser did not open, navigate to this URL to authenticate:
https://auth.openai.com/oauth/authorize?response_type=code&client_id=app_EMoamEEZ73f0CkXaXp7hrann&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=AWy3d4hhvrNLzptAOQyHYMyWBuAaVJjnGCcrfqhTN8s&code_challenge_method=S256&id_token_add_organizations=true&codex_cli_simplified_flow=true&state=c7b7084cff0786f205d85869315727da61b3b3b1a9fe7cd10fe70b9691b72e48
Error logging in: login_with_chatgpt subprocess failed:
Don't know if this is intentional, but I cannot use Codex without setting up a new organization. When logging in (I have now 2 orgs), I got
Same here. I'm guessing codex login is taking my personal account intead of team account and don't know how to force CLI to use my team account.
I have a plus plan and it wont allow me login
In browser auth window I see this error
I am trying to log in with Google SSO
i have plus account and get this problem
⚠ Insufficient quota: You exceeded your current quota, please check your plan and billing details. For more information on this error,read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors. Manage or purchase credits at
https://platform.openai.com/account/billing.
having the exact same issue, signed in with a plus subscription.
I have Plus account. I could log in to codex cli, but getting insufficient quota error. I tried with gpt-4o-mini and gpt-5
https://platform.openai.com/docs/guides/error-codes/api-errors. Manage or purchase credits at https://platform.openai.com/account/billing.
<img width="1893" height="564" alt="Image" src="https://github.com/user-attachments/assets/142f454f-3cba-4fb2-82b6-f156b03a3639" />
I'm using WSL with codex installed on the ubuntu side. "Finish signing in via your browser" is just stuck, it'll never be able to open my browser on Windows.
Other CLI solve this by providing a link for me to click on the windows side and pasting in the code after I sign in.
Without this workaround, codex is not possible to use with my ChatGPT account with WSL.
EDIT: Update: I hit escape and I see this:
<img width="1428" height="362" alt="Image" src="https://github.com/user-attachments/assets/31e07d7b-ead2-4e53-86b1-fad4a000d77b" />
But there's no URL to navigate to.
locahost:1455 just 404's on its own
<img width="1449" height="482" alt="Image" src="https://github.com/user-attachments/assets/8faa03b7-9a77-4d1b-b52b-d98e5ec742bf" />
Yeah the root issue it's it is trying to use TLS on localhost, thus failing. @bolinfest any roadmap to fix it?
I am on the pro plan, using Windows 11. After running
npm install -g @openai/codex, andcodex, it showed using the "Sign in with ChatGPT", option, which I followed and keep the default settings.Then I tried
/modelto switch to gpt-5. But whatever prompt I type, it just shows "insufficient quota". Even with a simplecodex loginit shows the same:<img width="1938" height="617" alt="Image" src="https://github.com/user-attachments/assets/e8f30303-b91f-4fcc-b0cb-050ac8ec9140" />
I'm on a team plan. Attempting to log in takes me to a login screen as one would expect, then 2FA, but when I enter the code, regardless of whether I use authenticator or email, I get an error.
To be clear, I'm on a paid plan. Codex web works, chatGPT works and shows GPT-5 and GPT-5 Thinking.
<img width="476" height="520" alt="Image" src="https://github.com/user-attachments/assets/b61a722c-a1d0-4a64-82a3-29d20bd7d526" />
<img width="489" height="366" alt="Image" src="https://github.com/user-attachments/assets/dccffb47-ce13-46e2-9100-fcb62df134dc" />
I'm on the plus subscription but whenever I try to do anything it does this
I'm logged in also
<img width="562" height="251" alt="Image" src="https://github.com/user-attachments/assets/43fdaa58-f785-43a5-8d85-bd11e531c1f3" />
<img width="1086" height="237" alt="Image" src="https://github.com/user-attachments/assets/51c7bb35-63e3-4285-ae87-6020f15757c1" />
I have a plus account and a personal organization on the same email, when I login through the CLI it seems to be combining the two paradigms, where it recognizes my plus subscription, but is still relating this to usage-based billing (credits).
Output:
Sorry, your subscription must be active for more than 7 days to redeem credits.
More info: https://help.openai.com/en/articles/11381614
Please try again on 8/11/2025 12:51:39 PM
EDIT:
Seems to be a windows bug, everything works as expected on WSL.
Codex CLI “Sign in with ChatGPT” still bills my Platform API on Windows
When I use Codex CLI on Windows and pick “Sign in with ChatGPT”, it creates a “Codex CLI (auto-generated)” API key in my Platform account and my usage is billed. I expected ChatGPT sign-in to work without a billable Platform key (on my Mac it previously seemed not to charge).
Is this expected behavior, or a Windows-specific bug? If ChatGPT sign-in should avoid Platform billing, how can I fix this?
We're tracking codex login on Windows as part of https://github.com/openai/codex/issues/2000
There are some workarounds for SSL issues in https://github.com/openai/codex/issues/2044 while we're working on the full fix.
<img width="810" height="422" alt="Image" src="https://github.com/user-attachments/assets/74e7d3b2-80a4-4523-a14b-8da0ba405823" />
<img width="518" height="123" alt="Image" src="https://github.com/user-attachments/assets/02ae1482-78c2-4394-a4a9-1b3161e37275" />
not sure what is wrong
Route Error (500 ): {
"error": {
"message": "The server had an error processing your request. Sorry about that! You can retry your request, or contact us through our help center at help.openai.com if you keep seeing this error. (Please include the request ID 04909000fcf4e69c66d12098d6e63c7a in your email.)",
"type": "server_error",
"param": null,
"code": null
}
}
<img width="1387" height="622" alt="Image" src="https://github.com/user-attachments/assets/f90ca7c1-f40d-4a81-aa88-3fabe786a935" />
I'm also getting this issue.
Trying to sign in with PLus account on WSL in windows:
<img width="1026" height="267" alt="Image" src="https://github.com/user-attachments/assets/16137c5d-c6c8-4103-8b4b-0586f5e39cef"/>
(shows 2 URLS after that)
Clicked through to the URL, entered the code. Redirected to this...
<img width="894" height="564" alt="Image" src="https://github.com/user-attachments/assets/4b34119b-7d91-4eb2-84fd-aa4621f35758" />
Checked http://localhost:1455 and site can't be reached.
This fixed the issue for me...
'Install WSL utilities and set the browser bridge:
Re-run codex login. It will open your Windows default browser via wslview and (usually) the localhost callback reaches the WSL listener through WSL’s localhost forwarding.
I am getting an issue as well with the login
<img width="1115" height="346" alt="Image" src="https://github.com/user-attachments/assets/cf040b16-c3dc-4905-814d-1826112d3f7e" />
I have installed python with conda. I have it in the PATH C:\Users\simoo\anaconda3
I also tried to login through Ubuntu which doesn't give this error but the terminal cannot open a browser to finish the login process.
Try my solution above which allowed the browser to open in Ubuntu (in wsl)
When I tried running the sign in in windows i was getting 'python not found'
📜 Tutorial: Install and Configure Codex CLI on WSL and Windows 11
1️⃣ Install WSL on Windows 11
Right-click on the Start menu → Windows PowerShell (Admin) or Terminal (Admin).
``
powershell
``wsl --install
By default, this installs Ubuntu.
---
2️⃣ Install required dependencies in WSL
In your Ubuntu (WSL) terminal:
---
3️⃣ Install Codex CLI in WSL
Still inside Ubuntu (WSL):
Verify the installation:
---
4️⃣ Configure browser redirection with
wslviewThis step allows Codex to open your Windows default browser from WSL:
---
5️⃣ Log in to Codex inside WSL
In Ubuntu:
wslview.~/.codexfolder in WSL withauth.jsonand other files.---
6️⃣ Create the
.codexfolder on WindowsFrom Ubuntu:
⚠️ Replace
<YourWindowsUsername>with your actual Windows user folder name inC:\Users\.---
7️⃣ Copy authentication files from WSL to Windows
Still in Ubuntu:
---
8️⃣ Install Codex CLI on Windows
Open PowerShell (not WSL):
---
9️⃣ Test Codex on Windows
In PowerShell:
auth.jsonis located here:---
✅ You now have Codex CLI installed and usable in both WSL and native Windows.
After logging in sucessfully with my pro-Account I get:
stream disconnected before completion: Project
proj_ABC does not havegpt-5`access to model
It's working now!
codex login lets me choose Team vs Personal workspace now, which was not the case before.
As of today after updating to version
0.20.0I was able to successfully log in via OAuth with both a personal and work/team account without having to verify my org by sharing a government ID.For folks just catching up on this the last version I tested was <=
0.5.0. In those versions login would fail for me. After some digging into errors I found a message regarding verifying the organization associated to my account (this happened for both personal and work/team accounts). In order to do that I would have to upload/share a government ID via a third-party partner and I did not believe that should be necessary so I stopped there. Thankfully this is no longer the case.Thanks @bolinfest and team for your hard work on this particular issue.
cc: @jimCresswell
I managed to get it to work pretty quickly, after following the latest instructions.
It still has problems sometimes to access the work directory (I'm working on WSL) but usually I can find a workaround (planning to try https://github.com/openai/codex/issues/1243#issuecomment-3174120700 to see if it works).
My problem is that when I ask it to apply some modifications to the code, it will suddenly stop with an error message:
<img width="625" height="90" alt="Image" src="https://github.com/user-attachments/assets/48ade0f1-ba8e-4d5e-bf1b-1a437caedfe5" />
Needless to say, "trying again after x seconds" does nothing.
Any idea on how to fix this?
<img width="495" height="263" alt="Image" src="https://github.com/user-attachments/assets/92475bc5-3fdc-41a5-9d09-48fbbce7bc14" />
I merely get this when trying to login, and this doesn't happen with any other tool that uses a login flow like this (i.e Claude Code)
<img width="954" height="486" alt="Image" src="https://github.com/user-attachments/assets/88f655bf-2f76-48d2-b252-5cf9a1637084" />
It still doesn't work
Reply to https://github.com/openai/codex/issues/1243#issuecomment-3174120700:
I followed this and I can say it works - when it comes to login and starting a session, however for some reason it will have difficulty accessing the files - both from WSL and Windows Command Prompt.
Specifically from cmd:
<img width="589" height="547" alt="Image" src="https://github.com/user-attachments/assets/f54a8d74-a904-4ca5-96c9-9cb699d008e2" />
note that I am using the latest version of codex
codex-cli 0.21.0while from ubuntu (WSL) it is a bit random, it will sometime be able to see the content but it is not guaranteed.
I love you. Spent hours trying various approaches, then stumbled upon your beautiful solution. Uggghh, where's your TIP jar?
I have this error on macos after logging in
Error response
Error code: 500
Message: Token exchange failed: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1028)>.
Error code explanation: 500 - Server got itself in trouble.
<img width="588" height="388" alt="Image" src="https://github.com/user-attachments/assets/934d299b-bff8-44c5-9e70-61d6048a0ae7" />
codex login Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut under “Settings > Apps > Advanced app settings > App execution aliases”.I had to set a symbolic link:
C:\Users\Name\AppData\Local\Programs\Python\Python313>
mklink python3.exe python.exeSymbolic link created for python3.exe <<===>> python.exe
Same issue here. I also get it when i run "Codex login"
I want to log in with ChatGPT on a remote server, but the callback is set to localhost. So the callback token won't be sent to the remote server and login failed when I open a browser on my local PC.
@jiangying000 please see https://github.com/openai/codex?tab=readme-ov-file#connecting-on-a-headless-machine
<img width="524" height="602" alt="Image" src="https://github.com/user-attachments/assets/5ebd2de2-2cae-45e7-a5b9-89bd1f0c421e" />
I am unable to log in to Codex CLI using my ChatGPT Edu account. I receive the error as screenshotted above. I have been searching for information regarding whether Codex CLI supports this login method, but I have not been able to find a definitive answer. Could you please clarify if logging in with a ChatGPT Edu account is supported?
I am unable to login to the Codex account flow because my Pro level account was set up years ago using my @gatech.edu account, which now routes to the institutional login. This flow behavior does not occur when I login to my account normally on the front-end flow of chatgpt. This has prevented me from using codex cli entirely as I cannot justify paying more out of pocket as a Pro user. I am also unable to change my email account per OpenAI policy. As a result I am fully stuck unable to try codex
When attempting to log in to a remote server via SSH using my personal ChatGPT Plus account, the authentication process fails. The error occurs after pasting the provided URL into my local browser.
<img width="887" height="375" alt="Image" src="https://github.com/user-attachments/assets/199953d9-c5c6-4f43-bb76-deab386dfd06" />
Using 'brew install codex' on MacOS.
Running 'codex' gives:
Missing OpenAI API key.
Set the environment variable OPENAI_API_KEY and re-run this command.
I want to use my ChatGPT login and there appears no way to avoid using an API key.
Have tried deleting all config files, tried 'codex login', no good.
No way to force start a ChatGPT login process.
EDIT: Uninstalled with brew and just used npm, worked fine. So the issue is with Brew installs only.
EDIT 2: The issue here is clearly that the Brew version is old. Which is what it is... but the main page for codex lists it as a viable installation route. For a fast moving project like this I don't think the brew install should be recommended.
@olinorwell it would be extremely helpful if you included the output of
codex --versionandwhich -a codexwith your report.https://github.com/openai/codex?tab=readme-ov-file#connecting-on-a-headless-machine
these are two different tools? I also have this error using the native codex(rust) vs the typescript version. If chatgpt auth is supported currently in the native rust tool please let me know, otherwise I'll assume the rust fork isn't as a sufficient replacement.
@drunknbass it should be the same CLI from both npm and brew. It's possible you weren't running the right command to update: it should be
brew upgrade codexand at the moment, the latest is 0.23.0.brew is slightly better than npm in that it installs shell completions as part of the installation process.
I'm not sure if this is a correct place, but it seems like there is an issue with current login system which has significant impact on users on Team plan:
https://github.com/openai/codex/issues/2330
In short, I'm on Team, paid plan but
codexis telling me it's free plan. Several users are reporting same issue. I can try to investigate it by myself, but I don't really know where to start debugging.@bolinfest can you share some thoughts so I can push it forward anyhow?
I actually installed it via npm as mentioned here
https://github.com/openai/codex/discussions/1174
os error 10013
<img width="1482" height="579" alt="Image" src="https://github.com/user-attachments/assets/f45645da-7e9c-48aa-9356-4afd64650a40" />
<img width="557" height="1220" alt="Image" src="https://github.com/user-attachments/assets/a44bf503-7c7b-499c-94b3-fa962181f919" />
See https://www.reddit.com/r/codex_tips/comments/1n0szue/fix_codex_cli_sign_in_with_chatgpt_fails_on/
This works, thanks.
I want to log in to two different accounts to use for 2 different code bases for 2 different organizations. I am logged in to one account for a code base. How do I log in to another code base?
I tried adding a profile say
abcand then I did this:codex --profile abc login. I got this:Token exchange error: error sending request for url (https://auth.openai.com/oauth/token)Edit: I logged out of my initial logged in account and looks like I cannot even log back in to either account right now. Using codex online works fine on both.
codex logoutI'm also unable to login now with my ChatGPT account and I'm receiving this error:
Token exchange error: error sending request for url (https://auth.openai.com/oauth/token)Previously I was able to successfully use codex but no more, might have to switch back to claude.
---
EDIT:
I have found more error logs by first letting it fail with the first error after signing into OpenAI.com:
<img width="1554" height="86" alt="Image" src="https://github.com/user-attachments/assets/361a9142-a560-4815-862a-1566d4bc4143" />
I then proceeded to click on the link in the codex terminal:
<img width="1548" height="244" alt="Image" src="https://github.com/user-attachments/assets/d4ebd3e4-65ba-41fc-9d09-ee825f3f6974" />
opens:
<img width="980" height="437" alt="Image" src="https://github.com/user-attachments/assets/7efe810d-2afa-4d7d-b141-423bdc72846b" />
<img width="1019" height="645" alt="Image" src="https://github.com/user-attachments/assets/8b40d952-e97e-4202-8cba-ec538e9d8016" />
Doesn't help for me, getting the same error as @jerlendds
What's more I can no longer use my API key so currently there's no way for me to use codex at all.
Same issues as the rest above (Authentication Error. An error occurred during authentication (unknown_error). Please try again.)
Linking #3409 – I've resolved the issue on my end by changing the DNS provider. Maybe this advice will work for someone as well.
I can confirm changing my DNS provider in
/etc/resolv.confto cloudflare1.1.1.1,1.1.1.2workedhttps://community.openai.com/t/introducing-the-codex-ide-extension/1354930/13
Having issues with getting codex to login via docker dev container (via VS Code). I am using my enterprise login and have the below allowlist of domains (in firewall):
Below is the issue I am seeing via the dev tools, do I also have to allow datadog or something else?
<img width="2938" height="1496" alt="Image" src="https://github.com/user-attachments/assets/72bc4c7a-75b4-4f2a-a7a3-f61a324f0bce" />
This issue got very large and contains a lot of problems that were already resolved. If you are still having issues signing in please file a new issue.