"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.

View original on GitHub ↗

169 Comments

pedrobrantes · 1 year ago

to save ~/.codex/auth.json

npx @brantes/codex-get-auth-conf 

codex-get-auth-conf

oana-ffg · 1 year ago

<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.

vtomnet · 1 year ago

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.

: 10:11:28 ~ ; type codex
codex is /opt/homebrew/bin/codex
: 10:11:30 ~ ; 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_XXXXXXXXXXXXXXXXXXXXXXXX&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=XXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX&code_challenge_method=S256&id_token_add_organizations=true&state=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Credit redemption request failed: HTTP Error 400: Bad Request
Successfully logged in
: 10:12:13 ~ ; codex --version
codex-cli 0.2.0

Entering a prompt into Codex then results with this 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" }}

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.1 DOES 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" />

JosTechS · 1 year ago
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. `` : 10:11:28 ~ ; type codex codex is /opt/homebrew/bin/codex : 10:11:30 ~ ; 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_XXXXXXXXXXXXXXXXXXXXXXXX&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=XXXXXXXXXXXXXXXXXXXXXX-XXXXXXXXXXXXXXXXXXXX&code_challenge_method=S256&id_token_add_organizations=true&state=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Credit redemption request failed: HTTP Error 400: Bad Request Successfully logged in : 10:12:13 ~ ; codex --version codex-cli 0.2.0 ` Entering a prompt into Codex then results with this 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" }} ` 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.1` DOES work. <img alt="Image" width="846" height="966" src="https://private-user-images.githubusercontent.com/129220270/462944646-d0236fe8-0286-4b96-9137-fba18167321d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTE4Mjk4NDUsIm5iZiI6MTc1MTgyOTU0NSwicGF0aCI6Ii8xMjkyMjAyNzAvNDYyOTQ0NjQ2LWQwMjM2ZmU4LTAyODYtNGI5Ni05MTM3LWZiYTE4MTY3MzIxZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDcwNlQxOTE5MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNTk1YmVlMTY1OGViZDY4Nzk1YjMxYWQwOTAwZDc2OGEyOTM3ZTg4ZmRiOWIwMDc2N2M4NTdiMTNiZjc4MTkxJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.WlL0Pn-N0sHBZBJZI-ZQCPw-wdvm80fppEdojqT-juc"> <img alt="Image" width="841" height="966" src="https://private-user-images.githubusercontent.com/129220270/462944662-a2927ea4-5235-4640-81d9-8691da55cc12.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTE4Mjk4NDUsIm5iZiI6MTc1MTgyOTU0NSwicGF0aCI6Ii8xMjkyMjAyNzAvNDYyOTQ0NjYyLWEyOTI3ZWE0LTUyMzUtNDY0MC04MWQ5LTg2OTFkYTU1Y2MxMi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDcwNlQxOTE5MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0yMWIxOThhODgzOTc4ZjQ3MTVmNzZkMjJkMTgxNjI0YmU0ZjhlYjQ4NDE5NmRiYzhjNTkyNTdiM2UwM2Q2ZDNiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.MYsIrTPX_csBkzLgf-98K0aorFCtlSqKELFJL12v1qs"> <img alt="Image" width="844" height="966" src="https://private-user-images.githubusercontent.com/129220270/462944672-bc81f0c1-a12f-4ca2-a466-9dc800172b96.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTE4Mjk4NDUsIm5iZiI6MTc1MTgyOTU0NSwicGF0aCI6Ii8xMjkyMjAyNzAvNDYyOTQ0NjcyLWJjODFmMGMxLWExMmYtNGNhMi1hNDY2LTlkYzgwMDE3MmI5Ni5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwNzA2JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDcwNlQxOTE5MDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1iYTkxMWJjMzY0ZTQwZjlhY2I5MjRkYTQ3ZmFlMjk3MDZiYmNkOTU4MmY4ZTNiNTkyNjJjNTdjZGNmNzcyNzg4JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.NMPh6wxuxliJE05cOsWXXLXfwPtF9OwE75DfNT74ISQ">

Same here, doesn't work for me

Frulfump · 1 year ago

I get this when I try to login to ChatGPT

Route Error (500 ): "The operation is insecure."

I only see requests to datadog being blocked by uBlock Origin.
Using Firefox 140.0.2

skenmy · 1 year ago

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).

juli1 · 1 year ago

I logged in using my ChatGPT account (I am a plus subscriber) and I get the following error.

Credit redemption request failed: 400 Bad Request
The model "codex-mini-latest" does not appear in the list of models available to your account. Double-check the spelling (use
  openai models list
to see the full list) or choose another model with the --model flag.

I tried to use the --model option 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?

sdrymchenko · 1 year ago

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? 🤔

Frulfump · 1 year ago

Now I get this instead...

Route Error (409 ): {
  "error": {
    "message": "Invalid client. Please start over.",
    "type": "invalid_request_error",
    "param": null,
    "code": "invalid_state"
  }
}

Seems to be on another datadog.client initiated request against the auth endpoint https://auth.openai.com/api/accounts/authorize/continue

javichu148 · 1 year ago

When I logging, the result is:

Credit redemption request failed: HTTP Error 400: Bad Request
Successfully logged in

And after:

<img width="1367" height="553" alt="Image" src="https://github.com/user-attachments/assets/9ea987de-a77e-4203-ba8f-b1a52681b655" />

niltonvasques · 1 year ago

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" />

phena109 · 1 year ago

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

d@1e018257db70:~/.codex$ 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=XEFlBejjSmvmkM0bG1K_stCfnITiA3WRdivnH_QRKwo&code_challenge_method=S256&id_token_add_organizations=true&state=e3bbecc0ed7353991648446fa0be9da09e54ff9fe70ae4c1f8b1058ef3cf8714
Error logging in: login_with_chatgpt subprocess failed: 
d@1e018257db70:~/.codex$

the 2nd thread:

d@1e018257db70:~$ curl http://localhost:1455/auth/callback?code=ac_VRjn8dya2yvWS7XszsT0q_2SWKJO-oDiVyY9t-Rj4R0.OPr7Cv_sCWoF6lP5d8pNJWcmE7Q3lMEaoTddVsoTCoE&scope=openid+profile+email+offline_access&state=e3bbecc0ed7353991648446fa0be9da09e54ff9fe70ae4c1f8b1058ef3cf8714
[1] 10436
[2] 10437
d@1e018257db70:~$ <!DOCTYPE HTML>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <title>Error response</title>
    </head>
    <body>
        <h1>Error response</h1>
        <p>Error code: 400</p>
        <p>Message: State parameter mismatch.</p>
        <p>Error code explanation: 400 - Bad request syntax or unsupported method.</p>
    </body>
</html>

[1]-  Done                    curl http://localhost:1455/auth/callback?code=ac_VRjn8dya2yvWS7XszsT0q_2SWKJO-oDiVyY9t-Rj4R0.OPr7Cv_sCWoF6lP5d8pNJWcmE7Q3lMEaoTddVsoTCoE
[2]+  Done                    scope=openid+profile+email+offline_access
laricko · 1 year ago

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

lemessdavi · 1 year ago

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" />

eelang-sc · 1 year ago

Same here, on ubuntu.

Afischbacher · 1 year ago

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

Credit redemption request failed: HTTP Error 400: Bad Request
Successfully logged in

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" />

kamleshbhalui · 1 year ago

Same issue as @lemessdavi, plus subscription using macOS

andreagrandi · 1 year ago

I have a "Team" account and tried to login. After I login succesfully, in the terminal I see:

Only users with Plus or Pro subscriptions can redeem free API credits.
Successfully logged in

which is quite confusing 🫤

Do I have access to Codex CLI or not?

dnichols4 · 1 year ago

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.

dnichols4 · 1 year ago
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]](http://localhost:1455/auth/callback?code=%5Bredacted%5D&scope=openid+profile+email+offline_access&state=%5Bredacted%5D) ### 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.command from python directory.

hamza-cskn · 1 year ago
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.

MacOS 26.0 Beta

This worked for me:

pip3 install --upgrade certifi
export SSL_CERT_FILE="$(python3 -c 'import certifi; print(certifi.where())')"
dnichols4 · 1 year ago
> 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]](http://localhost:1455/auth/callback?code=%5Bredacted%5D&scope=openid+profile+email+offline_access&state=%5Bredacted%5D) > ### 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.command from python directory.

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" />

bpnace · 1 year ago

I still get this error also after installing the certificates.

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:1020)>. Error code explanation: 500 - Server got itself in trouble.
mikeschinkel · 1 year ago

I am getting a screen full of these w/0.7.0:

│event                                                                                                                                                │
│BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected before completion: stream closed before response.completed;       │
│retrying 1/10 in 208ms…" })                                                                                                                          │
│                                                                                                                                                     │
│event                                                                                                                                                │
│BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected before completion: stream closed before response.completed;       │
│retrying 2/10 in 248ms…" })                                                                                                                          │
│                                                                                                                                                     │
│event                                                                                                                                                │
│BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected before completion: stream closed before response.completed;       │
│retrying 3/10 in 339ms…" })                                                                                                                          │
│                                      

I have a paid Pro account.

dal00 · 1 year ago

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" />

khal3d · 1 year ago

I’m encountering this error after completing the authorization and granting the app access to my API key. I have a team subscription and installed the CLI using brew

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.

youshouldstealthiscode · 1 year ago

``codex login``, page opens, login with google, input 2fa code, click into final step with defaults, and get these errors

  • installed with homebrew
  • Pro membership
  • viable API key

Terminal Output:

└─[$]> 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=Y5aLjGmeIONHScp7kiYQWnQfLK033DJvpxRap81miRI&code_challenge_method=S256&id_token_add_organizations=true&state=c32bd82f4f8e16b94c30ed03c8175b42f922ba2255f84d51e09fa9ed689c0cd8
Error logging in: login_with_chatgpt subprocess failed:

Error on webpage:

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.
decolon · 1 year ago

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.

ericterpstra · 1 year ago

Pro Account
API Usage Tier 1 (with positive balance)
Codex 0.7.0 installed with brew on MacOS 15.5

codex login opens 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" />

desugar-64 · 1 year ago

same for me

iamgalba · 1 year ago

Plus subscriber. But Codex still wants to use additional paid API calls.

powerOFMAX · 12 months ago

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" />

bbl-greg · 12 months ago

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.

stephensauceda · 12 months ago
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.

It's trying to hit a localhost url
http://localhost:1455/auth/callback

jimCresswell · 12 months ago

Yep, 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 response

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.

I'm using Google OAuth to authenticate, my subscription is via Google Play

andreifoldes · 12 months ago

It would be nice to get some guidance on whether Teams accounts are eligible or not.

Route Error (400 ): {
  "error": {
    "message": "No eligible ChatGPT workspaces found.",
    "type": "invalid_request_error",
    "param": null,
    "code": "chatgpt_account_missing"
  }
}
goktugacik · 12 months ago

Even though I am a Plus user when I authenticate with codex login my request are charged through API

<img width="411" height="259" alt="Image" src="https://github.com/user-attachments/assets/4cc7b49f-3da1-42e5-a04b-22f8553a295a" />

bharadwajpro · 12 months ago
Even though I am a Plus user when I authenticate with codex login my request are charged through API <img alt="Image" width="411" height="259" src="https://private-user-images.githubusercontent.com/37751549/469778203-4cc7b49f-3da1-42e5-a04b-22f8553a295a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTMyODE4OTIsIm5iZiI6MTc1MzI4MTU5MiwicGF0aCI6Ii8zNzc1MTU0OS80Njk3NzgyMDMtNGNjN2I0OWYtM2RhMS00MmU1LWEwNGItMjJmODU1M2EyOTVhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA3MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNzIzVDE0Mzk1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTEyMzAzZGU0OGQwMmRlN2Q0MmE3ZjM0N2M3YzRlM2U2ZTAyY2UwODdhMjBlMDMxN2EwOWY1NGY2ZTU1NzdmZTkmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.l2l33mJG_MJzpOKh6m5k9sbDlleeQYvgvwJFuk9eskE">

If you have OPENAI_API_KEY in your environment variable, codex CLI might use that. Remove that or unset it.

goktugacik · 12 months ago
OPENAI_API_KEY

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" />

TheMorpheus407 · 12 months ago

I am also a Teams-User. The Readme says

If you have a paid OpenAI account, run the following to start the login process:

but logging in returns an authentication error

"message": "No eligible ChatGPT workspaces found."
lorenzeszz · 12 months ago

codex login is 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.

jimCresswell · 12 months ago

Is this P0 being worked on? Is this an internal only effort, or are public contributions allowed?

bharadwajpro · 12 months ago

This flow is broken. Running codex login doesn'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.

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:1129)>.

Error code explanation: 500 - Server got itself in trouble.

Does it used to work and broke recently? If yes, I can take a look and see what's going wrong.

bharadwajpro · 12 months ago

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.

Sorry, your subscription must be active for more than 7 days to redeem credits.
Successfully logged in
This flow is broken. Running codex login doesn'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. `` 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:1129)>. Error code explanation: 500 - Server got itself in trouble. `` Does it used to work and broke recently? If yes, I can take a look and see what's going wrong.
ab-dev-github · 12 months ago

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.

jimCresswell · 12 months ago
Yep, 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 response `` 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. `` I'm using Google OAuth to authenticate, my subscription is via Google Play

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:

brew update && brew upgrade && brew reinstall python

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?

jimCresswell · 11 months ago

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

lolrazh · 11 months ago

I was faced with this issue

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:1010)>. Error code explanation: 500 - Server got itself in trouble.

I ran /Applications/Python 3.<your‑version>/Install\ Certificates.command on my terminal and it solved my issue :)

ATirelli · 11 months ago

I am a Plus subscriber and I get

Credit redemption request failed: HTTP Error 400: Bad Request
Successfully logged in

What could be the reason? Thank you in advance

joetomasone · 11 months ago

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.

clarkio · 11 months ago

@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.

twirlse · 11 months ago

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 :/

bolinfest collaborator · 11 months ago

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_KEY environment variable to authenticate is the most reliable option. For those of you using that solution, FYI, you can store the value in $CODEX_HOME/.env or $(pwd)/.env now:

https://github.com/openai/codex/pull/1653

lorenzeszz · 11 months ago
codex login is 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.

@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?

jimCresswell · 11 months ago
@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.

@clarkio thank you for the solidarity!

jimCresswell · 11 months ago
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_KEY environment variable to authenticate is the most reliable option. For those of you using that solution, FYI, you can store the value in $CODEX_HOME/.env or $(pwd)/.env now: #1653

Thanks for the update @bolinfest !

lorenzeszz · 11 months ago

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…" })

lorenzeszz · 11 months ago

with o3
│BackgroundEvent(BackgroundEventEvent { message: "stream error: stream disconnected█│
│before completion: Your organization must be verified to use the model
o3. █│
│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…" })

lorenzeszz · 11 months ago

<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.

Stoefza · 11 months ago

When Logging in with plus account:

❯ Sign in with ChatGPT
  Paste an API key (or set as OPENAI_API_KEY)
TypeError: fetch failed
    at node:internal/deps/undici/undici:13510:13
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
    at async vbe (file:///******/AppData/Roaming/npm/node_modules/@openai/codex/dist/cli.js:795:5693)
    at async Server.<anonymous> (file://******/AppData/Roaming/npm/node_modules/@openai/codex/dist/cli.js:989:854) {
  [cause]: Error: unable to get local issuer certificate
      at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
      at TLSSocket.emit (node:events:518:28)
      at T0.emit (file:///C:/******/AppData/Roaming/npm/node_modules/@openai/codex/dist/cli.js:332:3119)
      at TLSSocket._finishInit (node:_tls_wrap:1078:8)
      at ssl.onhandshakedone (node:_tls_wrap:864:12) {
    code: 'UNABLE_TO_GET_ISSUER_CERT_LOCALLY'
  }
}
alfredorguez · 11 months ago

When I try to login I get this error:

Route Error (400 ): {
  "error": {
    "message": "No eligible ChatGPT workspaces found.",
    "type": "invalid_request_error",
    "param": null,
    "code": "chatgpt_account_missing"
  }
}
alifa98 · 11 months ago

The error I encountered when following the instruction in README.MD:

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_...
Credit redemption request failed: HTTP Error 400: Bad Request
Successfully logged in

When I'm checking the login status:

➜  ~ codex login status
error: unexpected argument 'status' found

Usage: codex-aarch64-apple-darwin login [OPTIONS]

For more information, try '--help'.

version:

➜  ~ codex --version   
codex-cli 0.10.0
gtluciano · 11 months ago

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.**

reed-stytch · 11 months ago

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)>.

fietronic · 11 months ago

with codex login after 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.

pro100filipp · 11 months ago

Unfortunately login feature 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/1212

- The codex multitool now has a login subcommand, so you can run codex login, which should write CODEX_HOME/auth.json if you complete the flow successfully. The TUI will now read the OPENAI_API_KEY from auth.json. - The TUI should refresh the token if it has expired and the necessary information is in auth.json. - There is a LoginScreen in the TUI that tells you to run codex login if both (1) your model provider expects to use OPENAI_API_KEY as its env var, and (2) OPENAI_API_KEY is not set.

But current version of README.MD states that rather unclearly for some reason.

aivajoe · 11 months ago

Trying to codex login with 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.

aivajoe · 11 months ago

Oh, also: I'm trying to do codex login on a headless dev box, and the auth flow tries to redirect to localhost:1455 which 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.

anden416 · 11 months ago
Oh, also: I'm trying to do codex login on a headless dev box, and the auth flow tries to redirect to localhost:1455 which 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)

bolinfest collaborator · 11 months ago

@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.json from your local machine (assuming you successfully got through the login flow locally) to the headless box where you want to use the CLI.

siddhantparadox · 11 months ago

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

sedghi · 11 months ago

getting this

<img width="2162" height="380" alt="Image" src="https://github.com/user-attachments/assets/21e95259-4bfd-478e-849c-27501a7c279f" />

bolinfest collaborator · 11 months ago

@siddhantparadox For now, you need to explicitly _unset_ OPENAI_API_KEY when running codex, so consider OPENAI_API_KEY= codex

kambug · 11 months ago

Route 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?

pjmarz · 11 months ago
Oh, also: I'm trying to do codex login on a headless dev box, and the auth flow tries to redirect to localhost:1455 which 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.

Having the same issue smh -_-

brittlewis12 · 11 months ago

UPDATE: same error still occurring on v0.19.0 as well.

codex v0.16.0, attempting to authorize a Team account, also seeing the "No eligible ChatGPT workspaces found" 400 error:

Route Error (400 ): {
  "error": {
    "message": "No eligible ChatGPT workspaces found.",
    "type": "invalid_request_error",
    "param": null,
    "code": "chatgpt_account_missing"
  }
}
rwjdk · 11 months ago

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" />

tobihagemann · 11 months ago

Same here with a team account. Oh boy, the impatience when something gets released but doesn't work directly. 😂

timmattison · 11 months ago

MacOS 15.6

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.

In Firefox, Chrome, and Safari.

aivajoe · 11 months ago
@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.json from your local machine (assuming you successfully got through the login flow locally) to the headless box where you want to use the CLI.

Thank you @bolinfest, this worked for me!

ahmados · 11 months ago

<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

rombuzz · 11 months ago
@siddhantparadox For now, you need to explicitly _unset_ OPENAI_API_KEY when running codex, so consider OPENAI_API_KEY= codex

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?

mrairdon-midmark · 11 months ago

<img width="362" height="78" alt="Image" src="https://github.com/user-attachments/assets/5df3cbff-55a0-4d9c-bb7a-aef48ba1a206" />

I run codex login and it gives me this:

The model "codex-mini-latest" does not appear in the list of models available to your account. Double-check the spelling (use
  openai models list
to see the full list) or choose another model with the --model flag.

I run codex --help and it says that I should actually be using --login instead of login:

<img width="1356" height="497" alt="Image" src="https://github.com/user-attachments/assets/9299314e-30c2-439c-bb42-c1794f489dac" />

I run codex --login I get:

<img width="1397" height="95" alt="Image" src="https://github.com/user-attachments/assets/9eac1c10-8365-45bd-90d0-eea068a8322d" />

bp749 · 11 months ago

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

thorleydk · 11 months ago

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" />

Astrisle · 11 months ago

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

xoyowade · 11 months ago

New installation with npm install -g @openai/codex.
Tried codex login using my ChatGPT Plus account, but encountered the following error message on terminal after successful login in browser:

Error logging in: login_with_chatgpt subprocess failed:

Both MacOS and Ubuntu have the same issue.

mauroentey · 11 months ago

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.

dnson · 11 months ago

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

dvaldivia · 11 months ago

I was able to authenticate a team account via codex login, but then it selects the free plan, and not my team workspace...

silver-epsilo · 11 months ago

Same issue with dvaldivia

NeerajG03 · 11 months ago

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?

vistrcm · 11 months ago

I'm getting

No eligible ChatGPT workspaces found.
Y07yoyo · 11 months ago

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

aav-benjamin-mikkelsen · 11 months ago

Using codex --login and selecting Sign in with ChatGPT gives 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

debroys · 11 months ago

I also have a team account through my employer and getting this error while trying to login:

Route Error (400 ): {
  "error": {
    "message": "No eligible ChatGPT workspaces found.",
    "type": "invalid_request_error",
    "param": null,
    "code": "chatgpt_account_missing"
  }
}
debroys · 11 months ago
I also have a team account through my employer and getting this error while trying to login: `` Route Error (400 ): { "error": { "message": "No eligible ChatGPT workspaces found.", "type": "invalid_request_error", "param": null, "code": "chatgpt_account_missing" } } ``

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.

svilupp · 11 months ago

I have ChatGPT Pro and I also cannot login (neither codex normal flow and codex login worked), I use MFA.

➜  ~ 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=xx&redirect_uri=http%3A%2F%2Flocalhost%3A1455%2Fauth%2Fcallback&scope=openid+profile+email+offline_access&code_challenge=xx&code_challenge_method=S256&id_token_add_organizations=true&codex_cli_simplified_flow=true&state=xx
Error logging in: login_with_chatgpt subprocess failed:

browser:

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.

Tried re-install with cache flush and it didn't help.

Galgol23 · 11 months ago

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?

s7an-it · 11 months ago

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.

itskaism · 11 months ago

how to approve CODEX CLI on cluster with H100 / H200 GPU?

NetipunJi · 11 months ago

Plus user can't login

Bash cmd

codex login

Login using Google

Terminal response

Error logging in: login_with_chatgpt subprocess failed:

Browser response

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.
fjmn2001 · 11 months ago
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?

I got the same error. I have chatGPT Team account.

Route Error (400 ): {
  "error": {
    "message": "No eligible ChatGPT workspaces found.",
    "type": "invalid_request_error",
    "param": null,
    "code": "chatgpt_account_missing"
  }
}
ZeldOcarina · 11 months ago

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.

forrestberry · 11 months ago
Have logged in using the team plan and i get the following message. <img alt="Image" width="993" height="185" src="https://private-user-images.githubusercontent.com/108350739/475855536-f5dc4592-784b-450a-913d-47d5f90c869d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ2NTAxMTQsIm5iZiI6MTc1NDY0OTgxNCwicGF0aCI6Ii8xMDgzNTA3MzkvNDc1ODU1NTM2LWY1ZGM0NTkyLTc4NGItNDUwYS05MTNkLTQ3ZDVmOTBjODY5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwOFQxMDQzMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMzVkZmM0MGY4YzY4NGFkYWY0OTFhMjdkNWU3MTgxMGQzZGMyNzY1NDAyOTAzZDBmZDhlMzYwYTUzOTVjMTM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZcobWc5dxVVcBkmK5aju0DBrj4IcrpJi4HbZwvvE_P4"> Is the CLI included in team plan? If so how does the billing for the same work?

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. 🤷‍♂️

yoshitaka-shimokawa · 11 months ago

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?

subhams07 · 11 months ago

<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.

flowgeniusmz · 11 months ago

Getting an error when running this in github codespaces.

Steps to reproduce:

  1. Confirm version using codex --version (0.19)
  2. Type codex login
  3. Github asks to bring me to the sign in page
  4. I am presented with in a new tab the sign in screen
  5. I use google to authenticate
  6. On redirect I get the following error and terminal output

<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:

Dzoukr · 11 months ago

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

The model "codex-mini-latest" does not appear in the list of models available to your account. Double-check the spelling (use
  openai models list
to see the full list) or choose another model with the --model flag.
flynhigher · 11 months ago
> Have logged in using the team plan and i get the following message. > <img alt="Image" width="993" height="185" src="https://private-user-images.githubusercontent.com/108350739/475855536-f5dc4592-784b-450a-913d-47d5f90c869d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ2NTAxMTQsIm5iZiI6MTc1NDY0OTgxNCwicGF0aCI6Ii8xMDgzNTA3MzkvNDc1ODU1NTM2LWY1ZGM0NTkyLTc4NGItNDUwYS05MTNkLTQ3ZDVmOTBjODY5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwOFQxMDQzMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMzVkZmM0MGY4YzY4NGFkYWY0OTFhMjdkNWU3MTgxMGQzZGMyNzY1NDAyOTAzZDBmZDhlMzYwYTUzOTVjMTM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZcobWc5dxVVcBkmK5aju0DBrj4IcrpJi4HbZwvvE_P4"> > Is the CLI included in team plan? If so how does the billing for the same work? 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. 🤷‍♂️

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.

gopikori · 11 months ago

I have a plus plan and it wont allow me login

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=DbKCAsjNKlw6vfMPJl5D-4rpkr5q7ThmSqUIeazBfEI&code_challenge_method=S256&id_token_add_organizations=true&codex_cli_simplified_flow=true&state=e3c26096c246f562b48ca8e6660234671489d13b719c7351efb1644b42529a44 Error logging in: login_with_chatgpt subprocess failed:

In browser auth window I see this 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:1007)>. Error code explanation: 500 - Server got itself in trouble

I am trying to log in with Google SSO

DeocsMarco · 11 months ago

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.

edwrdq · 11 months ago
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.

swapnilk2 · 11 months ago

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

⚠ 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.

<img width="1893" height="564" alt="Image" src="https://github.com/user-attachments/assets/142f454f-3cba-4fb2-82b6-f156b03a3639" />

mattlgroff · 11 months ago

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" />

ZeldOcarina · 11 months ago

Yeah the root issue it's it is trying to use TLS on localhost, thus failing. @bolinfest any roadmap to fix it?

tsbyq · 11 months ago

I am on the pro plan, using Windows 11. After running npm install -g @openai/codex, and codex, it showed using the "Sign in with ChatGPT", option, which I followed and keep the default settings.

Then I tried /model to switch to gpt-5. But whatever prompt I type, it just shows "insufficient quota". Even with a simple codex login it shows the same:

<img width="1938" height="617" alt="Image" src="https://github.com/user-attachments/assets/e8f30303-b91f-4fcc-b0cb-050ac8ec9140" />

2nd-ren · 11 months ago

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" />

unluckyjori · 11 months ago

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" />

zidinberu · 11 months ago

<img width="1086" height="237" alt="Image" src="https://github.com/user-attachments/assets/51c7bb35-63e3-4285-ae87-6020f15757c1" />

BrennanT · 11 months ago

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.

Pavliczech · 11 months ago

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?

pakrym-oai contributor · 11 months ago

We're tracking codex login on Windows as part of https://github.com/openai/codex/issues/2000

pakrym-oai contributor · 11 months ago

There are some workarounds for SSL issues in https://github.com/openai/codex/issues/2044 while we're working on the full fix.

narlabharath · 11 months ago

<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

enginyilmaaz · 11 months ago

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
}
}

OctavianTocan · 11 months ago

<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.

keithcorcoran · 11 months ago

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.

keithcorcoran · 11 months ago
Trying to sign in with PLus account on WSL in windows: image (shows 2 URLS after that) Clicked through to the URL, entered the code. Redirected to this... image Checked http://localhost:1455 and site can't be reached.

This fixed the issue for me...

'Install WSL utilities and set the browser bridge:

sudo apt update && sudo apt install -y wslu
echo 'export BROWSER=wslview' >> ~/.bashrc
source ~/.bashrc

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.

simeon-vanov · 11 months ago

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.

keithcorcoran · 11 months ago
I am getting an issue as well with the login 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'

Synetics-GFX · 11 months ago

📜 Tutorial: Install and Configure Codex CLI on WSL and Windows 11

1️⃣ Install WSL on Windows 11

  1. Open PowerShell as Administrator

Right-click on the Start menu → Windows PowerShell (Admin) or Terminal (Admin).

  1. Install WSL:

``powershell
wsl --install
``
By default, this installs Ubuntu.

  1. Restart your PC when the installation is complete.
  2. Set up Ubuntu:
  • On first launch, choose a Linux username and password (separate from your Windows account).

---

2️⃣ Install required dependencies in WSL

In your Ubuntu (WSL) terminal:

sudo apt update && sudo apt upgrade -y
sudo apt install -y nodejs npm wslu

---

3️⃣ Install Codex CLI in WSL

Still inside Ubuntu (WSL):

npm install -g @openai/codex

Verify the installation:

codex --version

---

4️⃣ Configure browser redirection with wslview

This step allows Codex to open your Windows default browser from WSL:

echo 'export BROWSER=wslview' >> ~/.bashrc
source ~/.bashrc

---

5️⃣ Log in to Codex inside WSL

In Ubuntu:

codex login
  • This will open your Windows default browser via wslview.
  • Sign in with your OpenAI/ChatGPT Plus account.
  • Once logged in, Codex creates a ~/.codex folder in WSL with auth.json and other files.

---

6️⃣ Create the .codex folder on Windows

From Ubuntu:

mkdir -p /mnt/c/Users/<YourWindowsUsername>/.codex

⚠️ Replace <YourWindowsUsername> with your actual Windows user folder name in C:\Users\.

---

7️⃣ Copy authentication files from WSL to Windows

Still in Ubuntu:

cp ~/.codex/auth.json /mnt/c/Users/<YourWindowsUsername>/.codex/
cp ~/.codex/version.json /mnt/c/Users/<YourWindowsUsername>/.codex/

---

8️⃣ Install Codex CLI on Windows

Open PowerShell (not WSL):

npm install -g @openai/codex
codex --version

---

9️⃣ Test Codex on Windows

In PowerShell:

codex
  • If everything is copied correctly, you should already be logged in.
  • If it asks for login again, ensure that auth.json is located here:
C:\Users\<YourWindowsUsername>\.codex\auth.json

---

You now have Codex CLI installed and usable in both WSL and native Windows.

thom-heinrich · 11 months ago

After logging in sucessfully with my pro-Account I get:

stream disconnected before completion: Project proj_ABC does not have
access to model
gpt-5`

