Liking cljdoc? Tell your friends :D

llm.sdk.providers.codex.auth

Managed ChatGPT OAuth credentials for the Codex backend.

Managed ChatGPT OAuth credentials for the Codex backend.
raw docstring

codex-backend-auth-headersclj

(codex-backend-auth-headers)
(codex-backend-auth-headers profile)

Build Codex backend headers without initiating a refresh. With a profile, explicit host credentials take precedence over the managed auth file.

Build Codex backend headers without initiating a refresh. With a profile,
explicit host credentials take precedence over the managed auth file.
sourceraw docstring

codex-backend-available?clj

(codex-backend-available?)

Return true when the managed auth file contains an access token.

Return true when the managed auth file contains an access token.
sourceraw docstring

read-codex-authclj

(read-codex-auth)

Read and cache managed Codex CLI credentials from CODEX_HOME/auth.json. Returns nil when the file is absent, malformed, or lacks an access token.

Read and cache managed Codex CLI credentials from CODEX_HOME/auth.json.
Returns nil when the file is absent, malformed, or lacks an access token.
sourceraw docstring

request-authclj

(request-auth profile)

Resolve authentication for one native Codex request.

Explicit :profile/auth-token credentials are host-managed and never touch or refresh auth.json. Managed file credentials refresh proactively when their access JWT expires within five minutes or last_refresh is over eight days old. The returned one-shot :recover! callback reloads the file before a 401 recovery and returns fresh headers.

Resolve authentication for one native Codex request.

Explicit :profile/auth-token credentials are host-managed and never touch or
refresh auth.json. Managed file credentials refresh proactively when their
access JWT expires within five minutes or last_refresh is over eight days
old. The returned one-shot :recover! callback reloads the file before a 401
recovery and returns fresh headers.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close