Expand description
Constants for the ChatGPT Codex backend and its OAuth flow.
Constantsยง
- ACCOUNT_
ID_ HEADER - The header carrying the
ChatGPTaccount 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
OpenAIauth issuer base URL.- OAUTH_
PORT - Local port for the OAuth loopback redirect listener.
- OAUTH_
SCOPES - OAuth scopes requested at login.
- ORIGINATOR
originatorheader 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_constraintis omitted). - TOKEN_
URL - OAuth token endpoint (authorization-code exchange and refresh grants).