flynhigher · 11 months ago
> > Have logged in using the team plan and i get the following message. > > <img alt="Image" width="993" height="185" src="https://private-user-images.githubusercontent.com/108350739/475855536-f5dc4592-784b-450a-913d-47d5f90c869d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTQ2NTAxMTQsIm5iZiI6MTc1NDY0OTgxNCwicGF0aCI6Ii8xMDgzNTA3MzkvNDc1ODU1NTM2LWY1ZGM0NTkyLTc4NGItNDUwYS05MTNkLTQ3ZDVmOTBjODY5ZC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODA4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgwOFQxMDQzMzRaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zMzVkZmM0MGY4YzY4NGFkYWY0OTFhMjdkNWU3MTgxMGQzZGMyNzY1NDAyOTAzZDBmZDhlMzYwYTUzOTVjMTM1JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZcobWc5dxVVcBkmK5aju0DBrj4IcrpJi4HbZwvvE_P4"> > > Is the CLI included in team plan? If so how does the billing for the same work? > > > 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. 🤷‍♂️ 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.

It's working now!
codex login lets me choose Team vs Personal workspace now, which was not the case before.

clarkio · 11 months ago

As of today after updating to version 0.20.0 I 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

martrdev · 11 months ago

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?

Bikatr7 · 11 months ago

