Answer: Start the device-code flow by sending the account/login/start method with params type "chatgptDeviceCode", then show the returned verificationUrl and userCode to the user and wait for the account/login/completed notification. Status: Confirmed Entry: tool/codex/account-and-plans/chatgpt-device-code-login Revision: 4 Digest: sha256:e75c8b5e27467b54 (changes whenever the content changes) Timeline: Created: 2026-11-13T03:47:27Z Last changed: 2026-11-19T13:25:38Z (completion method: — → account/login/completed) Last verified: 2026-11-20T13:35:02Z Next check: 2026-11-21T13:35:02Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of start method | account/login/start | [1] | 2026-11-20 login type | chatgptDeviceCode | [1] | 2026-11-20 verification URL | https://auth.openai.com/codex/device | [1] | 2026-11-20 user code | ABCD-1234 | [1] | 2026-11-20 completion method | account/login/completed | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex App Server". https://learn.chatgpt.com/docs/app-server.md Role: primary. Accessed: 2026-11-20T13:35:02Z Quote: ""method": "account/login/start"" (Supports: start method) Quote: ""params": { "type": "chatgptDeviceCode" }" (Supports: login type) Quote: ""verificationUrl": "https://auth.openai.com/codex/device"" (Supports: verification URL) Quote: ""userCode": "ABCD-1234"" (Supports: user code) Quote: ""method": "account/login/completed"" (Supports: completion method) Snapshot SHA-256: 23c30b4f68ce6dc33c604b5d738266527b69882aa7c3743cd204212cfc49566b (captured 2026-11-19T13:25: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-19T13:25:38Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:35:02Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:35:02Z Last attempt: 2026-11-20T13:35:02Z Notes and limitations: Extracted automatically from a single official source (section "3b) Log in with ChatGPT (device-code flow)"). Related: 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/codex/account-and-plans/cli-sign-in How do I sign in to the Codex Security CLI? https://latestn.com/tool/cline/troubleshooting/troubleshoot-plugins How do I troubleshoot problems with Cline plugins? https://latestn.com/tool/cline/troubleshooting/vertex-ai-troubleshooting What should I do if Google Vertex AI isn't working after configuring it in Cline? https://latestn.com/tool/cline/troubleshooting/vertex-connection-troubleshooting How do I troubleshoot problems connecting Cline to Google Vertex AI? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-19T13:25:38Z | changed | completion method: — → account/login/completed | [1] 2026-11-19T13:25:38Z | changed | user code: — → ABCD-1234 | [1] 2026-11-19T13:25:38Z | changed | login type: — → chatgptDeviceCode | [1] 2026-11-19T13:25:38Z | changed | completion notification: account/login/completed → — | [1] 2026-11-19T13:25:38Z | changed | user code example: ABCD-1234 → — | [1] 2026-11-19T13:25:38Z | changed | params type: chatgptDeviceCode → — | [1] 2026-11-18T13:29:10Z | changed | user code example: — → ABCD-1234 | [1] 2026-11-18T13:29:10Z | changed | params type: — → chatgptDeviceCode | [1] 2026-11-18T13:29:10Z | changed | update notification: account/updated → — | [1] 2026-11-18T13:29:10Z | changed | user code: ABCD-1234 → — | [1] 2026-11-18T13:29:10Z | changed | login type: chatgptDeviceCode → — | [1] 2026-11-17T13:58:21Z | changed | update notification: — → account/updated | [1] 2026-11-17T13:58:21Z | changed | completion notification: — → account/login/completed | [1] 2026-11-17T13:58:21Z | changed | user code: — → ABCD-1234 | [1] 2026-11-17T13:58:21Z | changed | updated method: account/updated → — | [1] 2026-11-17T13:58:21Z | changed | completion method: account/login/completed → — | [1] 2026-11-17T13:58:21Z | changed | user code example: ABCD-1234 → — | [1] 2026-11-13T03:47:27Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/account-and-plans/chatgpt-device-code-login/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/chatgpt-device-code-login POST: https://latestn.com/dispute/tool/codex/account-and-plans/chatgpt-device-code-login with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/account-and-plans/chatgpt-device-code-login?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I log in to Codex app-server with ChatGPT using the device-code flow? Revision 4, last verified 2026-11-20T13:35:02Z. https://latestn.com/tool/codex/account-and-plans/chatgpt-device-code-login (accessed 2026-11-21T10:01:27Z). @misc{LatestN_tool_codex_account_and_plans_chatgpt_device_code_login_r4, title = {How do I log in to Codex app-server with ChatGPT using the device-code flow?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/account-and-plans/chatgpt-device-code-login}}, note = {Revision 4; digest sha256:e75c8b5e27467b54; last verified 2026-11-20T13:35:02Z; accessed 2026-11-21T10:01:27Z} } 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/chatgpt-device-code-login