Skip to content
otinstaller
Install

OSINT tool

Install gitleaks on Windows, macOS and Linux

Find secrets and API keys committed to git repositories and files.

secretscodepassive
ot install gitleaks

gitleaks scans a git repository's whole history, or any directory, for passwords, API keys and tokens. It matches a large set of known secret formats, runs offline and is fast enough to use on every commit.

How to install gitleaks

ot install gitleaks

ot downloads gitleaks 8.30.1 as a prebuilt binary from github.com/gitleaks/gitleaks and verifies its SHA-256 checksum before installing it. Nothing has to be compiled.

New to ot? It is one command to install, shown below.

How to use gitleaks

Arguments after the tool's name go straight to gitleaks, so its own documentation applies unchanged.

Scan the history of the repository in the current directory.

ot run gitleaks git -v .

Scan plain files that are not in git.

ot run gitleaks dir ./config

Write a JSON report and hide the secrets in the output.

ot run gitleaks git --redact --report-path leaks.json .

ot run gitleaks --help lists every option. The project's own documentation is at github.com/gitleaks/gitleaks.

An AI agent can run gitleaks too: ot mcp serves it over the Model Context Protocol. See OSINT with AI agents.

gitleaks licence, platforms and versions

Projecthttps://github.com/gitleaks/gitleaks
LicenceMIT
Runs onWindows, macOS and Linux
Takesrepository, directory
Sends traffic to the targetNo
Release binaryversion 8.30.1 from github.com/gitleaks/gitleaks, verified by SHA-256

Questions about gitleaks

How do I install gitleaks on Windows?

Is gitleaks free?

Do I need Go or a compiler to install gitleaks?

How do I update or remove gitleaks?

Install ot

curl -fsSL https://otinstaller.com/install.sh | sh

Current version: 0.3.0. Both scripts verify the download against its SHA-256 checksum before installing.

More: Secret scanning and cloud storage tools