Gitleaks

Input—per 1M tokens
Output—per 1M tokens
Context—tokens
WeightsClosed

About

Gitleaks is ranked #7 of 19 in secrets scanning software on Inferse. It runs on Linux, macOS, Self-hosted, Windows. There is a free plan.

Compared on secrets scanning software

Free plan
Yesgithub.com
Supported VCS
GitHub, GitLab, Azure DevOps, Gitea, Bitbucketgithub.com
CI/CD scanning
Yesgithub.com
Pre-commit scanning
Yesgithub.com
Pull-request scanning
Yesgithub.com
Custom detection rules
Yesgithub.com

Facts

Purpose
Gitleaks detects secrets such as passwords, API keys, and tokens in Git repositories, files, and stdin.github.com · 2 Oct 2026
Maintenance status
The project says it is feature complete and future releases will be security patches only.github.com · 2 Oct 2026
Scan modes
Gitleaks supports scanning Git repositories, directories or files, and data streamed through stdin.github.com · 2 Oct 2026
Detection rules
Users can configure custom detection rules using Go regular expressions, entropy checks, path matching, keywords, and allowlists.github.com · 2 Oct 2026
Baselines
A report can be used as a baseline so subsequent scans report only new findings.github.com · 2 Oct 2026
Reports
Gitleaks can output reports in JSON, CSV, JUnit, SARIF, or template format.github.com · 2 Oct 2026
Integrations
The project documents use as a pre-commit hook and as a GitHub Action.github.com · 2 Oct 2026
Installation
The project documents installation through Homebrew, Docker, Go, and prebuilt release binaries.github.com · 2 Oct 2026
Platforms
The releases page lists binaries for macOS, Linux, and Windows architectures.github.com · 2 Oct 2026
Secret handling
The CLI has a redaction option that can redact secrets in logs and standard output, with a default redaction value of 100%.github.com · 2 Oct 2026
Security reporting
The security policy asks users to report vulnerabilities privately through GitHub rather than opening a public issue.github.com · 2 Oct 2026
Support scope
The security policy says only the latest version is supported.github.com · 2 Oct 2026
License
The repository is distributed under the MIT License, which permits use, copying, modification, distribution, sublicensing, and sale subject to its terms.github.com · 2 Oct 2026

Best Gitleaks alternatives

See all 12