codex-security
OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-se
What is codex-security?
OpenAI's Codex Security CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities. npm: https://www.npmjs.com/package/@openai/codex-security
Overview of codex-security
What it is
@openai/codex-security is a CLI and TypeScript SDK for finding, validating, and fixing security vulnerabilities in code. It is open-source under the Apache-2.0 license and developed by OpenAI.
Key features
- Scan repositories, selected paths, or Git changes; deep scans use parallel discovery workers.
- Validate candidate findings, generate patches, and verify existing fixes.
- Draft SECURITY.md policies and save threat models for later review.
- Browse saved scans, identify duplicates, assess severity, and suggest owners from source and Git history.
- Import GitHub code scanning alerts; export SARIF, JSON, or CSV findings to Linear or a findings service.
- Automate scans across repositories or project components, including in CI and containers.
Use cases
- Integrate security scanning into a CI/CD pipeline with the GitHub Action or containerized bulk scans.
- Review a single repository or an application spread across multiple repositories with deep scans and bulk campaigns.
- Generate and update repository security policies (SECURITY.md) and export threat models for documentation.
- Classify and deduplicate security findings, assign owners, and publish results to project management tools like Linear.
Getting started
Requires Node.js 22.13.0+ (within 22.x), or Node.js 24.x or 26.x, and Python 3.10+ (Python 3.10 also requires tomli).Install the CLI globally and sign in:bashnpm install --global @openai/codex-securitycs loginTo run a scan from the repository directory:bashcs scan .For detailed commands and options, see the repository README.
License and pricing
License: Apache-2.0. Pricing: open source (no cost).
Based on the project's public README and repository metadata.