Guide
Two accounts in the Codex app.
Open the Codex app a second time and you get the same window back, signed in to the same account. The app is built to run once. It can run a second, separate instance, though, and that one can use another account.
Why a second launch doesn't work
The Codex app (it now installs as ChatGPT.app on the Mac) is an Electron app that allows only one instance. A new launch hands over to the one that's open. That instance also reads your login from ~/.codex, so even CODEX_HOME on its own isn't enough.
Open a second instance
The app has a way to run separately: give it its own window-data folder in CODEX_ELECTRON_USER_DATA_PATH and --user-data-dir, and its own CODEX_HOME. With that variable set it skips the one-instance rule and keeps that CODEX_HOME. It's how the app starts its own demo build.
mkdir -p ~/.codex-work "$HOME/Library/Application Support/Codex-work"
open -n \
--env CODEX_HOME="$HOME/.codex-work" \
--env CODEX_ELECTRON_USER_DATA_PATH="$HOME/Library/Application Support/Codex-work" \
/Applications/ChatGPT.app \
--args --user-data-dir="$HOME/Library/Application Support/Codex-work"
A second window opens at the sign-in screen. Sign in with the other account (a private browser window helps if the browser is signed in to the first one). From then on that window, and every Codex CLI run with the same CODEX_HOME, uses that account. Your normal Codex app is unchanged.
Tested with the Codex app 26.1120 on macOS on November 24, 2026: the main window stayed signed in with its history, the second opened at the sign-in screen, both ran at the same time. This relies on how the app works today and may change with an update.
Shorter
The free codex-switch CLI wraps it: codex-switch app work. Switch for Codex does it with one click, shows which profile's window is open, and brings the right window to the front.
Questions
Can the Codex app use two accounts at once?
Yes, as two separate instances. Start the second with its own CODEX_HOME and its own window data (CODEX_ELECTRON_USER_DATA_PATH and --user-data-dir), then sign it in to the other account.
Why does the Codex app open the same account again?
It allows one instance and reads the login from ~/.codex. A second launch just brings back the first window.
Is the Codex app called ChatGPT now?
On the Mac the Codex app currently installs as ChatGPT.app, with the bundle id com.openai.codex.
Switch for Codex does this with one click on a Mac: every account in its own Codex app window and in your terminal, all open at once, from the app or the menu bar. $9.99 once, no subscription.