A CLI tool that searches, lints, and rewrites code by matching abstract syntax tree patterns instead of plain text.
2 alternatives
2 best open-source alternatives to Semgrep (2026)
Looking for a free, open-source alternative to Semgrep? These 2 projects can replace it. Each one passed our quality screening and is explained in plain words, so you can compare stars, license and maintenance at a glance.
Quick comparison
| Project | Stars | License | Last commit |
|---|---|---|---|
| ast-grep/ast-grep | ★ 16.5K | MIT | 13 hours ago |
| opengrep/opengrep | ★ 3.3K | LGPL-2.1 | 12 hours ago |
16.5K+68 this week494RustMITUpdated 13 hours ago
An open-source static code analysis engine, a fork of Semgrep, for finding security issues and code patterns with semantic grep rules.
3.3K+30 this week290OCamlLGPL-2.1Updated 12 hours ago
FAQ
- Is there a free, open-source alternative to Semgrep?
- Yes. The most popular open-source alternatives to Semgrep on Repolode are ast-grep, opengrep.
- Which Semgrep alternative should I choose?
- ast-grep has the most GitHub stars and is released under MIT. Compare the license and last commit of each option in the table above before choosing.
How this list is made: AI reads each project's documentation to match it with products it can replace, every project passes our quality screening, and the list is ranked by GitHub stars. Stars updated Nov 6, 2026. How Repolode works