Skip to main content

Module constant

Module constant 

Source
Expand description

Constants for the ChatGPT Codex backend and its OAuth flow.

Constantsยง

ACCOUNT_ID_HEADER
The header carrying the ChatGPT account identifier.
AUTHORIZE_URL
OAuth authorization endpoint (browser flow).
CLIENT_ID
Public OAuth client ID shared by Codex-compatible third-party clients.
CLIENT_VERSION
Client version sent to the models endpoint and as request metadata.
CODEX_BASE_URL
Base URL for the subscription Codex Responses backend.
DEVICE_CODE_URL
Device authorization request endpoint (headless flow).
DEVICE_TOKEN_URL
Device authorization token polling endpoint.
DEVICE_VERIFICATION_URL
Page where the user enters the device code.
ISSUER
OpenAI auth issuer base URL.
OAUTH_PORT
Local port for the OAuth loopback redirect listener.
OAUTH_SCOPES
OAuth scopes requested at login.
ORIGINATOR
originator header value identifying this client to the backend.
REDIRECT_URI
Redirect URI registered for CLIENT_ID.
RESIDENCY_HEADER
Optional residency hint header; only sent when the token carries a real constraint (no_constraint is omitted).
TOKEN_URL
OAuth token endpoint (authorization-code exchange and refresh grants).