/** * Builtin provider profile for OpenAI / Codex (ChatGPT backend). * * Registers the `openai` transport (aliases `codex`, `chatgpt`, `openai-codex`) * with BOTH auth paths: * - `api_key` โ€” standard `sk-...` keys against `https://api.openai.com/v1`. * - `oauth` โ€” RFC 7636 PKCE login (`cleo llm login openai` / `... codex`) * that authenticates a ChatGPT (Plus/Pro/Team) account against the Codex * backend. OAuth tokens do NOT work against `api.openai.com`; the runtime * routes them to `https://chatgpt.com/backend-api/codex` via * {@link CodexResponsesTransport} + {@link buildCodexOAuthHeaders}. * * PKCE constants are the upstream codex-rs CLI's published first-party values, * cross-verified against three independent clients (opencode, openclaw, * hermes-agent) and the official `openai/codex` source โ€” no per-app * registration required. Override the client id with * `CLEO_OPENAI_OAUTH_CLIENT_ID` for a custom OAuth application. * * @task T11669 * @epic SG-PROVIDER-AUTH-UNIFICATION (E4-CODEX-PKCE-LOGIN) */ import type { ProviderProfile } from '@cleocode/contracts'; /** * Canonical OpenAI/Codex OAuth PKCE client id (the codex-rs CLI first-party * client). Override via `CLEO_OPENAI_OAUTH_CLIENT_ID`. */ export declare const OPENAI_CODEX_OAUTH_CLIENT_ID = "app_EMoamEEZ73f0CkXaXp7hrann"; /** * OpenAI / Codex provider profile. * * `defaultModel` is a static FALLBACK used when no live catalog snapshot is * available (i.e. before `cleo llm refresh-catalog` has been run). At runtime, * `cleo llm use openai` / `cleo llm profile openai` derive the default * from the live catalog via `resolveProviderDefaultModel` and validate any * explicit `--model` against `validateModelForProvider` (T11773 ยท E8). * * Override per-credential: * `cleo llm use openai --model ` * `cleo llm profile openai --model ` * * @task T11773 */ export declare const openaiProfile: ProviderProfile; //# sourceMappingURL=openai.d.ts.map