OpenAI just open-sourced Codex Security OpenAI has open-sourced Codex Security, a CLI and TypeScript SDK for finding, validating, and reviewing security issues in code, now available on npm as @openai/codex-security. The tool supports macOS, Linux, and Windows, requires Node.js 22 or later, and can scan repositories using OpenAI account credentials or an API key. Codex Security is an open-source CLI and TypeScript SDK for finding, validating, and reviewing security issues in code you own or have permission to assess. Note This package follows semantic versioning. Its public API may change between minor versions before 1.0.0 . The SDK and CLI support macOS, Linux, and Windows and require Node.js 22 or later. Scanning and exporting findings also require Python 3.10 or later. If you use Python 3.10, install the tomli package. Python is not needed to install the package or run --help and --version . Sign in with your OpenAI account or provide an OpenAI API key before running a scan. Scan only repositories you own or have explicit permission to assess. npm install @openai/codex-security npx codex-security login npx codex-security scan /path/to/repo Run npx codex-security --help to see all commands and npx codex-security scan --help for scan options. On a remote or headless machine, use npx codex-security login --device-auth . For CI and other unattended scans, set OPENAI API KEY or CODEX API KEY using your shell, CI secret, or secret manager. On Windows, set an API key in PowerShell with: $env:OPENAI API KEY = "