codex-auth login
April 27, 2026 ยท View on GitHub
Usage
codex-auth login
codex-auth login --device-auth
Behavior
- Runs
codex login, orcodex login --device-authwhen requested. - Reads the resulting
auth.jsonfrom the active Codex home. - Adds or updates the current account in
registry.json. - Stores a managed account snapshot under
accounts/<account file key>.auth.json. - Makes the logged-in account active when import succeeds.
Notes
codexmust be available onPATH.- Login-created accounts do not get an alias. Use
import <file> --alias <alias>when an alias is needed. - Invalid or incomplete auth files are rejected with the same auth validation rules used by
import.