<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)

arthosbraga · 11 months ago

<img width="954" height="486" alt="Image" src="https://github.com/user-attachments/assets/88f655bf-2f76-48d2-b252-5cf9a1637084" />

It still doesn't work

martrdev · 11 months ago

Reply to https://github.com/openai/codex/issues/1243#issuecomment-3174120700:

# 📜 Tutorial: Install and Configure Codex CLI on WSL and Windows 11 [...]

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.0

while from ubuntu (WSL) it is a bit random, it will sometime be able to see the content but it is not guaranteed.

DFazekas · 11 months ago
source ~/.bashrc

I love you. Spent hours trying various approaches, then stumbled upon your beautiful solution. Uggghh, where's your TIP jar?

ValentinAUCLERC · 11 months ago

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.

haranloga · 11 months ago

<img width="588" height="388" alt="Image" src="https://github.com/user-attachments/assets/934d299b-bff8-44c5-9e70-61d6048a0ae7" />

wbdb · 11 months ago

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.exe
Symbolic link created for python3.exe <<===>> python.exe

Gambitnl · 11 months ago
<img alt="Image" width="495" height="263" src="https://private-user-images.githubusercontent.com/102974491/476835507-92475bc5-3fdc-41a5-9d09-48fbbce7bc14.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTUyODE3MzYsIm5iZiI6MTc1NTI4MTQzNiwicGF0aCI6Ii8xMDI5NzQ0OTEvNDc2ODM1NTA3LTkyNDc1YmM1LTNmZGMtNDFhNS05ZDA5LTQ4ZmJiY2U3YmMxNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwODE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDgxNVQxODEwMzZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT1mNmQ3YWVmMmMwNzM4YzUwYTRlMjAyMjZhMzNkODU1ZTY5YmYxZWU1MjgyNWY5MDJmMTg3ZTMyM2M0NGYzMzU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.cN6LjIa3ULYezyffltaT82zBF1iWAtowgZ--iUvo5aI"> 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)

