Installation
Install secretcheck via Go, npm, PyPI, or a direct binary download.
Pick whichever matches how your project already installs its tools — they all install the exact same binary and behave identically.
Go
go install github.com/anukool23/secretcheck/cmd/secretcheck@latestnpm / Node projects
npm install --save-dev secretcheckOnly the main secretcheck package is ever installed directly. It ships with five
platform-specific packages (secretcheck-darwin-arm64, secretcheck-darwin-x64,
secretcheck-linux-arm64, secretcheck-linux-x64, secretcheck-win32-x64) wired in as
optionalDependencies — npm automatically installs only the one matching your OS/CPU, the
same pattern used by tools like esbuild and swc. You never reference the platform packages
yourself.
Python projects
pip install secretcheckThis bundles a prebuilt platform-tagged wheel. secretcheck and python -m secretcheck
both just launch the same Go binary.
Direct download
Grab a binary from the Releases page
for macOS, Linux, or Windows and put it on your PATH.
Set up the hook
From inside any git repo, regardless of install method:
secretcheck initThis writes a pre-commit hook into .git/hooks/pre-commit — or .husky/pre-commit if it
detects an existing Husky setup. From then on, every git commit runs the scan
automatically. Continue to the Quick start.