codex login
The subcommand that manages Codex login (paired with logout for clearing credentials).
Specs
Verified:
- Kind
- CLI subcommand
- Syntax
- codex login [options]
- First seen
- —unverified
- Paired with
- codex logout (clears credentials)
The official help for `codex login` reads "Manage login"; its pair `codex logout` reads "Remove stored authentication credentials". First-seen version is unverified.
Key features
- Login management
- logout clears credentials
Use cases
Switching accounts, expired credentials, or chasing an auth finding from `codex doctor`.
Install
`codex login` starts the login flow; `codex logout` removes local credentials.
Caveats
ChatGPT-account login and API-key login are different paths — choosing the wrong one yields a different model surface.
Added
Updated
Verified