Answer: Sign in with your ChatGPT account by running `npx @openai/codex-security login`. On a machine without a browser, add `--device-auth` if your workspace allows it and follow the displayed sign-in instructions. Status: Confirmed Entry: tool/codex/account-and-plans/cli-sign-in Revision: 1 Digest: sha256:782385eae2f7776b (changes whenever the content changes) Timeline: Created: 2026-11-13T03:52:56Z Last changed: 2026-11-13T03:52:56Z Last verified: 2026-11-20T13:41:27Z Next check: 2026-11-21T13:41:27Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of Sign-in command | npx @openai/codex-security login | [1] | 2026-11-20 Browserless option | --device-auth | [1] | 2026-11-20 Scan auth flag | --auth chatgpt | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex Security CLI quickstart". https://learn.chatgpt.com/docs/security/cli.md Role: primary. Accessed: 2026-11-20T13:41:27Z Quote: "npx @openai/codex-security login" (Supports: Sign-in command) Quote: "On a machine without a browser, add `--device-auth` if your workspace allows" (Supports: Browserless option) Quote: "Use `--auth chatgpt` in the scan commands below to select" (Supports: Scan auth flag) Snapshot SHA-256: 167f7e160e9f2b85a5d4d78806dc08d84f77a4cadadbb17e22263619eb6331dc (captured 2026-11-17T14:06:26Z) 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:06:28Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:41:27Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:41:27Z Last attempt: 2026-11-20T13:41:27Z Notes and limitations: Extracted automatically from a single official source (section "Sign in"). Related: https://latestn.com/tool/codex/account-and-plans/codex-for-oss-program How do I apply to the Codex for OSS program and what does it include? https://latestn.com/tool/codex/account-and-plans/composer-predictions-requirements What do I need to use composer predictions in Codex? https://latestn.com/tool/codex/account-and-plans/linear-codex-plan-requirements What plans are required to use Codex in Linear, and what must Enterprise admins enable? https://latestn.com/tool/codex/account-and-plans/chatgpt-device-code-login How do I log in to Codex app-server with ChatGPT using the device-code flow? https://latestn.com/tool/codex/account-and-plans/check-auth-sign-out How do I check whether I'm signed in to Codex or sign out? https://latestn.com/tool/codex/account-and-plans/cli-login How do I log in to Codex from the terminal? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:52:56Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/account-and-plans/cli-sign-in/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/account-and-plans/cli-sign-in POST: https://latestn.com/dispute/tool/codex/account-and-plans/cli-sign-in with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/account-and-plans/cli-sign-in?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I sign in to the Codex Security CLI? Revision 1, last verified 2026-11-20T13:41:27Z. https://latestn.com/tool/codex/account-and-plans/cli-sign-in (accessed 2026-11-21T10:03:07Z). @misc{LatestN_tool_codex_account_and_plans_cli_sign_in_r1, title = {How do I sign in to the Codex Security CLI?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/account-and-plans/cli-sign-in}}, note = {Revision 1; digest sha256:782385eae2f7776b; last verified 2026-11-20T13:41:27Z; accessed 2026-11-21T10:03:07Z} } 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/account-and-plans/cli-sign-in