Skip to content

Personal Account (institutional email log in bug) #2512

Closed

Description

@BabaYara

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

Activity

  1. horaciochacon commented on Aug 29, 2025

    @horaciochacon

    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.

  2. adarakchian commented on Sep 3, 2025

    @adarakchian

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

  3. added
    authIssues related to authentication and accounts
    on Sep 3, 2025
  4. BabaYara commented on Sep 3, 2025

    @BabaYara
    Author

    If anyone has a temp work around please share.

  5. snoyiatk commented on Sep 22, 2025

    @snoyiatk

    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.

  6. MotorBottle commented on Sep 28, 2025

    @MotorBottle

    Tested today and fixed. Could close, finally.

  7. bashar94 commented on Oct 1, 2025

    @bashar94

    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

  8. etraut-openai commented on Oct 28, 2025

    @etraut-openai
    Contributor

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

  9. BabaYara commented on Oct 29, 2025

    @BabaYara
    Author

    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.

  10. etraut-openai commented on Oct 29, 2025

    @etraut-openai
    Contributor

    Thanks for confirming!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authIssues related to authentication and accountsbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions