Exposed API key checker
This free tool reads one page of your website and the scripts it loads, and tells you whether a secret key that anyone could copy is visible in them. A key it finds is shown masked, for example "a key starting with sk_live_...". It never uses the key.
How it works
- You paste the address of one page.
- A real Chrome browser opens it and keeps the page’s HTML and the scripts it downloads from the same site.
- The tool looks in them for the fixed shapes real keys have, such as the start of a Stripe, OpenAI, Anthropic, AWS, GitHub, Slack, SendGrid or Resend key, a Supabase service key or a private key block.
- If it finds one, it tells you what kind it is and shows only the fixed first characters. The rest of the key is not kept, not shown and not used.
What it checks
- Stripe secret keys (live and test), the Supabase service role key, OpenAI, Anthropic, GitHub, Slack, SendGrid and Resend keys, and private key blocks.
- AWS access keys: reported as critical when a secret sits next to one, and as a warning when the key ID stands alone.
- Keys in the page’s HTML and in the scripts the page loads from its own site.
What it does not check
- Keys that are meant to be public, such as a Stripe publishable key or a Supabase anon key. They are built to be visible.
- The AWS access key ID inside a pre-signed link, which is there by design. The secret never is.
- Your server code, your repository or anything a visitor cannot download.
Questions
What is an exposed API key?
A secret that lets a program use a service as you, such as take payments or call an AI model, left in code that every visitor downloads. Anyone can open the page source and copy it.
Does this tool use the key it finds?
No. It only reads text the browser downloaded anyway. A key is never used, never stored whole and never shown whole.
I found a key. What now?
Treat it as stolen. Create a new key in the service, delete the old one, and move the new one to your server, where visitors cannot see it. Removing it from the page is not enough: anyone who saw it before can still use it.
Why do AI-built sites leak keys?
An AI builder often puts a key straight into the front-end code to make a feature work. That code runs in the visitor’s browser, so the key is visible. Calls that need a secret key belong on a server.
How many checks can I run?
5 checks a day across all the free tools. Scanning your whole site with Glitchmark also reads the pages it reaches for keys, up to your plan’s page limit.
Other free tools
Read more
Check your whole site, not one page
Glitchmark opens your site in real browsers on phone, tablet and laptop, finds what is broken and explains each problem in plain English. Your first scan of one site is free, with part of the report.
Scan my site freeLast updated