auth.md +15 −1
30available only when you sign in with ChatGPT. If you sign in with an API key,30available only when you sign in with ChatGPT. If you sign in with an API key,
31Codex uses standard API pricing instead.31Codex uses standard API pricing instead.
32 32
3333Recommendation 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.We recommend API key authentication for programmatic Codex CLI workflows, such
34as CI/CD jobs. Don't expose Codex execution in untrusted or public environments.
35
36### Use Codex access tokens for enterprise automation
37
38In ChatGPT Enterprise workspaces, admins can allow permitted members to create
39Codex access tokens for trusted, non-interactive Codex local workflows. Use an
40access token when automation needs ChatGPT workspace access, ChatGPT-managed
41Codex entitlements, or enterprise workspace controls without a browser sign-in.
42
43Access tokens are intended for trusted scripts, schedulers, and private CI
44runners. For general OpenAI API calls, continue to use Platform API keys.
45
46For setup steps, permissions, rotation, and revocation guidance, see
47[Access tokens](https://developers.openai.com/codex/enterprise/access-tokens).
34 48
35## Secure your Codex cloud account49## Secure your Codex cloud account
36 50