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
Yes. Codex Security CLI is free to use.
Listed pricing: Free, open source (model-backed analysis runs through Codex access).
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.
Is Codex Security CLI free?
Yes. Codex Security CLI is free to use.
What the free tier covers: The CLI is free and open source. What it charges for is model usage, which routes through your existing Codex plan or API access.
Listed pricing: Free, open source (model-backed analysis runs through Codex access).
Pricing on this page has not been re-verified. The entry was last edited on , and no separate pricing check has been run since. Treat the figures as a record of what was published then and confirm on the official site.
What the free tier leaves out
Read straight off the plan list below. Vendors move features between tiers, so check the current split before you pay.
- 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.
Codex Security CLI pricing
| 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.
One plan carries no published number: Codex access, recorded as “Included with Codex plans”. Nothing is estimated in its place. The vendor's own pricing page is the only source for those figures.
Pricing on this page has not been re-verified. The entry was last edited on , and no separate pricing check has been run since. Treat the figures as a record of what was published then and confirm on the official site.
Is Codex Security CLI worth it?
You can test that on the free tier before paying anything. The recorded trade-offs are listed below, and any one of them can settle the question on its own.
The 8.2/10 AI Score is an editorial read of published capability, price and shipping pace. Nobody here has hands-on hours with Codex Security CLI. How we verify.
Worth it if
The strengths recorded against this entry.
- 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
Not worth it if
Any one of these blocks your use case.
- 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
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.
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. | Free Hobby + Individual $20/mo + Teams $40/user/mo + Enterprise Custom | 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 |
| Claude Code vs Claude Code → | Developers who want an agent that works inside an existing repo and toolchain rather than in a hosted editor, and who already pay for a Claude plan. | Included with Claude Pro $17/mo, Max 5x $100/mo, Max 20x $200/mo, Team and Enterprise plans | 9.3/10 |
Learn to use Codex Security CLI
Step-by-step, each one stamped with the date it was last checked against the docs.
Compare head-to-head
Related reading
Anthropic Traced More Than 23 Million Exchanges
Anthropic attributed more than 23 million exchanges to Moonshot between May and July in its September 2026 threat intelligence report.
23 Million Exchanges in Anthropic Misuse Report
Anthropic published its September 2026 threat intelligence report covering misuse cases disrupted between December 2025 and August 2026.
DeepSeek Flash KV Cache at 890 Bytes per Token
DeepSeek V4.1-Flash posts 90.6 on Terminal-Bench 2.1 against GPT-5.6 Sol at 88.8 while cutting KV cache to 890 bytes per token.
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

