OpenAI open-sources Codex Security CLI for repository scans and CI
The package gives approved customers scriptable access to the security scanner OpenAI introduced in March as a GitHub-connected research preview.
By Ryan Merket · Published
Why it matters
OpenAI is placing application-security review inside the local and CI workflows used by coding agents. That gives Codex a route into security budgets while challenging AppSec vendors on validation, remediation and developer distribution.

Thibault "Tibo" Sottiaux (@thsottiaux), OpenAI's Codex lead, released an open-source command-line interface and TypeScript SDK on July 28th for finding, validating and patching vulnerabilities in software repositories.
Sottiaux announced the release in a post on X, pointing developers to the new Codex Security repository. The Apache-2.0-licensed package can scan complete repositories, selected paths or changes against a Git diff. It can also preserve scan history, compare findings over time and run inside continuous-integration pipelines.
The release extends the remit of a product Sottiaux has been building from inside OpenAI's coding operation. An OpenAI Forum biography says he previously led human-data work for Gemini and built machine-learning workflow infrastructure at Google DeepMind. He holds degrees in computer science, computational mathematics and applied mathematics from Universite catholique de Louvain.
From a connected service to a pipeline tool
OpenAI introduced Codex Security on March 6th following a private beta under the name Aardvark. The research preview connected directly to GitHub repositories, generated editable threat models, inspected repository history, tried to reproduce suspected vulnerabilities in isolated environments and proposed patches for human review.
The CLI and SDK put that scanner into local development and automated workflows. Developers can install the package with npm install @openai/codex-security, authenticate through an OpenAI account or API key and run npx codex-security scan against a repository. The package supports macOS, Linux and Windows, requires Node.js 22 or later, and uses Python 3.10 or later for scanning and exporting findings.
The scanner can ingest architecture documents and threat models as external knowledge, review only specified folders, or inspect changes relative to a branch such as origin/main. Results can be exported as JSON, CSV or SARIF, the standard format used by code-scanning systems. CI jobs can set a severity threshold that returns a failing exit code when the scan finds an issue at or above that level.
Codex Security also includes validate and patch commands. The first asks the agent to test a candidate finding; the second generates a proposed fix. OpenAI's current product documentation says patches still require human review and that the CLI and SDK remain a limited beta for approved customers and partners. The source code is public, while access to the underlying scanner remains gated.
OpenAI warns that generated scan artifacts may contain source excerpts, reproduction steps and vulnerability details. The repository instructs users to store those files outside the scanned Git worktree and away from public issue trackers or shared directories. A pre-commit hook can also block changes when a scan produces high-severity findings or fails to complete.
OpenAI pushes Codex into application security
Codex Security moves OpenAI deeper into a market already served by Snyk, Semgrep, GitHub, Checkmarx, Veracode and other application-security vendors. GitHub's Copilot Autofix, for example, can generate fixes from CodeQL alerts, while its agentic mode explores a repository and reruns CodeQL to validate a proposed change. Semgrep combines deterministic static analysis with AI-backed analysis and remediation. Snyk is similarly adding agent-focused controls and automated fixes across development workflows.
OpenAI's pitch centers on project-specific reasoning. Codex Security builds a model of trust boundaries, sensitive data and attacker entry points, then attempts to validate an attack path before presenting a finding. Traditional scanners frequently depend on rules, signatures or known data-flow patterns, though established vendors are increasingly combining those systems with language models.
The performance figures remain OpenAI's own. At the March research-preview launch, OpenAI said Codex Security had scanned more than 1.2 million commits across external beta repositories during the preceding 30 days, identifying 792 critical and 10,561 high-severity findings. OpenAI also listed 14 assigned CVEs associated with vulnerabilities reported to open-source projects. Those totals describe findings generated during a controlled beta, rather than an independent comparison with competing scanners.
Distribution gives Sottiaux's product a substantial opening. OpenAI said on June 2nd that Codex had passed 5 million weekly active users. The new package lets approved customers insert security checks into the same terminal, repository and CI environments where coding agents already operate, turning vulnerability review into another programmable Codex task.