codex logout in one instance logs out all Codex instances across machines
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?
- Sign into Codex on machine A.
- Sign into Codex on machine B, for example a remote VPS over SSH.
- Optionally sign into Codex on machine C / another server.
- Confirm Codex works on all machines.
- On machine A, run codex logout.
- 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
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