t
thielv0.1.0
a git pre-push hook for secrets

keep your secrets
out of git.

thiel scans your source code for accidentally committed API keys, tokens, and private keys — and blocks them at git push before anything reaches the remote.

“every great business is built on a secret. keep yours out of git.”
pip install thiel
~/projects/acme — zsh<>
$ git push origin main
 thiel scanning 247 git-tracked files...

 src/config/aws.py:14
    AWS Secret Access Key
    AWS_SECRET = "wJalrXUtnFEMI/K7MDENG/bPxR..."

 .env.example:3
    OpenAI API Key
    OPENAI_KEY=sk-proj-abc123def456ghi789jkl...

 scripts/deploy.sh:8
    GitHub Personal Access Token
    TOKEN=ghp_xxxxxxxxxxxxxxxxxxxxxxxxx

3 secrets found. push blocked.
error: failed to push some refs to origin

/ features

01 — 06
01

20+ secret patterns

aws, openai, anthropic, github, stripe, slack, twilio, sendgrid, mailgun, huggingface, databricks, and more.

02

git-aware scanning

scans only tracked files by default. pre-push hook scans just the diff being pushed — not your whole tree.

03

blocks pushes

installs as a git pre-push hook with one command. if a secret is found, the push is rejected before the remote ever sees it.

04

smart placeholder filter

ignores obvious dummies like your_api_key, example, changeme, xxxxxx — so you only see signal, not template noise.

05

private keys included

rsa, ec, dsa, openssh, and generic hardcoded passwords. catches the long-tail formats grep would miss.

06

fast, zero-config

single python binary. skips binaries, lock files, and build artifacts automatically. no config file to maintain.

/ how it works

3 steps
step 01

install

$ pip install thiel

single command. python 3.11+, no other dependencies. drops a `thiel` binary on your path.

step 02

hook

$ thiel install

registers a git pre-push hook in the current repo. every future `git push` is scanned automatically.

step 03

ship safely

✓ no secrets found — push allowed

scan runs on the diff being pushed. clean push goes through. dirty push is blocked with a clear file:line report.

pip
pip install thiel
pipx
pipx install thiel
uv
uv tool install thiel
then run thiel install inside any repo to enable the pre-push hook. requires python 3.11+.