Codex.Auth (Codex SDK v0.7.2)

Copy Markdown View Source

API key resolution with CODEX_API_KEYauth.jsonOPENAI_API_KEY precedence.

Summary

Functions

api_key()

@spec api_key() :: String.t() | nil

auth_paths()

@spec auth_paths() :: [String.t()]

chatgpt_access_token()

@spec chatgpt_access_token() :: String.t() | nil

codex_home()

@spec codex_home() :: String.t()

direct_api_key()

@spec direct_api_key() :: String.t() | nil

infer_auth_mode()

@spec infer_auth_mode() :: :api | :chatgpt