Codex Security CLI
Open-source CLI from OpenAI that scans Git repositories for vulnerabilities, tracks findings across runs, and verifies fixes inside CI/CD.
Updated 2026-07-29
Overview
The Codex Security CLI is an open-source command-line scanner from OpenAI that walks a Git repository, reports vulnerabilities, keeps state on those findings between runs, and checks whether a fix actually closed the issue it claimed to close. OpenAI open-sourced it and announced it from its own X account on July 29, 2026; it reached the Hacker News front page the same day. It is early access, and OpenAI has asked for feedback on it rather than presenting it as a settled product.
The design target is a pipeline, not a laptop. Most free scanners hand you a wall of findings on every run with no memory of the last one, which is how mute lists end up longer than finding lists. Tracking state across runs turns a scan into a diff — what is new since the last commit, what you already triaged, what a patch was supposed to resolve — and the fix-verification step is what makes it usable as a CI gate instead of a report you skim. The other half of the pitch is model-based analysis: a rule-based tool needs someone to hand-write a taint rule before it can follow a dataflow across four files, and OpenAI has more observation of the failure modes its own generations produce than any third-party vendor does.
My read: the client being open matters and the judgment being closed matters more. You can read this scanner, fork it, pin it, and run it without signing anything, which is more than Snyk or Veracode ever offered. But the model that decides whether a finding is critical or noise is not open, and neither is the eval set that defined "vulnerability" in the first place. There is also no published study measuring whether a same-family generator and auditor share blind spots, which is the load-bearing question when Codex writes the code and a Codex-branded tool grades it. Run it, and keep one scanner in the pipeline that OpenAI did not write.
Key features
Repository vulnerability scanning
Points at a Git repo and reports security issues across the codebase rather than only the current diff, using model reasoning instead of pattern rules alone, so multi-file dataflows don't need a hand-written taint rule to be followed.
Cross-run finding state
Tracks vulnerability state between scans, so each run reads as a delta against the last one — new issues, still-open issues, already-triaged issues — instead of the same undifferentiated wall of findings every build.
Fix verification
Re-checks whether a claimed fix actually closed the finding it was written for, which is the step that lets the tool sit in a pipeline as a gate rather than as a report someone reads later.
Built for CI/CD
Shipped as a CLI intended to live in a build pipeline, distributed through OpenAI's public Codex repo so you can read the source, fork it, and pin a version instead of letting a security gate auto-update under you.
Pricing
Free tier: The CLI is free and open source. What it charges for is model usage, which routes through your existing Codex plan or API access.
| Plan | Price | What's included |
|---|---|---|
| CLI | $0 | Open-source command-line tool from OpenAI's public repo — readable, forkable, and pinnable, with no seat count or contract. |
| Codex access | Included with Codex plans | Model-backed analysis runs through Codex access rather than the CLI itself. Check OpenAI's current Codex and API pricing for what your usage costs at scale. |
Open-source command-line tool from OpenAI's public repo — readable, forkable, and pinnable, with no seat count or contract.
Model-backed analysis runs through Codex access rather than the CLI itself. Check OpenAI's current Codex and API pricing for what your usage costs at scale.
Pros & cons
Pros
- ✓Genuinely open source — you can read the client, audit its calls, fork it, and pin a version rather than trusting a black-box security vendor
- ✓Tracks findings across runs, so a scan reads as a delta instead of the same wall of unranked issues every build
- ✓Verifies that fixes actually closed the finding, which is what makes it viable as a CI gate rather than a report-only scanner
- ✓Model-based analysis can follow logic across files without someone first writing a rule for that specific pattern
- ✓Free at the tool layer, which puts real scanning in reach of teams shipping AI-generated code with no security budget
Cons
- ×Day-one release in early access — the command surface and flags will churn, so pin the version before it gates anything
- ×The client is open but the model that ranks a finding as critical or noise is not, and neither is the eval set behind it
- ×Same-vendor auditing: Codex writes the code and a Codex-branded tool grades it, with no public study of whether same-family generator and auditor share blind spots
- ×Whether your unpatched inventory stays on the runner or leaves it is worth establishing from the source before wiring this into a pipeline
How it compares
| Tool | Best for | Pricing | Score |
|---|---|---|---|
| Codex Security CLI | — | Free, open source (model-backed analysis runs through Codex access) | 8.2/10 |
| Cursor vs Cursor → | Professional developers handling complex, multi-file refactors who want AI built into a familiar VS Code-based editor. | Freemium | 9.5/10 |
| GPT-5.5 | Developers and teams needing a frontier reasoning model for agentic coding workflows and large-codebase context handling. | API: $5/$30 per 1M tokens (in/out). ChatGPT Plus $20/mo, Pro $200/mo | 9.4/10 |
| Windsurf | Developers who want an AI IDE that autonomously plans, codes, tests, and iterates across a project with minimal input. | Freemium | 9.1/10 |
Compare head-to-head
Related reading
OpenAI Codex Security CLI: Setup and the Catch
OpenAI open-sourced the Codex Security CLI on July 29. What it scans, what to check before wiring it into CI, and who is grading whose homework.
Pacing the Frontier: 1,100 Lab Staff Sign On
A petition at pacingthefrontier.com drew 1,100+ signatures from OpenAI, Anthropic, Google and Meta staff. What it asks for, and what the count hides.
Claude Opus 5 Lands at Half of Fable 5's Price
Anthropic shipped Claude Opus 5 on July 24 at $5/$25 per million tokens, half Fable 5's rate, and named the tasks where it still loses to Mythos 5.
Ready to try Codex Security CLI?
Head to the official site to start with Codex Security CLI — pricing and plans are listed above.
Visit Codex Security CLI

