Answer: Install the Codex Security TypeScript SDK by running `npm install @openai/codex-security`. Before starting a scan, set `OPENAI_API_KEY` or `CODEX_API_KEY`, use an existing file-backed Codex sign-in, or configure another provider. Status: Confirmed Entry: tool/codex/install-and-setup/install-sdk Revision: 1 Digest: sha256:ab927e3ab0d05f1f (changes whenever the content changes) Timeline: Created: 2026-11-13T03:53:51Z Last changed: 2026-11-13T03:53:51Z Last verified: 2026-11-20T13:42:23Z Next check: 2026-11-21T13:42:23Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of install command | npm install @openai/codex-security | [1] | 2026-11-20 API key option 1 | OPENAI_API_KEY | [1] | 2026-11-20 API key option 2 | CODEX_API_KEY | [1] | 2026-11-20 Sources: [1] OpenAI. "Codex Security TypeScript SDK". https://learn.chatgpt.com/docs/security/sdk.md Role: primary. Accessed: 2026-11-20T13:42:23Z Quote: "npm install @openai/codex-security" (Supports: install command) Quote: "set `OPENAI_API_KEY` or `CODEX_API_KEY`" (Supports: API key option 1, API key option 2) Snapshot SHA-256: e3edd6a6028564a55a3b57aa22f470079e659955017b0e8c18087940c6b27015 (captured 2026-11-17T14:07:44Z) 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:07:44Z, so the values verified then were kept. Cross-check: not-available at 2026-11-20T13:42:23Z. No independent second source is configured for this entry Last successful check: 2026-11-20T13:42:23Z Last attempt: 2026-11-20T13:42:23Z Notes and limitations: Extracted automatically from a single official source (section "Set up the SDK"). Related: https://latestn.com/tool/codex/install-and-setup/install-security-plugin How do I install the Codex Security plugin in the ChatGPT desktop app? https://latestn.com/tool/codex/install-and-setup/install-verify-cli How do I install and verify the Codex Security CLI? https://latestn.com/tool/codex/install-and-setup/pair-codex-micro-bluetooth How do I pair Codex Micro with Bluetooth? https://latestn.com/tool/codex/install-and-setup/install-codex-sdk How do I install the Codex SDK for TypeScript or Python? https://latestn.com/tool/codex/install-and-setup/install-curated-skills How do I install curated skills for local use in Codex? https://latestn.com/tool/codex/install-and-setup/install-enable-ide-extension How do I install or enable the Codex IDE extension in VS Code? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-13T03:53:51Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/codex/install-and-setup/install-sdk/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/install-and-setup/install-sdk POST: https://latestn.com/dispute/tool/codex/install-and-setup/install-sdk with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/codex/install-and-setup/install-sdk?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I install the Codex Security TypeScript SDK? Revision 1, last verified 2026-11-20T13:42:23Z. https://latestn.com/tool/codex/install-and-setup/install-sdk (accessed 2026-11-21T09:54:04Z). @misc{LatestN_tool_codex_install_and_setup_install_sdk_r1, title = {How do I install the Codex Security TypeScript SDK?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/codex/install-and-setup/install-sdk}}, note = {Revision 1; digest sha256:ab927e3ab0d05f1f; last verified 2026-11-20T13:42:23Z; accessed 2026-11-21T09:54:04Z} } 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/install-and-setup/install-sdk