head to head · open source
codex-security vs PyRIT
codex-security has 11,287 GitHub stars, 903 forks, 220 open issues and last shipped yesterday. PyRIT has 4,731 stars, 1,012 forks, 281 open issues and last shipped today. codex-security leads on adoption by 139% (11,287 vs 4,731 stars). codex-security is written in TypeScript under Apache-2.0; PyRIT is written in Python under MIT. codex-security has attracted 8% as many forks as stars, PyRIT 21%. PyRIT was the more recently maintained of the two, and both are self-hostable with no licence fee. The two share 1 topic tag (ai-security), so they are genuine substitutes rather than adjacent tools.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| codex-security | PyRIT | |
|---|---|---|
| GitHub stars | ★ 11K | ★ 4.7K |
| License | Apache-2.0 | MIT |
| Written in | TypeScript | Python |
| Last push | 2026-11-02 | 2026-11-03 |
| Forks | ⑂ 903 | ⑂ 1.0K |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick codex-security if
- You weight community size — 11K stars and counting
- You want the Apache-2.0 license terms
- Your stack matches TypeScript
- You value the larger contributor base for long-term maintenance
pick PyRIT if
- You want the PyRIT feature set and don't need the biggest community
- You prefer the MIT license terms
- Your stack matches Python
- You evaluated both and PyRIT fits your workflow better
About codex-security
Codex Security @openai/codex security is a CLI and TypeScript SDK for defining security policy and finding, validating, and fixing security vulnerabilities in your code. 👉👉 See the Codex Security documentation for full documentation. Some cybersecurity requests and protected findings require approval through Trusted Access for Cyber. To join the program, visit chatgpt.com/cyber. Quick start Requires Node.js 22.13.0 or later and Python 3.10 or later. For CI, set OPENAI API KEY instead of signing in. Generate SECURITY.md Draft repository wide or component scoped SECURITY.md guidance for future scans: The command…
read the full codex-security overview →
About PyRIT
Python Risk Identification Tool for generative AI (PyRIT) The Python Risk Identification Tool for generative AI (PyRIT) is an open source framework built to empower security professionals and engineers to proactively identify risks in generative AI systems. Check out our website for more information about how to use, install, or contribute to PyRIT. Review our security policy to report vulnerabilities privately through the Microsoft Security Response Center. Visit our Discord server to chat with the team and community. Trademarks and Citations This project may contain trademarks or logos for projects, products…
read the full PyRIT overview →
More in AI & Machine Learning
Related comparisons
More AI Security & Privacy projects
Compare either of these against the rest of the AI Security & Privacy field.
Frequently asked questions
Is codex-security or PyRIT more popular?
codex-security has 11,287 GitHub stars and PyRIT has 4,731. codex-security has the larger community by that measure.
Are codex-security and PyRIT free?
Both are open source. codex-security is licensed under Apache-2.0 and PyRIT under MIT. Neither carries a licence fee.
What is the difference between codex-security and PyRIT?
codex-security is written in TypeScript and PyRIT in Python. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, codex-security or PyRIT?
Choose codex-security if you want the larger community (11,287 stars) or its Apache-2.0 licence terms. Choose PyRIT if its feature set, stack or MIT licence fits better. Both are self-hostable.