head to head · open source
codex-security vs AI-Infra-Guard
codex-security has 10,750 GitHub stars, 797 forks, 220 open issues and last shipped yesterday. AI-Infra-Guard has 6,415 stars, 594 forks, 35 open issues and last shipped yesterday. codex-security leads on adoption by 68% (10,750 vs 6,415 stars). codex-security is written in TypeScript under Apache-2.0; AI-Infra-Guard is written in Python under Apache-2.0. codex-security has attracted 7% as many forks as stars, AI-Infra-Guard 9%. codex-security 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 8884 open source comparisons
Side by side
| codex-security | AI-Infra-Guard | |
|---|---|---|
| GitHub stars | ★ 11K | ★ 6.4K |
| License | Apache-2.0 | Apache-2.0 |
| Written in | TypeScript | Python |
| Last push | 2026-09-17 | 2026-09-17 |
| Forks | ⑂ 797 | ⑂ 594 |
| 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 AI-Infra-Guard if
- You want the AI-Infra-Guard 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 AI-Infra-Guard fits your workflow better
About codex-security
Codex Security is OpenAI's command line tool and TypeScript SDK, published on npm as @openai/codex security , that finds, validates, and fixes security vulnerabilities in a codebase, and it serves application security engineers, DevSecOps teams, and developers who want that scanning to run from their own terminal or CI.
read the full codex-security overview →
About AI-Infra-Guard
AI Infra Guard (A.I.G) is a full stack AI red teaming platform from Tencent Zhuque Lab that scans agents, MCP servers, agent skills and AI infrastructure for security risk and evaluates large language models against jailbreak attacks, built for security engineers and AI platform teams that need to self examine their own AI deployments.
read the full AI-Infra-Guard 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 AI-Infra-Guard more popular?
codex-security has 10,750 GitHub stars and AI-Infra-Guard has 6,415. codex-security has the larger community by that measure.
Are codex-security and AI-Infra-Guard free?
Both are open source. codex-security is licensed under Apache-2.0 and AI-Infra-Guard under Apache-2.0. Neither carries a licence fee.
What is the difference between codex-security and AI-Infra-Guard?
codex-security is written in TypeScript and AI-Infra-Guard 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 AI-Infra-Guard?
Choose codex-security if you want the larger community (10,750 stars) or its Apache-2.0 licence terms. Choose AI-Infra-Guard if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.