# Codex Security

> Codex Security (v0.10.0, Nov 2026, ~13.5k stars) is OpenAI's tool for AI-driven security review of application code. The cs CLI, TypeScript SDK and GitHub Action scan a repo or a diff, validate findings, draft patches and export SARIF. The client is Apache-2.0, but it is not free to run: you need a ChatGPT sign-in with Codex access or an OpenAI API key billed per use (the Action example caps scans at about $5), or Bedrock, OpenRouter or Fireworks. Scans send relevant code to that model provider. It reviews your own code only; dependency and container scanning are not documented.

- Repository: https://github.com/openai/codex-security
- Official docs: https://learn.chatgpt.com/docs/security/cli
- Checked: 2026-11-14

## What it replaces
- Snyk: Find vulnerabilities in your own source code (SAST) (partial). Covers AI review of your own code, with patches and SARIF export, but needs a paid OpenAI or other AI account and sends code to it. It does not document dependency, container or infrastructure scanning.
  - Use it instead of paying for Snyk? Personal use: Partly (Runs locally only in part: The CLI runs on your computer or CI, but scans send relevant code to the AI model provide…; Needs something paid: ChatGPT account with Codex access, or OpenAI API key (pay per use)). Business: Partly.

## Facts, with sources

| Question | Status | Answer | Source | Checked |
|---|---|---|---|---|
| Runs on my machine? | Partial | The CLI runs on your computer or CI, but scans send relevant code to the AI model provider (OpenAI by default); a hosted cloud option also exists | https://learn.chatgpt.com/docs/security/setup | 2026-11-14 |
| Code licence | Confirmed | Apache-2.0 | https://github.com/openai/codex-security/blob/main/LICENSE | 2026-11-14 |
| Model weights licence | Confirmed | No model weights; it calls hosted models (OpenAI by default, or Bedrock, OpenRouter, Fireworks AI or Cheaper Inference) | https://github.com/openai/codex-security#other-providers | 2026-11-14 |
| Commercial use | Confirmed | The client code is Apache-2.0, which allows commercial use; use of the AI models is under the chosen provider's own terms | https://github.com/openai/codex-security/blob/main/LICENSE | 2026-11-14 |
| Paid services needed? | No | Needs a paid AI account: a ChatGPT sign-in with Codex access or an OpenAI API key billed per use (docs do not say which ChatGPT plans include it), or Bedrock/OpenRouter/Fireworks keys. Scans cost money; the Action example uses a $5 estimated limit per scan | https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#authentication | 2026-11-14 |
| Hardware | Partial | No minimum figures stated; the AI runs on the provider's servers, so any machine with Node.js 22.13+/24/26 and Python 3.10+ should do | https://learn.chatgpt.com/docs/security/cli | 2026-11-14 |
| Operating systems | Confirmed | Windows, macOS and Linux are all covered in the CLI docs (no formal support list); Linux sandboxing needs Bubblewrap | https://github.com/openai/codex-security/blob/main/sdk/typescript/docs/cli.md#authentication | 2026-11-14 |
| Setup effort | Confirmed | Medium; install the npm package, sign in with ChatGPT or set an API key, then run cs scan; the GitHub Action needs an API key secret and a workflow file | https://github.com/openai/codex-security#quick-start | 2026-11-14 |

GitHub: 14501 stars, 1162 forks, last push 2026-11-30, archived: no.

## Agent skills

Codex Security publishes 24 agent skills for coding agents such as Claude Code, Cursor and Codex, about 2955 installs in total (skills.sh, checked 2026-11-30). Some may be for the project's own developers. Installs show popularity, not quality or safety.

- attack-path-analysis: about 824 installs, security scans 2 pass, 1 warn. https://www.skills.sh/openai/codex-security/attack-path-analysis
- threat-model: about 220 installs, security scans 3 pass. https://www.skills.sh/openai/codex-security/threat-model
- security-scan: about 168 installs, security scans 2 pass, 1 fail. https://www.skills.sh/openai/codex-security/security-scan
- Install: `npx skills add openai/codex-security`

## Alternatives to Codex Security
- [Trail of Bits Skills](https://repoquarry.dev/projects/trailofbits-skills.md): Trail of Bits' marketplace of 40+ security plugins for Claude Code and Codex, from CodeQL and Semgrep scans to C, Rust and supply-chain audits.
- [Cloudflare Security Audit Skill](https://repoquarry.dev/projects/security-audit-skill.md): Cloudflare's coding-agent skill that runs a six-phase security audit of a codebase, with every finding re-checked by a separate agent.
- [Defending Code Reference Harness](https://repoquarry.dev/projects/defending-code-reference-harness.md): Anthropic's reference Claude Code skills and autonomous pipeline for threat modelling, vulnerability scanning, triage and patching. Not maintained.

## Related projects (they do other jobs)
- [OpenTRAP](https://repoquarry.dev/projects/opentrap.md): Burp Suite-style intercepting proxy with Repeater, Intruder and Collaborator, scanning via a headless OWASP ZAP engine. AGPL-3.0, Linux AppImage.
---
Source: RepoQuarry (https://repoquarry.dev/projects/codex-security). Data licence: CC BY 4.0. Quotes are from project documentation and belong to their authors.
