TokenHunt
released · pypi ↗︎· BUSL-1.1· shipped Oct 15, 2026
Finds the secrets your AI agents leak — before someone else does.
A hook-based secret scanner for the agentic workflow: 48 credential rules across 53 provider families, six hook surfaces with block-and-rotate, and a runtime detector for the leak class regex can't see. Zero cloud, zero telemetry.
install pip install token-hunt ↗︎source ↗︎homepage ↗︎
48 credential rules53 provider families6 hook surfaces
I leaked 8 credentials in 9 days — every one a paste or an unsupervised agent read. The story is on this site.
TokenHunt is the scanner that exists because of it. It catches secrets at chat time — when you paste, when your agent reads a config file, when a tool returns — not at commit time, when the key has already been sitting in a transcript for half an hour. Forty-eight rules across 53 provider families, plus runtime detectors for the classes regex can’t see. It caught a GitHub PAT the day it shipped. Mine. The irony is the feature.
Install
Features
Privacy
Zero cloud, zero telemetry, fail-closed. Scanning runs locally on your machine; findings stay in a local audit trail until you act on them.

