
Gitleaks
Find secrets with Gitleaks
The Lens
It runs locally or in CI, checks every commit, and flags anything that looks like a credential.
MIT license, Go. Fast. Scans entire repositories in seconds. Comes with 150+ built-in rules for common secret patterns: AWS keys, Stripe tokens, private keys, JWTs. You can add custom rules via a TOML config. Runs as a pre-commit hook or in GitHub Actions, GitLab CI, any pipeline.
The CLI tool is fully free and open source. Gitleaks also offers a commercial SaaS product at gitleaks.io with team dashboards and centralized management, but the core scanner is the same. For solo developers and small teams: install it, add the pre-commit hook, done. Five minutes of setup, zero ongoing cost. Medium to large teams might want the commercial dashboard for visibility across repos.
The catch: Gitleaks finds secrets, but it doesn't revoke them. When it flags a leaked AWS key, you still need to rotate it yourself. And regex-based detection means false positives happen; high-entropy strings in test fixtures will trigger alerts. You'll spend some time tuning your .gitleaks.toml allowlist.
Free vs Self-Hosted vs Paid
open coreFree Tier
The Gitleaks CLI is fully open source under MIT. All scanning features, all 150+ rules, pre-commit hooks, CI integration, free. No feature restrictions.
Paid (Gitleaks SaaS)
gitleaks.io offers a commercial platform with centralized dashboards, team management, and historical tracking across repos. Pricing is not publicly listed, contact for quotes.
Self-Hosted Costs
Zero. The CLI is a single Go binary. No server, no database, no infrastructure. Runs in your existing CI pipeline.
When to Pay
Pay when you manage 50+ repos and need centralized visibility into secret leaks across the organization. For individual repos or small teams, the free CLI is everything you need.
CLI is free and complete. Pay for the SaaS dashboard only at organizational scale.
Get tools like this every Wednesday
One featured tool, three on the radar. No fluff.
Similar Tools
About
- Stars
- 27,099
- Forks
- 2,052
Explore Further
More tools in the directory
openclaw
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
373.0k ★claw-code
The repo is finally unlocked. enjoy the party! The fastest repo in history to surpass 100K stars ⭐. Join Discord: https://discord.gg/5TUQKqFWd Built in Rust using oh-my-codex.
191.9k ★n8n
Fair-code workflow automation with native AI capabilities
188.6k ★




