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).
(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.
(codex-backend-available?)Return true if valid Codex backend credentials are available.
Return true if valid Codex backend credentials are available.
(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.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |