Skip to main content

write_codex_auth_file

Function write_codex_auth_file 

Source
pub fn write_codex_auth_file(cred: &OAuthCredential)
Expand description

Write credentials to ~/.codex/auth.json so the Codex CLI can use them without re-login.

Called automatically after add-account and token refresh for OpenAI accounts.