Same issue here. I also get it when i run "Codex login"

jiangying000 · 11 months ago

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.

bolinfest collaborator · 11 months ago
reddygtvs · 11 months ago

<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?

glennmatlin · 11 months ago

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

milanglacier · 11 months ago

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" />

olinorwell · 11 months ago

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.

bolinfest collaborator · 11 months ago

@olinorwell it would be extremely helpful if you included the output of codex --version and which -a codex with your report.

bolinfest collaborator · 11 months ago
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 alt="Image" width="887" height="375" src="https://private-user-images.githubusercontent.com/45728125/481337267-199953d9-c5c6-4f43-bb76-deab386dfd06.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYwNjg5NjEsIm5iZiI6MTc1NjA2ODY2MSwicGF0aCI6Ii80NTcyODEyNS80ODEzMzcyNjctMTk5OTUzZDktYzVjNi00ZjQzLWJiNzYtZGVhYjM4NmRmZDA2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjQlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODI0VDIwNTEwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWE4YWI2ZmNiY2EyNDVhYjdkMmM3YTAxZjA0MDY0YzRjZWQxM2U4Yzg2NmY3MGRkOWM0NGM3NjMyYjJiZThmY2ImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.7OAL_vzbYPiFFb0Osm_xXK95jz-JXaU8sdtfJrrr2OQ">

