auth.md +24 −1
26 26
27OpenAI bills API key usage through your OpenAI Platform account at standard API rates. See the [API pricing page](https://openai.com/api/pricing/).27OpenAI bills API key usage through your OpenAI Platform account at standard API rates. See the [API pricing page](https://openai.com/api/pricing/).
28 28
2929Recommendation is to use API key authentication for programmatic Codex CLI workflows (for example CI/CD jobs). Do not expose Codex execution in untrusted or publicly triggerable environments.Features that rely on ChatGPT credits, such as [fast mode](https://developers.openai.com/codex/speed), are
30available only when you sign in with ChatGPT. If you sign in with an API key,
31Codex uses standard API pricing instead.
32
33Recommendation is to use API key authentication for programmatic Codex CLI workflows (for example CI/CD jobs). Don't expose Codex execution in untrusted or public environments.
30 34
31## Secure your Codex cloud account35## Secure your Codex cloud account
32 36
87 91
88These settings are commonly applied via managed configuration rather than per-user setup. See [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration).92These settings are commonly applied via managed configuration rather than per-user setup. See [Managed configuration](https://developers.openai.com/codex/enterprise/managed-configuration).
89 93
94## Login diagnostics
95
96Direct `codex login` runs write a dedicated `codex-login.log` file under
97your configured log directory. Use it when you need to debug browser-login or
98device-code failures, or when support asks for login-specific logs.
99
100## Custom CA bundles
101
102If your network uses a corporate TLS proxy or private root CA, set
103`CODEX_CA_CERTIFICATE` to a PEM bundle before logging in. When
104`CODEX_CA_CERTIFICATE` is unset, Codex falls back to `SSL_CERT_FILE`. The same
105custom CA settings apply to login, normal HTTPS requests, and secure websocket
106connections.
107
108```shell
109export CODEX_CA_CERTIFICATE=/path/to/corporate-root-ca.pem
110codex login
111```
112
90## Login on headless devices113## Login on headless devices
91 114
92If you are signing in to ChatGPT with the Codex CLI, there are some situations where the browser-based login UI may not work:115If you are signing in to ChatGPT with the Codex CLI, there are some situations where the browser-based login UI may not work: