**Bug/UX: No way to switch accounts without clearing browser session**

Open 💬 3 comments Opened Apr 8, 2026 by pjuny0301
💡 Likely answer: A maintainer (github-actions[bot], contributor) responded on this thread — see the highlighted reply below.

What variant of Codex are you using?

0.2.3

What feature would you like to see?

Bug/UX: No way to switch accounts without clearing browser session

When logging in via Google OAuth, Codex always authenticates with the previously used Google account. There is no UI option to select a different account or log out.

Steps to reproduce:

  1. Log in to Codex with Google Account A
  2. Log out from platform.openai.com
  3. Click "Sign in with Google" again
  4. Automatically logs back in with Account A — no account selection prompt

Expected behavior:
A "Switch account" or "Sign in with a different account" option should be presented, or the Google account picker should appear.

Workaround:
User must manually log out of Google in the browser, or use an incognito window — which is unintuitive and a poor UX experience.

Environment:

  • OS: Windows 11

Additional information

_No response_

View original on GitHub ↗

3 Comments

github-actions[bot] contributor · 4 months ago

Potential duplicates detected. Please review them and close your issue if it is a duplicate.

  • #16522

Powered by Codex Action

BeshoySarkis · 26 days ago

+1

frndchagas · 20 days ago

What makes this one painful is that Log out revokes the tokens server-side, and that revocation is also what clears the browser session — so every switch costs a full re-auth.

Workaround until it's addressed: I built a small MIT-licensed tool that swaps ~/.codex/auth.json between saved profiles without ever revoking anything, so both accounts (and the browser session) stay signed in — https://github.com/frndchagas/codex-account

It never calls the API; it only moves the local file.