Answer: Codex can use native gateway OAuth for browser or device-code sign-in, an API key for a scoped credential, or a credential helper if your organization supplies a command. Status: Confirmed Entry: tool/codex/permissions-and-security/gateway-authentication-methods Revision: 2 Digest: sha256:c8c7089511c8d8a1 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:49:40Z Last changed: 2026-11-17T14:01:37Z (Minimum CLI version for gateway-only auth: — → 0.166.0) Last verified: 2026-11-20T13:37:39Z Next check: 2026-11-21T13:37:39Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Authentication methods | native gateway OAuth | [1] | 2026-11-20 API key method | API key | [1] | 2026-11-20 Credential helper method | credential helper | [1] | 2026-11-20 Minimum CLI version for gateway-only auth | 0.166.0 | [1] | 2026-11-20 Sources: [1] OpenAI. "Connect to a gateway". https://learn.chatgpt.com/docs/enterprise/connect-to-a-gateway.md Role: primary. Accessed: 2026-11-20T13:37:39Z Quote: "Use native gateway OAuth for browser or device-code sign-in, an API key for a scoped credential, or a credential helper if your organization supplies a command." (Supports: Authentication methods) Quote: "an API key for a scoped credential" (Supports: API key method) Quote: "or a credential helper if your organization supplies a command" (Supports: Credential helper method) Quote: "For gateway-only authentication, Codex CLI 0.166.0 and later sends the access token" (Supports: Minimum CLI version for gateway-only auth) Snapshot SHA-256: 15eaf69816d5b67ce28e980ae9e19729e556aa4089e16c7c110d50ee7736d17b (captured 2026-11-17T14:01:37Z) 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-17T14:01:37Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:37:39Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:37:39Z Last attempt: 2026-11-20T13:37:39Z Notes and limitations: Extracted automatically from a single official source (section "Choose an authentication method"). Related: https://latestn.com/tool/codex/permissions-and-security/gateway-authentication-options What authentication options does a Codex gateway support? https://latestn.com/tool/codex/permissions-and-security/how-policies-combine How do Global, Local, and Codex Cloud policies combine in Codex Agent Security? https://latestn.com/tool/codex/permissions-and-security/inspect-repository-history How do I inspect repository history in the Codex Security workbench? https://latestn.com/tool/codex/permissions-and-security/fix-finding-in-conversation How do I fix a security finding from a conversation in Codex? https://latestn.com/tool/codex/permissions-and-security/fix-finding-in-ui How do I generate, review, apply, and verify a patch for a security finding in Codex? https://latestn.com/tool/codex/permissions-and-security/gateway-auth-headers What authentication and headers must a gateway preserve for Codex? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-17T14:01:37Z | changed | Minimum CLI version for gateway-only auth: — → 0.166.0 | [1] 2026-11-17T14:01:37Z | changed | Credential helper method: — → credential helper | [1] 2026-11-17T14:01:37Z | changed | API key method: — → API key | [1] 2026-11-17T14:01:37Z | changed | Authentication methods: — → native gateway OAuth | [1] 2026-11-17T14:01:37Z | changed | tab labels: Gateway OAuth → — | [1] 2026-11-17T14:01:37Z | changed | authentication methods: native gateway OAuth → — | [1] 2026-11-13T03:49:40Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/gateway-authentication-methods/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/permissions-and-security/gateway-authentication-methods POST: https://latestn.com/dispute/tool/codex/permissions-and-security/gateway-authentication-methods with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/gateway-authentication-methods?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). Which authentication methods can Codex use to connect to a gateway? Revision 2, last verified 2026-11-20T13:37:39Z. https://latestn.com/tool/codex/permissions-and-security/gateway-authentication-methods (accessed 2026-11-21T10:01:14Z). @misc{LatestN_tool_codex_permissions_and_security_gateway_authentication_methods_r2, title = {Which authentication methods can Codex use to connect to a gateway?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/gateway-authentication-methods}}, note = {Revision 2; digest sha256:c8c7089511c8d8a1; last verified 2026-11-20T13:37:39Z; accessed 2026-11-21T10:01:14Z} } 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/permissions-and-security/gateway-authentication-methods