ChatGPT Accounts Keep Mixing Up? CC Switch: One Card, One Login
Three differently named Codex cards kept landing on the same ChatGPT email. Split Auth Center, provider cards, and live login—then bind one account per card.

11 p.m. I click OpenAI Official us on the Codex provider page again.
The card is named us, so my brain assumes the US mailbox. The banner and quota stay stubborn—still tamimdbgirased@gmail.com. Flip back to t1. Same email. Three cards. Three pretty names. One shared login.
Nothing exotic about the setup: Windows, CC Switch 4.0.4, Codex on official ChatGPT auth. Quotas and countdowns in the screenshots are from 8 Oct 2026. The three emails are the real ones from that night—kept for comparison, never with tokens.
A correct setup is only two jobs: log each account into Auth Center, then point every provider card at its own email. Creating three cards, or parking three accounts in Auth Center alone, does not auto-bind them 1:1.
Final mapping:
Provider card | Bound ChatGPT account | After the fix |
|---|---|---|
OpenAI Official t1 |
| Re-authorized; switch OK |
OpenAI Official us |
| Binding added; switch OK |
Temp |
| Bound on its own; switch OK |

Below: what is only a nickname, and what actually writes identity.
Symptom: three differently named cards, one account#
I had created three official cards: OpenAI Official t1, OpenAI Official us, and Temp. Switching them always showed the same login.

The subtitle “account follows the current Codex CLI login” was the whole clue. It means: the card is not pinned to a fixed account; it reuses Codex’s native login. Labels like t1, us, or Temp do not teach the app three mailboxes.
Three places to look:
Layer | Job | What to check |
|---|---|---|
CC Switch Auth Center | Stores authorized ChatGPT accounts | All three emails present and usable |
Codex provider card | Chooses which account a switch uses | “Login method” set to a concrete email |
Live Codex login | Credentials the client actually reads | After switch: target email; old process restarted |

Codex usually caches login in ~/.codex/auth.json, or in the OS credential store; file mode respects CODEX_HOME. CLI and IDE extensions can share that cache. OpenAI auth docs
What that night actually showed#
I checked version, local DB shape, login stash, and the current Codex identity—account ids and emails only, never access or refresh tokens in the write-up.
- The build already supports multi-account binding. CC Switch 4.0.4; no upgrade required for this fix. Multi ChatGPT accounts and per-card binding shipped in v3.20.0. CC Switch v3.20.0 notes
- None of the three cards had an independent bind. Metadata had no managed account, so all sat in “follow Codex login.”
- Two distinct accounts were already on disk. Stash held
for***; live Codex wastam***; theusaccount was not logged in yet. - Temp still carried an old snapshot for
for***, not the expectedtam***—names and stale snapshots are not identity. - t1’s refresh token was dead. After restoring the bind, switching t1 threw “Refresh Token invalid or expired,” so re-auth was required.
Order of work: straighten bindings → re-authorize expired t1 → log in and bind missing us.
Backup before you poke#
Quit CC Switch fully. If it stays in the tray after closing the window, exit from the tray so nothing writes the DB mid-backup.
Default paths in this case (use yours if you relocated config):
Path | Role |
|---|---|
| Providers and card binds |
| Managed ChatGPT accounts |
| Native login stash during switches |
| App settings |
| File-mode Codex login |
| Codex config |
Copy the .cc-switch data dir plus Codex auth.json / config.toml somewhere local. Treat them like password files—do not zip them with a tutorial. Credential storage
Everything below is UI-only. No hand-pasted tokens. No live DB surgery.
Save each account in Auth Center#
Left sidebar → key icon → Auth Center → ChatGPT section. Each row is an authorized account—different object from a home-page provider card.
Click Add account. CC Switch starts login, shows a one-time code, and opens the browser gate.
In the browser:
- Confirm the email at the top is the one you mean.
- If the browser stuck on another account, switch first.
- Enter the current code from CC Switch.
- Return and wait until that email appears in the list.
Do not reuse old codes from earlier attempts.
If an existing account expired, open … on that row → Re-login. That is how t1 was revived while keeping the card↔account link. Re-login still needs the same mailbox—for t1, forestemenny@gmail.com, not whatever the browser defaults to (tamimdbgirased@gmail.com in this case).
When “enable device-code login” blocks you#
Re-authorizing t1, the browser showed a gate and greyed out Continue:

- Open ChatGPT security settings from the prompt (or navigate yourself).
- Sign in as the target account and turn device-code login on.
- Back in CC Switch, cancel the stuck flow.
- Re-login on that row (or Add account again).
- Finish with a fresh code.
Org-managed workspaces may lock device-code behind admin policy. OpenAI’s docs say the same: enable the method before using it. Device-code auth
You may see codex login --device-auth in the prompt. This case was started by CC Switch—restart the in-app flow; no extra CLI pass required.


