head to head · open source
codex-security vs lean-ctx
codex-security has 11,140 GitHub stars, 979 forks, 220 open issues and last shipped today. lean-ctx has 3,890 stars, 353 forks, 9 open issues and last shipped yesterday. codex-security leads on adoption by 186% (11,140 vs 3,890 stars). codex-security is written in TypeScript under Apache-2.0; lean-ctx is written in Rust under Apache-2.0. codex-security has attracted 9% as many forks as stars, lean-ctx 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 20902 open source comparisons
Side by side
| codex-security | lean-ctx | |
|---|---|---|
| GitHub stars | ★ 11K | ★ 3.9K |
| License | Apache-2.0 | Apache-2.0 |
| Written in | TypeScript | Rust |
| Last push | 2026-10-20 | 2026-10-19 |
| Forks | ⑂ 979 | ⑂ 353 |
| 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 lean-ctx if
- You want the lean-ctx feature set and don't need the biggest community
- You prefer the Apache-2.0 license terms
- Your stack matches Rust
- You evaluated both and lean-ctx 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 lean-ctx
██╗ ███████╗ █████╗ ███╗ ██╗ ██████╗████████╗██╗ ██╗ ██║ ██╔════╝██╔══██╗████╗ ██║ ██╔════╝╚══██╔══╝╚██╗██╔╝ ██║ █████╗ ███████║██╔██╗ ██║ ██║ ██║ ╚███╔╝ ██║ ██╔══╝ ██╔══██║██║╚██╗██║ ██║ ██║ ██╔██╗ ███████╗███████╗██║ ██║██║ ╚████║ ╚██████╗ ██║ ██╔╝ ██╗ ╚══════╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝ LeanCTX Context Gateway for AI Systems. Control what your AI can see. LeanCTX sits between AI tools and the information they read. It selects task relevant context, applies supported access and content controls before delivery, and records the context operations and delivery evidence it can observe. Your…
read the full lean-ctx 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 lean-ctx more popular?
codex-security has 11,140 GitHub stars and lean-ctx has 3,890. codex-security has the larger community by that measure.
Are codex-security and lean-ctx free?
Both are open source. codex-security is licensed under Apache-2.0 and lean-ctx under Apache-2.0. Neither carries a licence fee.
What is the difference between codex-security and lean-ctx?
codex-security is written in TypeScript and lean-ctx in Rust. 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 lean-ctx?
Choose codex-security if you want the larger community (11,140 stars) or its Apache-2.0 licence terms. Choose lean-ctx if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.