https://github.com/openai/codex?tab=readme-ov-file#connecting-on-a-headless-machine

drunknbass · 10 months ago
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.

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.

bolinfest collaborator · 10 months ago

@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 codex and 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.

benedyktdryl · 10 months ago

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 codex is 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?

drunknbass · 10 months ago
@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 codex and 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 actually installed it via npm as mentioned here
https://github.com/openai/codex/discussions/1174

gabrieuz · 10 months ago

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" />

Lurito · 10 months ago
os error 10013 <img alt="Image" width="1482" height="579" src="https://private-user-images.githubusercontent.com/51428982/482965855-f45645da-7e9c-48aa-9356-4afd64650a40.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzNjAyMjQsIm5iZiI6MTc1NjM1OTkyNCwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjU4NTUtZjQ1NjQ1ZGEtN2U5Yy00OGFhLTkzNTYtNGFmZDY0NjUwYTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODI4VDA1NDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3MDY1MjUzNzhhOWQ4NDc5MDUzNWI1ZTU0NDhjYjU4NjljYjFkZjRlNGM2ZGY3YThkM2E0ZDNmMDJmMzY2MGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bWsIGgCKJFE10UI9n1DiqPbIt8hlZZ4Eh6Jmvmtpt2A"> <img alt="Image" width="557" height="1220" src="https://private-user-images.githubusercontent.com/51428982/482966450-a44bf503-7c7b-499c-94b3-fa962181f919.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzNjAyMjQsIm5iZiI6MTc1NjM1OTkyNCwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjY0NTAtYTQ0YmY1MDMtN2M3Yi00OTljLTk0YjMtZmE5NjIxODFmOTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODI4VDA1NDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4ZjM3MGQzNDQ2OGFlMzUxMjAxMWIyY2FkMjliMDhkZDIzMWRlMjU5ZDk4ZjIyNzc2ZDNmMTA2MmQ3MTE0M2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5cr8Y4SQQSSvPh-TU2LoV9JbhADlffxpDcOHst1pBxM">

