codex - 💡(How to fix) Fix codex logout in one instance logs out all Codex instances across machines [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#22577Fetched 2026-05-14 03:34:19
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
labeled ×2

Error Message

If global logout is intentional behavior, Codex should clearly warn before doing it, because it interrupts multi-machine workflows where Codex is running on local machines, remote VPSes, SSH servers, and other environments.

Root Cause

If global logout is intentional behavior, Codex should clearly warn before doing it, because it interrupts multi-machine workflows where Codex is running on local machines, remote VPSes, SSH servers, and other environments.

RAW_BUFFERClick to expand / collapse

What version of Codex CLI is running?

0.130.0

What subscription do you have?

Plus

Which model were you using?

gpt-5.5

What platform is your computer?

I ran codex logout one instance (I dont have correct uname -mprs) but it was Ubuntu 24.04

What terminal emulator and version are you using (if applicable)?

No response

Codex doctor report

What issue are you seeing?

Running "codex logout" in one Codex instance appears to log me out of all Codex instances, including unrelated instances on other machines/servers.

I use Codex across several environments at the same time: local, remote VPS, and other servers. If I log out from one terminal/session, the other Codex installations also lose authentication and require me to sign in again.

This is surprising and disruptive. I would expect codex logout to affect only the local credential store for the machine/session where I ran it, unless Codex explicitly offers and confirms a separate “log out everywhere” action.

What steps can reproduce the bug?

  1. Sign into Codex on machine A.
  2. Sign into Codex on machine B, for example a remote VPS over SSH.
  3. Optionally sign into Codex on machine C / another server.
  4. Confirm Codex works on all machines.
  5. On machine A, run codex logout.
  6. Go back to machine B/C and try to use Codex.

What is the expected behavior?

codex logout should only log out the current local Codex installation/session.

Other Codex installations on other machines should remain signed in unless I explicitly choose a global logout / revoke-all-sessions action.

If global logout is intentional behavior, Codex should clearly warn before doing it, because it interrupts multi-machine workflows where Codex is running on local machines, remote VPSes, SSH servers, and other environments.

Additional information

This is especially painful for users who keep Codex available across several machines for different projects or remote development workflows. One logout should not unexpectedly break unrelated Codex sessions elsewhere.

Related but not exact issues I found:

#2557: logout / auth.json invalidation behavior #6498 / #9634: refresh token already used with multiple sessions #9675: forced re-login affecting multiple instances

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

codex - 💡(How to fix) Fix codex logout in one instance logs out all Codex instances across machines [1 participants]