Separate quotas mean auth is alive again. You still have to confirm each card selected an email.
Point every provider card at a concrete account#
This is the step that stops “every switch is the same login.”
Codex provider page, card by card:
- Pencil → edit.
- Login method dropdown → pick the email.
- Save.
- Home: subtitle should show that email.
In 4.0.4 the dropdown still offers Follow Codex login. For one-card-one-account, choose the concrete emails. 4.0.4 UI copy
Card | Login method |
|---|---|
OpenAI Official t1 |
|
OpenAI Official us |
|
Temp |
|
Subtitle quick read:
Subtitle | Meaning |
|---|---|
Concrete email | Bound |
Follows current Codex CLI login | Still following native login |
Bound account unavailable / re-login needed | Bound account needs more work |
Auth Center’s Default badge does not replace per-card binds.
Logged into us—still running as tam?#
After us logged in, Auth Center showed the third email, but the row did not yet say “1 provider using it”:

The us card on the home page still said it follows the current Codex CLI login:


Together: logging into us is not the same as binding the us card. Choosing whereamifromandwhoami@gmail.com on that card and saving closed the gap.
Verify the switch—then restart clients#
Enable each card. Check the direct-connect banner, “in use,” and email. Quotas are helpers only—they can match by chance and drift over time. Identity is the mailbox and what got written.
Acceptance that night#
Action | Email verified | Result |
|---|---|---|
Enable t1 after re-auth |
| OK |
t1 → Temp |
| OK |
After us bind, Temp → us |
| OK |
Old processes may keep the previous login in memory. CC Switch also asks you to restart the client.
- Codex CLI: kill and relaunch.
- Desktop app: full quit, reopen, check identity.
- IDE extension: reload the host/extension, then check.
One CODEX_HOME holds one file login. Per-card binds make switches accurate; they do not magically isolate three already-running clients.
Troubleshooting table#
Symptom | Check first | Fix |
|---|---|---|
All three cards show one account | Subtitle still “follows Codex CLI login”? | Pick a concrete email per card and save |
New account in Auth Center; home still old | Is the new account bound to the target card? | Edit that card’s login method |
Browser Continue disabled | Device-code login allowed on target account? | Owner enables it; new code |
t1 expired / refresh token dead | Auth status for that row | Re-login on that email |
Add-account lands on the wrong mailbox | Which account the browser is signed into | Switch email before authorizing |
Card email correct; old session unchanged | Process still up? Which config dir? | Restart client; verify live login |
Matching quotas look “mixed” again | Email + live identity | Trust identity; quota is secondary |
Aside: what I poked under the hood (skippable)#
Prefer the UI path above. That night’s full dig also matched 4.0.4 source for subtitle/bind fields, quit-and-backup, restored managed-account refs in the app’s own shape, cleared stale login snapshots on cards, and checked DB integrity. Provider metadata looks roughly like this—accountId is a local Auth Center id, not an email or token:
{
"authBinding": {
"source": "managed_account",
"authProvider": "codex_oauth",
"accountId": "local account id"
}
}Shown for intuition only—do not rewrite the DB while the app is running. CC Switch 4.0.4 bind definition
Adding a fourth account later#
- Add the account in Auth Center; confirm email in the browser
- Enable device-code login as the account owner if needed
- Confirm the new email appears in Auth Center
- Create/edit a provider card; select that email; save
- Confirm the subtitle shows the email
- Enable the card; verify live identity
- Restart clients that should pick it up
Appendix: optional read-only email check#
If Codex uses file credentials, this PowerShell only prints email and last refresh—never the token:
$taskAuthDirectory = if ($env:CODEX_HOME) {
$env:CODEX_HOME
} else {
Join-Path $env:USERPROFILE '.codex'
}
$taskAuthFile = Join-Path $taskAuthDirectory 'auth.json'
$taskAuth = Get-Content -Raw -LiteralPath $taskAuthFile | ConvertFrom-Json
if (-not $taskAuth.tokens.id_token) {
throw 'No ChatGPT id_token found; confirm credential storage and config dir.'
}
$taskPayload = $taskAuth.tokens.id_token.Split('.')[1]
$taskPayload = $taskPayload.Replace('-', '+').Replace('_', '/')
switch ($taskPayload.Length % 4) {
2 { $taskPayload += '==' }
3 { $taskPayload += '=' }
1 { throw 'Login identity payload has a bad length.' }
}
$taskClaims = [Text.Encoding]::UTF8.GetString(
[Convert]::FromBase64String($taskPayload)
) | ConvertFrom-Json
[pscustomobject]@{
Email = $taskClaims.email
LastRefresh = $taskAuth.last_refresh
}Decode-only: no JWT signature check, no network, not proof the token is still valid. OS credential store or custom dirs → verify in the client or point at the real path.
Based on troubleshooting on 8–9 Oct 2026. Case emails kept; no tokens, credential backups, or one-time codes.
Related articles

How I Use AI on a Mac to Develop Fully Offline Windows Host Software
My working setup: the Mac goes online over Wi-Fi, and Codex / Claude Code run on the Mac. Windows holds the project, talks to devices, and runs the builds, with no Internet egress, talking to the Mac only over a LAN. This tutorial explains the design and includes deployment prompts I can give directly to an AI.


AI OTPs Abroad: Choose a Stable U.S. Number First
Using OpenAI, Anthropic, and other AI tools from China, a stable SMS number beats a cheaper SIM. Why I stick with Ultra Mobile PayGo + Wi‑Fi Calling—and which bargain plans to skip.
Comments
No comments yet — be the first to leave one.