See https://www.reddit.com/r/codex_tips/comments/1n0szue/fix_codex_cli_sign_in_with_chatgpt_fails_on/

gabrieuz · 10 months ago
> os error 10013 > <img alt="Image" width="1482" height="579" src="https://private-user-images.githubusercontent.com/51428982/482965855-f45645da-7e9c-48aa-9356-4afd64650a40.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzNjAyMjQsIm5iZiI6MTc1NjM1OTkyNCwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjU4NTUtZjQ1NjQ1ZGEtN2U5Yy00OGFhLTkzNTYtNGFmZDY0NjUwYTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODI4VDA1NDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQ3MDY1MjUzNzhhOWQ4NDc5MDUzNWI1ZTU0NDhjYjU4NjljYjFkZjRlNGM2ZGY3YThkM2E0ZDNmMDJmMzY2MGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.bWsIGgCKJFE10UI9n1DiqPbIt8hlZZ4Eh6Jmvmtpt2A"> <img alt="Image" width="557" height="1220" src="https://private-user-images.githubusercontent.com/51428982/482966450-a44bf503-7c7b-499c-94b3-fa962181f919.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTYzNjAyMjQsIm5iZiI6MTc1NjM1OTkyNCwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjY0NTAtYTQ0YmY1MDMtN2M3Yi00OTljLTk0YjMtZmE5NjIxODFmOTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA4MjglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwODI4VDA1NDUyNFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc4ZjM3MGQzNDQ2OGFlMzUxMjAxMWIyY2FkMjliMDhkZDIzMWRlMjU5ZDk4ZjIyNzc2ZDNmMTA2MmQ3MTE0M2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.5cr8Y4SQQSSvPh-TU2LoV9JbhADlffxpDcOHst1pBxM"> See https://www.reddit.com/r/codex_tips/comments/1n0szue/fix_codex_cli_sign_in_with_chatgpt_fails_on/

