Free tool
Free API key and secret leak checker
Paste code, a .env file, a config file, or a built JavaScript bundle. The checker looks for Stripe, OpenAI, Supabase service role, and other secret keys, and it marks publishable keys that are meant to be public. Nothing leaves your browser: the paste is not uploaded, sent, or stored.
MondayMedic checks for common public mistakes. It is not a full security audit, and a good score does not mean your app is safe.
Nothing is uploaded, sent, or stored. The check runs in your browser.
Which keys are fine to be public
A Supabase anon key, an sb_publishable key, and a Stripe pk_ key are meant to ship in the browser. A service_role key, an sb_secret key, a Stripe sk_ or rk_ key, and provider keys such as OpenAI are not. The anon key only belongs in the browser when row level security is on. Check your policies or read anon key vs service role.
Why VITE_ and NEXT_PUBLIC_ variables leak
NEXT_PUBLIC_, VITE_, and EXPO_PUBLIC_ are copied into the JavaScript that the browser downloads. A secret stored under one of those names is public, even if the file is called .env. Put provider keys in a server-side variable or an edge function instead. If the key calls a paid API, cap that function too.
What to do if a key leaked
Rotate it first. The old key keeps working until the provider turns it off. Then move the new key to a server-side env var or an edge function, and check that provider's billing for use you do not recognise.
FAQ
Does this checker upload my code?
No. The check runs in your browser. The code is not uploaded, sent, or stored.
Which keys are fine in the browser?
The Supabase anon key, an sb_publishable key, and a Stripe pk_ key are meant to be public. A service_role key, an sb_secret key, and provider secret keys are not. The anon key only belongs in the browser when row level security is on.
Does no issues found mean I can ship?
No. No issues found by our checks only means this paste did not match these rules. It is not a full audit, and it cannot see keys you did not paste.
What should I do if a key leaked?
Rotate it first. Then move it to a server-side env var or an edge function, and check the provider billing for use you do not recognise.
This checks the code you paste. Your live app's JavaScript can still leak keys after it's built. Run the free scan to check what your live site exposes.
Solo $9/mo. Studio $29/mo for weekly Monday checks. See plans.