Answer: Create a token from the service account's detail page by opening the account and selecting **Create token** in **Access tokens**, then naming the token, confirming the **Codex** scope, choosing an expiration, and selecting **Create** and saving the token in your secret manager. Status: Confirmed Entry: tool/codex/permissions-and-security/create-service-account-access-token Revision: 1 Digest: sha256:d076dd8e8e96326e (changes whenever the content changes) Timeline: Created: 2026-11-13T03:50:28Z Last changed: 2026-11-13T03:50:28Z Last verified: 2026-11-20T13:38:39Z Next check: 2026-11-21T13:38:39Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of action | Create token | [1] | 2026-11-20 scope | Codex | [1] | 2026-11-20 final step | Create | [1] | 2026-11-20 token visibility | only once | [1] | 2026-11-20 Sources: [1] OpenAI. "Service accounts". https://learn.chatgpt.com/docs/enterprise/service-accounts.md Role: primary. Accessed: 2026-11-20T13:38:39Z Quote: "Open the account and select **Create token** in **Access tokens**." (Supports: action) Quote: "Name the token, confirm the **Codex** scope, and choose an expiration." (Supports: scope) Quote: "Select **Create** and save the token in your secret manager." (Supports: final step) Quote: "The full token appears only once." (Supports: token visibility) Snapshot SHA-256: 2418e02ccae67c129d348312333fff0b2e493e93295bb8e73f971e1677848d94 (captured 2026-11-13T03:50:25Z) 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-13T03:50:28Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:38:39Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:38:39Z Last attempt: 2026-11-20T13:38:39Z Notes and limitations: Extracted automatically from a single official source (section "Create an access token"). Related: https://latestn.com/tool/codex/permissions-and-security/default-sandbox-approval-settings What are the default sandbox and approval settings for Codex? https://latestn.com/tool/codex/permissions-and-security/define-select-permission-profile How do I define and select a permission profile in Codex? https://latestn.com/tool/codex/permissions-and-security/deny-reads-paths-globs How do I deny reads to specific paths or globs in a Codex permission profile? https://latestn.com/tool/codex/permissions-and-security/configure-windows-sandbox How do I configure the Windows sandbox for Codex CLI? https://latestn.com/tool/codex/permissions-and-security/control-browser-computer-use How do I control browser and Computer Use access for Codex and ChatGPT Work? https://latestn.com/tool/codex/permissions-and-security/create-rules-file How do I create a rules file to control which commands Codex can run outside the sandbox? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:50:28Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/permissions-and-security/create-service-account-access-token/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/permissions-and-security/create-service-account-access-token POST: https://latestn.com/dispute/tool/codex/permissions-and-security/create-service-account-access-token with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/permissions-and-security/create-service-account-access-token?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I create an access token for a Codex service account? Revision 1, last verified 2026-11-20T13:38:39Z. https://latestn.com/tool/codex/permissions-and-security/create-service-account-access-token (accessed 2026-11-21T10:06:03Z). @misc{LatestN_tool_codex_permissions_and_security_create_service_account_access_token_r1, title = {How do I create an access token for a Codex service account?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/permissions-and-security/create-service-account-access-token}}, note = {Revision 1; digest sha256:d076dd8e8e96326e; last verified 2026-11-20T13:38:39Z; accessed 2026-11-21T10:06:03Z} } 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/permissions-and-security/create-service-account-access-token