Personal Account (institutional email log in bug)

Resolved 💬 9 comments Opened Aug 20, 2025 by BabaYara Closed Oct 29, 2025
💡 Likely answer: A maintainer (etraut-openai, contributor) responded on this thread — see the highlighted reply below.

What version of Codex is running?

0.22.0

Which model were you using?

none

What platform is your computer?

windows

What steps can reproduce the bug?

I can't log in via codex cli aut link.
I have a personal Pro plan linked to my institutional email address, but this is not a Teams or institutional account.
So I do not get the option to pick the personal account.

What is the expected behavior?

I should be able to log in and use my pro plan

What do you see instead?

It takes me to my institutional login page. When I log in there, it breaks because that is the wrong account.

Additional information

_No response_

View original on GitHub ↗

9 Comments

horaciochacon · 10 months ago

Same issue here. I have a personal ChatGPT Pro account that uses my university email (@uw.edu), but it’s not part of any Enterprise/Edu/Team org. I can sign in to chatgpt.com and platform.openai.com without problems. However, when I run codex login, the OAuth flow (“Sign in with ChatGPT”) always forces an SSO redirect to my university IdP and then fails with:

“You are not authorized to access the application: ChatGPT Edu.”

There’s no option to pick my personal account.

Expected: Authenticate with my personal ChatGPT account and use Pro with Codex CLI.
Actual: Hard redirect to institutional SSO based on the email domain; login fails.

Tried: Clearing ~/.codex/auth.json, different browsers/incognito, resetting the CLI. API-key mode works, but it doesn’t attach Pro benefits. Any guidance or a way to bypass SSO for this flow would be appreciated.

adarakchian · 10 months ago

Same issue - personal Pro account is redirected to the org IdP.

BabaYara · 10 months ago

If anyone has a temp work around please share.

snoyiatk · 10 months ago

Same issue.
We have 2 workspace with same domain @work.com, 1 enterprise workspace with SSO and 1 business workspace (not SSO).
Now I can not login to codex with my business workspace for ANY account of @work.com
All @work.com login being redirected to SSO page, which is NOT what we want.

This only happen for codex. ChatGPT web login works just fine.

MotorBottle · 9 months ago

Tested today and fixed. Could close, finally.

bashar94 · 9 months ago

I have added a way to maintain multiple accounts without logging out and logging in again and again. You can have a look at here #4457

etraut-openai contributor · 8 months ago

I think this has been fixed in more recent versions of codex. @BabaYara, does this work for you now?

BabaYara · 8 months ago
I think this has been fixed in more recent versions of codex. @BabaYara, does this work for you now?

It works fine for me now.

etraut-openai contributor · 8 months ago

Thanks for confirming!