head to head · open source
codex-security vs toolhive
codex-security has 10,750 GitHub stars, 797 forks, 220 open issues and last shipped yesterday. toolhive has 2,187 stars, 297 forks, 369 open issues and last shipped yesterday. codex-security leads on adoption by 392% (10,750 vs 2,187 stars). codex-security is written in TypeScript under Apache-2.0; toolhive is written in Go under Apache-2.0. codex-security has attracted 7% as many forks as stars, toolhive 14%. toolhive 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 | toolhive | |
|---|---|---|
| GitHub stars | ★ 11K | ★ 2.2K |
| License | Apache-2.0 | Apache-2.0 |
| Written in | TypeScript | Go |
| Last push | 2026-09-17 | 2026-09-17 |
| Forks | ⑂ 797 | ⑂ 297 |
| 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 toolhive if
- You want the toolhive feature set and don't need the biggest community
- You prefer the Apache-2.0 license terms
- Your stack matches Go
- You evaluated both and toolhive 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 toolhive
ToolHive is an open source, Apache 2.0 licensed platform written in Go for running and managing Model Context Protocol (MCP) servers. It lives in the AI and machine learning ecosystem, specifically MCP tooling and AI security and privacy. The project addresses the problem of exposing MCP servers to AI coding assistants and enterprise clients without broad local access or unmanaged behavior.
read the full toolhive 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 toolhive more popular?
codex-security has 10,750 GitHub stars and toolhive has 2,187. codex-security has the larger community by that measure.
Are codex-security and toolhive free?
Both are open source. codex-security is licensed under Apache-2.0 and toolhive under Apache-2.0. Neither carries a licence fee.
What is the difference between codex-security and toolhive?
codex-security is written in TypeScript and toolhive in Go. 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 toolhive?
Choose codex-security if you want the larger community (10,750 stars) or its Apache-2.0 licence terms. Choose toolhive if its feature set, stack or Apache-2.0 licence fits better. Both are self-hostable.