Can not login with multiple accounts

Resolved 💬 6 comments Opened Aug 28, 2025 by wowshy Closed Sep 8, 2025

What version of Codex is running?

codex-cli 0.25.0

Which model were you using?

gpt-5 high

What platform is your computer?

Darwin 24.3.0 arm64 arm

What steps can reproduce the bug?

Background:
I have two accounts (ChatGPT Team, ChatGPT Pro) tied to my email address.

Reproduction steps:

  1. codex login in terminal.
  2. Login with my email, password.
  3. Login fails

What is the expected behavior?

Be able to login with my personal account (make it selectable).

What do you see instead?

Url https://accounts.google.com/o/saml2/idp?idpid=... with content:

403. That’s an error.

Error: app_not_enabled_for_user

Service is not enabled for this user.

Additional information

_No response_

View original on GitHub ↗

6 Comments

jahansayem117-oss · 12 months ago

You just have to sign out and log in again. Simple.

wowshy · 12 months ago

No, that won't work. As I mentioned, the problem is having two accounts (ChatGPT Team, ChatGPT Pro) tied to the same email address. I can't just login to one account.

This is a server-side logic only OpenAI employees can fix.

wowshy · 11 months ago

Same issue? https://github.com/openai/codex/issues/2512
Is this being triaged internally?

LeeHunter · 11 months ago

This is still a problem. There's no mechanism to manage (i.e. switch between) two accounts. If two email addresses are part of a GitHub account, Codex keeps logging in to the wrong account.

bashar94 · 11 months ago

I have created an issue and pull request on this #4457

antonioisho · 10 months ago