codex - 💡(How to fix) Fix Support switching ChatGPT/OpenAI accounts without losing the current session [1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#18806Fetched 2026-04-22 07:52:21
View on GitHub
Comments
0
Participants
1
Timeline
7
Reactions
0
Participants
Timeline (top)
labeled ×4renamed ×1subscribed ×1unlabeled ×1

Root Cause

This is disruptive because logging out drops the current Codex app session/context.

RAW_BUFFERClick to expand / collapse

What version of the Codex App are you using (From “About Codex” dialog)?

26.417.41555 (1858)

What subscription do you have?

Not specified

What platform is your computer?

macOS 26.4.1 (25E253)

What issue are you seeing?

Logout/login works normally, but there is no way in the Codex desktop app to switch to a different ChatGPT/OpenAI account without first logging out.

The profile dropdown only exposes actions like Settings, Workspace settings, Rate limits remaining, and Log out. There is no visible "Add account", "Switch account", or "Use another ChatGPT/OpenAI account" action.

This is disruptive because logging out drops the current Codex app session/context.

What steps can reproduce the bug?

  1. Sign in to the Codex app with ChatGPT/OpenAI account A.
  2. Start or keep an active local Codex session/thread you do not want to lose.
  3. Open the profile dropdown in the app.
  4. Try to switch to ChatGPT/OpenAI account B without logging out.

Observed result:

  • The app does not provide an in-place account switch flow.
  • The only obvious path is to log out and log back in with the other account.
  • Logout/login itself works, but it discards the current app session/context.

What is the expected behavior?

The Codex app should provide an account-switching flow such as:

  • Add account / Use another account, or
  • Switch account while preserving the current local session history/context.

At minimum, users should not have to destroy the current app session just to move between ChatGPT/OpenAI accounts.

Additional information

This is different from bugs where the logout button is broken or unresponsive. In this case, logout works correctly; the issue is that account switching requires logout and causes session loss.

extent analysis

TL;DR

The Codex app needs an account-switching feature without requiring a logout, which currently discards the app session/context.

Guidance

  • Review the Codex app's profile dropdown menu to confirm the absence of an "Add account" or "Switch account" option.
  • Consider implementing an in-place account switch flow that preserves the current local session history/context.
  • Investigate potential workarounds, such as using a separate app instance or profile for each ChatGPT/OpenAI account.
  • Verify that the logout/login functionality works correctly, as the issue is specifically with account switching, not logout itself.

Example

No code snippet is provided, as the issue is related to the app's UI and functionality rather than a specific code error.

Notes

The issue is specific to the Codex desktop app on macOS, and the solution may vary depending on the app's architecture and implementation.

Recommendation

Apply a workaround, such as using a separate app instance or profile for each ChatGPT/OpenAI account, until an official account-switching feature is implemented. This is because the current logout/login process discards the app session/context, causing disruption to the user's workflow.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING