
npm install --global @openai/codex-securitynpx.ps1 because of ExecutionPolicy → error) · macOS/Linux: open Terminal.▶️ Usage summary
- Install:
npm install --global @openai/codex-security - Run your first scan from the repository directory:
cs scan . - Choose a scope and scan mode:
# Scan selected paths. - Then import it:
import { CodexSecurity } from "@openai/codex-security"; - to select a component:
cs policy .
codex-security — OpenAI's command-line tool and TypeScript SDK for finding, validating and fixing security vulnerabilities in your code with Codex.
What is codex-security?
codex-security is an open-source app on GitHub (openai/codex-security). OpenAI's command-line tool and TypeScript SDK for finding, validating and fixing security vulnerabilities in your code with Codex.
What can codex-security do?
- Scans whole repos, selected paths or Git changes
- Validates findings, generates patches and verifies fixes
- Drafts SECURITY.md policies and saves threat models
- Runs automatically in CI
How to install codex-security
See the ⚡ Quick install section at the top of the page — it has a ready-to-copy command taken from the author’s README, plus where to run it. For the full instructions, see the README at the end of the page.
Frequently asked questions about codex-security
Is codex-security free?
Yes. codex-security is an open-source project on GitHub, so you can download and use it for free.
Is codex-security hard to install?
No. You only need to run one command above.
What is codex-security written in?
codex-security is written mainly in TypeScript.
Download & source code
The source code, README and latest updates of codex-security are at github.com/openai/codex-security. The star count and update date on this page sync automatically from GitHub.
📖 Full guide
Loading the guide…