This works, thanks.

0re5ama · 10 months ago

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 abc and 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.

gpeal contributor · 10 months ago
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 abc and 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 logout

jerlendds · 10 months ago

I'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" />

rr- · 10 months ago
> 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 abc and 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 logout

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.

rzanardi · 10 months ago

Same issues as the rest above (Authentication Error. An error occurred during authentication (unknown_error). Please try again.)

rr- · 10 months ago

Linking #3409 – I've resolved the issue on my end by changing the DNS provider. Maybe this advice will work for someone as well.

jerlendds · 10 months ago

I can confirm changing my DNS provider in /etc/resolv.conf to cloudflare 1.1.1.1, 1.1.1.2 worked

griffith-h · 10 months ago
os error 10013 <img alt="Image" width="1482" height="579" src="https://private-user-images.githubusercontent.com/51428982/482965855-f45645da-7e9c-48aa-9356-4afd64650a40.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTgwMTAzNTYsIm5iZiI6MTc1ODAxMDA1NiwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjU4NTUtZjQ1NjQ1ZGEtN2U5Yy00OGFhLTkzNTYtNGFmZDY0NjUwYTQwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTE2VDA4MDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWFhYTE5MDAwYTJkM2MyZjE4YTNhZDMxZDZhYmUzN2RjZTkzYjgwNTg5N2Q0Zjc1ZGIwMGQ2MWRjNzJlNjFjZGUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.2HEP2LWSjaxjRa7enL02khAxaG9xPOeMI8tKyEhHLp4"> <img alt="Image" width="557" height="1220" src="https://private-user-images.githubusercontent.com/51428982/482966450-a44bf503-7c7b-499c-94b3-fa962181f919.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NTgwMTAzNTYsIm5iZiI6MTc1ODAxMDA1NiwicGF0aCI6Ii81MTQyODk4Mi80ODI5NjY0NTAtYTQ0YmY1MDMtN2M3Yi00OTljLTk0YjMtZmE5NjIxODFmOTE5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA5MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwOTE2VDA4MDczNlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTQ3ZDNhYTIyZmQ3OTUzNTY4NWE0NjU2NWVlMzdiZWM5NWFhNzc1ZTUyNDUzYWQwZWUyNzQzOTEwOGNlZmRhMDImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.gN5wSbB3WAtrg0u894HAyUN-mdnpp5LxpXmzjwQpAfQ">

https://community.openai.com/t/introducing-the-codex-ide-extension/1354930/13

vasu-gs · 9 months ago

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):

"api.github.com"
    "github.com"
    "registry.npmjs.org"
    "pypi.org"
    "files.pythonhosted.org"
    "auth.openai.com"
    "platform.openai.com"

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" />

pakrym-oai contributor · 9 months ago

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.