head to head · open source

codex-security vs garak

codex-security has 11,287 GitHub stars, 903 forks, 220 open issues and last shipped yesterday. garak has 9,834 stars, 1,436 forks, 429 open issues and last shipped yesterday. codex-security leads on adoption by 15% (11,287 vs 9,834 stars). codex-security is written in TypeScript under Apache-2.0; garak is written in Python under Apache-2.0. codex-security has attracted 8% as many forks as stars, garak 15%. codex-security was the more recently maintained of the two, and both are self-hostable with no licence fee.

Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.

codex-security ★ 11K garak ★ 9.8K category AI & Machine Learning

← all 20902 open source comparisons

Side by side

codex-security garak
GitHub stars ★ 11K ★ 9.8K
License Apache-2.0 Apache-2.0
Written in TypeScript Python
Last push 2026-11-02 2026-11-02
Forks ⑂ 903 ⑂ 1.4K
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

full codex-security profile →

pick garak if

  • You want the garak feature set and don't need the biggest community
  • You prefer the Apache-2.0 license terms
  • Your stack matches Python
  • You evaluated both and garak fits your workflow better

full garak profile →

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 garak

garak, LLM vulnerability scanner Generative AI Red teaming & Assessment Kit garak checks if an LLM can be made to fail in a way we don't want. garak probes for hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks, and many other weaknesses. If you know nmap or msf / Metasploit Framework, garak does somewhat similar things to them, but for LLMs. garak focuses on ways of making an LLM or dialog system fail. It combines static, dynamic, and adaptive probes to explore this. garak 's a free tool. We love developing it and are always interested in adding functionality to…

read the full garak 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 garak more popular?

codex-security has 11,287 GitHub stars and garak has 9,834. codex-security has the larger community by that measure.

Are codex-security and garak free?

Both are open source. codex-security is licensed under Apache-2.0 and garak under Apache-2.0. Neither carries a licence fee.

What is the difference between codex-security and garak?

codex-security is written in TypeScript and garak 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 garak?

Choose codex-security if you want the larger community (11,287 stars) or its Apache-2.0 licence terms. Choose garak if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.