Did my repo leak API keys? Free checker

By Arif Khan, AIVolve LLC · Updated November 13, 2026

Paste a file, or drop files or your whole project folder. This page looks for Supabase service_role and secret keys, Stripe live keys, OpenAI, Anthropic, AWS, GitHub, Google and Resend keys, database passwords and private keys, and tells you which ones to rotate. It runs entirely in your browser. Nothing you paste or drop is uploaded, stored or sent anywhere.

Check your files

Runs only in your browser. Nothing you paste or drop leaves this page: no upload, no storage, no network request. Your browser may call choosing a folder an "upload". It is not: the files are read on your device and never sent.

Or drop files or a whole project folder here. Folders named node_modules and .git are skipped.

If it finds a key: rotate first

A key that was ever committed is in your git history, and in every fork and clone made since. Deleting the file doesn't take it back. So the order matters:

  1. Rotate the key at the provider. Create a new one, move your app to it, then delete or disable the old one. Each finding above says where.
  2. Check for use you didn't expect in the provider's logs or usage page.
  3. Remove the key from your code and load it from your host's environment variables instead. Add files like .env and .claude/settings.local.json to .gitignore.
  4. Then clean up history if you want to. It's optional. Rotation is what actually closes the leak.

For a Supabase service_role or secret key, follow the step-by-step for Supabase keys. If the key was in .claude/settings.local.json, here's the full Claude Code walkthrough.

Check your git history too

This page only sees the files you give it. Older versions of a file live in git history. In your project folder, run this in a terminal (Mac, Linux, or Git Bash on Windows). It runs on your computer and prints matching lines, cut to 80 characters:

git log --all -p | grep -E 'sb_secret_|sk_live_|rk_live_|whsec_|sk-ant-|sk-proj-|AKIA|ghp_|github_pat_|AIza|re_[A-Za-z0-9]{8}_|PRIVATE KEY|SERVICE_ROLE|service_role|://[^:@/ ]+:[^@/ ]+@' | cut -c1-80

No output is a good sign. Each line it prints is a lead, not proof: service_role also matches variable names. Lines starting with + were added in some commit and lines starting with - were removed later, but both are still in history. Paste anything suspicious into the box above to see what it is.

What this checker looks for

Finding What it means
Supabase service_role key or sb_secret_ key Rotate now. It bypasses Row Level Security.
Supabase anon key or sb_publishable_ key Public by design. Safe only if Row Level Security is on and correct.
Supabase account token (sbp_) Rotate now. It can control every project in the account.
Stripe sk_live_ or rk_live_ key, webhook secret (whsec_) Rotate now.
Stripe sk_test_ or rk_test_ key Check. Test mode only, but still rotate it.
OpenAI (sk-proj- and older sk- keys), Anthropic (sk-ant-) Rotate now. Anyone can spend your credits.
AWS access key (AKIA, ASIA) and secret access key Rotate now.
GitHub tokens (ghp_, github_pat_ and others), npm and Slack tokens Rotate now.
Google API key (AIza) Check. Firebase keys restricted to Firebase services don't need to be secret. Gemini, Maps and other Google Cloud keys should be restricted.
Resend key (re_) Rotate now. Anyone can send email as you.
Database URL with a password, password typed in a command Change the password.
Private key block Replace the key pair.

The checker tells a Supabase anon key from a service_role key by reading the role inside the key, on your device. It doesn't trust the variable name.

How your data stays private

What it can't tell you

FAQ

Is it safe to paste my API keys into this checker?+

Yes. The check runs entirely in your browser and nothing you paste or drop is uploaded, stored or sent anywhere. You can turn off your internet connection after the page loads and it still works. If you would rather not paste a real key, the git history command on this page runs only on your own computer.

My repo is private. Do I still need to rotate a leaked key?+

Yes, if anyone you don't fully trust ever had access, or if the repo was ever public, forked or cloned to other machines. Keys in git history stay there. Rotating takes a few minutes and removes the risk.

Is the Supabase anon key a leak?+

No. The anon key, and the newer publishable key, are meant to be public and are in every Supabase web app. They are only safe if Row Level Security is on and correct for every table. The service_role key and the newer secret key are the ones that must never be in your repo or your app.

I deleted the .env file from GitHub. Am I safe?+

Not yet. The old version is still in git history and in any forks or clones. Rotate every key the file held first, then keep the file out of git with .gitignore.

What should I do first if the checker finds a key?+

Rotate it at the provider: create a new key, move your app to it, then delete the old one. Then check the provider's logs for use you didn't expect, and only then clean up your code and history.

Want a second pair of eyes?

Start with a free X-ray: 2 minutes, no code or passwords. Your AI builder writes a read-only report that includes security red flags, and an AIVolve developer reviews every X-ray within 1 business day. Get a free X-ray →

Related: Claude Code "don't ask again" leaked your keys? · Supabase anon key vs service_role key · Security audit prompts for AI-built apps · Alert: Claude Code may have saved your keys

Written by Arif Khan, AIVolve LLC. The checker runs entirely in your browser and makes no network requests with your text or files. Key formats were checked on November 13, 2026.

Need help?

Start with a free X-ray: 2 minutes, no code or passwords. Your AI builder writes a read-only report that includes security red flags, and an AIVolve developer reviews every X-ray within 1 business day.

Get a free X-ray →