Answer: Codex supports CODEX_API_KEY and CODEX_ACCESS_TOKEN for authentication, plus workload identity variables OPENAI_FEDERATION_RULE_ID, OPENAI_IDENTITY_TOKEN_FILE, and OPENAI_WORKLOAD_IDENTITY_CONTEXT. For network/TLS settings it supports CODEX_CA_CERTIFICATE and SSL_CERT_FILE. Status: Confirmed Entry: tool/codex/settings/codex-auth-network-env-vars Revision: 1 Digest: sha256:9cab18f149bdcdad (changes whenever the content changes) Timeline: Created: 2026-11-13T03:48:26Z Last changed: 2026-11-13T03:48:26Z Last verified: 2026-11-20T13:36:06Z Next check: 2026-11-21T13:36:06Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of API key variable | CODEX_API_KEY | [1] | 2026-11-20 Access token variable | CODEX_ACCESS_TOKEN | [1] | 2026-11-20 Federation rule variable | OPENAI_FEDERATION_RULE_ID | [1] | 2026-11-20 Identity token file variable | OPENAI_IDENTITY_TOKEN_FILE | [1] | 2026-11-20 Workload identity context variable | OPENAI_WORKLOAD_IDENTITY_CONTEXT | [1] | 2026-11-20 CA certificate variable | CODEX_CA_CERTIFICATE | [1] | 2026-11-20 Fallback CA bundle variable | SSL_CERT_FILE | [1] | 2026-11-20 Sources: [1] OpenAI. "Environment variables". https://learn.chatgpt.com/docs/config-file/environment-variables.md Role: primary. Accessed: 2026-11-20T13:36:06Z Quote: "`CODEX_API_KEY` | Exec, review, TypeScript SDK, remote exec-server | Provides an API key to a non-interactive Codex process." (Supports: API key variable) Quote: "`CODEX_ACCESS_TOKEN` | CLI, app-server, trusted automation | Provides a ChatGPT or Codex access token for trusted automation." (Supports: Access token variable) Quote: "`OPENAI_FEDERATION_RULE_ID` | Workload identity | Selects the federation rule configured for the workload." (Supports: Federation rule variable) Quote: "`OPENAI_IDENTITY_TOKEN_FILE` | Workload identity | Points to the absolute path of the file that contains the current OIDC token or SPIFFE JWT-SVID." (Supports: Identity token file variable) Quote: "`OPENAI_WORKLOAD_IDENTITY_CONTEXT` | Workload identity | Optionally supplies bounded JSON identifiers for client-reported audit attribution." (Supports: Workload identity context variable) Quote: "`CODEX_CA_CERTIFICATE` | HTTPS, login, and WebSocket clients | Points to a PEM CA bundle for environments with corporate TLS interception or private root certificates." (Supports: CA certificate variable) Quote: "`SSL_CERT_FILE` | HTTPS, login, and WebSocket clients | Fallback PEM CA bundle path when `CODEX_CA_CERTIFICATE` is unset." (Supports: Fallback CA bundle variable) Snapshot SHA-256: 091de0e9ff7f1c504549c2b7d8fe42cf8d1bd782f5a759d58bdead958f579ff8 (captured 2026-11-13T03:48:25Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. On this check the text of [1] was unchanged since 2026-11-13T03:48:26Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:36:06Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:36:06Z Last attempt: 2026-11-20T13:36:06Z Notes and limitations: Extracted automatically from a single official source (section "Authentication and network"). Related: https://latestn.com/tool/codex/settings/codex-local-skills-location Where does Codex load local skills from? https://latestn.com/tool/codex/settings/codex-vs-editor-settings What is the difference between Codex settings and editor settings in the Codex IDE extension? https://latestn.com/tool/codex/settings/common-config-options How do I change the default model, approval prompts, or sandbox level in Codex? https://latestn.com/tool/codex/settings/choose-scan-profile Which scan profile should I choose for Codex Security in GitLab CI/CD? https://latestn.com/tool/codex/settings/cloud-environment-variables-secrets How do I set environment variables and secrets for Codex Cloud environments? https://latestn.com/tool/codex/settings/code-review-delivery-setting How do I change Codex code review delivery to inline or detached in ChatGPT settings? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:48:26Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/settings/codex-auth-network-env-vars/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/codex/settings/codex-auth-network-env-vars POST: https://latestn.com/dispute/tool/codex/settings/codex-auth-network-env-vars with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/settings/codex-auth-network-env-vars?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). What environment variables does Codex support for authentication and network settings? Revision 1, last verified 2026-11-20T13:36:06Z. https://latestn.com/tool/codex/settings/codex-auth-network-env-vars (accessed 2026-11-21T09:54:29Z). @misc{LatestN_tool_codex_settings_codex_auth_network_env_vars_r1, title = {What environment variables does Codex support for authentication and network settings?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/settings/codex-auth-network-env-vars}}, note = {Revision 1; digest sha256:9cab18f149bdcdad; last verified 2026-11-20T13:36:06Z; accessed 2026-11-21T09:54:29Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/codex/settings/codex-auth-network-env-vars