Liking cljdoc? Tell your friends :D

llm.sdk.providers.codex.responses

OpenAI Responses API (Codex) transport adapter. Covers both the standard OpenAI Responses API (api.openai.com) and the Codex backend (chatgpt.com/backend-api/codex).

For the Codex backend, auth is read from ~/.codex/auth.json (shared with the official OpenAI Codex CLI).

OpenAI Responses API (Codex) transport adapter.
Covers both the standard OpenAI Responses API (api.openai.com)
and the Codex backend (chatgpt.com/backend-api/codex).

For the Codex backend, auth is read from ~/.codex/auth.json
(shared with the official OpenAI Codex CLI).
raw docstring

build-request-codexclj

(build-request-codex profile request)
source

codex-backend-auth-headersclj

(codex-backend-auth-headers)

Build headers for the chatgpt.com/backend-api/codex endpoint. Includes Cloudflare bypass headers required by the Codex backend.

Build headers for the chatgpt.com/backend-api/codex endpoint.
Includes Cloudflare bypass headers required by the Codex backend.
sourceraw docstring

codex-backend-available?clj

(codex-backend-available?)

Return true if valid Codex backend credentials are available.

Return true if valid Codex backend credentials are available.
sourceraw docstring

make-transportclj

(make-transport)
source

parse-error-codexclj

(parse-error-codex profile status body)
source

parse-response-codexclj

(parse-response-codex profile raw)
source

parse-stream-event-codexclj

(parse-stream-event-codex _profile line)
source

read-codex-authclj

(read-codex-auth)

Read Codex OAuth tokens from ~/.codex/auth.json. Returns a map with :access-token, :refresh-token, :account-id, :auth-mode. Returns nil if the file doesn't exist or is invalid.

The parsed file is cached and invalidated by path, modified time, and length so backend calls do not reread stable Codex CLI credentials on every request.

Read Codex OAuth tokens from ~/.codex/auth.json.
Returns a map with :access-token, :refresh-token, :account-id, :auth-mode.
Returns nil if the file doesn't exist or is invalid.

The parsed file is cached and invalidated by path, modified time, and
length so backend calls do not reread stable Codex CLI credentials on
every request.
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