Skip to main content

auth_available

Function auth_available 

Source
pub fn auth_available() -> bool
Expand description

True when a usable Codex CLI OAuth token file is present (CODEX_HOME or ~/.codex/auth.json). Used by init detection; reuses the same parse the client does, so API-key-mode files (which the client rejects) don’t surface as a codex provider.