@@ -111,6 +111,10 @@ pass it on stdin:
111111printenv OPENAI_API_KEY | npx @openai/codex-security login --with-api-key
112112```
113113
114+ Environment API keys are supplied directly to the current scan and are never
115+ saved to the Codex credential home or system keyring. Only an explicit
116+ ` login --with-api-key ` stores an API key.
117+
114118To pass a Codex access token explicitly, use
115119` login --with-access-token ` and provide the token on stdin. An access token
116120environment variable is not automatically used as a scan API key.
@@ -122,10 +126,16 @@ $env:OPENAI_API_KEY = "<your-api-key>"
122126npx @openai/codex-security scan C:\code\repository
123127```
124128
125- Check or remove the stored sign-in with ` npx @openai/codex-security login status ` and
126- ` npx @openai/codex-security logout ` . Codex Security reuses an existing file-based Codex
127- sign-in. If Codex stores credentials in the system keyring, run
128- ` npx @openai/codex-security login ` once before scanning.
129+ Check or remove the stored sign-in with ` npx @openai/codex-security login status `
130+ and ` npx @openai/codex-security logout ` . Codex Security keeps its sign-in in a
131+ private, stable Codex home at ` $CODEX_SECURITY_STATE_DIR/codex-home ` , or at
132+ ` $CODEX_HOME/state/plugins/codex-security/codex-home ` when no state directory is
133+ configured. Login, status, logout, and scans use the same home. Codex manages
134+ credentials using its configured file or system-keyring backend and honors
135+ managed-device policies. An existing file-based Codex sign-in is imported only
136+ when the dedicated home does not already contain stored credentials. Logging
137+ out prevents later scans from automatically reimporting that ambient sign-in
138+ until you explicitly log in again.
129139
130140An environment API key takes precedence over a stored sign-in by default.
131141When both a stored ChatGPT sign-in and an environment API key are available, an
0 commit comments