About 1 in 30 public Lovable apps would ship an AI key to every visitor
In 1,167 public Lovable projects drawn at random from GitHub, 37 have browser code that reads a paid AI key: 3.2% (95% range 2.3–4.3%). A variable named VITE_… is copied into the JavaScript every visitor downloads, so once the app is deployed with the key set, anyone can open the page source, copy the key and spend on the owner's account. Google Gemini keys are about half of them.
This is a follow-up to About 1 in 5 public Lovable apps would leak data or keys: the same random draw and the same scanner version. Priberry makes Launch Blockers, the open-source checker used here.
Which AI keys
Apps whose browser code reads each provider's key. An app can read more than one, so the bars add up to more than 37. Counts this small aren't ranked past the top 4.
The other secrets in the browser
How to fix it
Move the call to the AI provider into a Supabase edge function (or any server route) that checks the user is signed in, keep the key there under a name without VITE_, and revoke the old key: if the app was ever deployed with it, treat it as leaked. Key Panic lists the steps in order and where to revoke a key at each provider. Launch Blockers prints this as a prompt you can paste back into Lovable, Cursor or Claude Code.
Check your own project
npx launch-blockers check
It runs on your machine, reads nothing over the network and never prints a secret. Priberry makes six free, open-source tools:
the leaks AI-built apps ship, checked in your code
npx launch-blockers checkusers who can raise their own role, checked in your supabase/ folder
npx rolelock@0.1.1 ./my-appwhat a stranger can see in your live app
npx greenlitlaba crash-test lab for AI coding agents
npx crumplelab attackwhere your coding agent's tokens go
npx tarelaban AI exec team on your own computer
markos.priberry.comHow we did it
- The sample is the random draw from the main study: 1,167 public Lovable projects drawn at random from the 73,754 we could list on GitHub. The method scripts are published there.
- The scanner flagged 71 apps for 93 secret-named variables with a public prefix. We cloned each one and opened every use of each name in the code.
- A name counts only when frontend code that gets bundled reads it (
import.meta.env.NAMEand the like, in the app's source or its Vite or Next config). 19 names were only declared or mentioned in docs and error messages, 5 were read only by server code, scripts or edge functions, and 6 were public by design (a Firebase database address, a Razorpay key id). None of those are counted. Before publishing we read the counted uses of every name (up to three each, shown as code shape with every quoted string removed) and confirmed at least one genuine read per name. - "Paid AI key" means a key for an AI provider that bills per use: Google Gemini, OpenAI, Anthropic, Groq, ElevenLabs, Perplexity, Hugging Face, xAI Grok, Mistral, Cohere.
- What this can't tell you: whether the deployed app was built with a real key set (if not, the AI feature just doesn't work), or whether a key still works. We never used a key. So these are apps whose code would ship the key, not proven leaks.
- The share has a margin: with 37 of 1,167, the 95% range is 2.3% to 4.3%. We don't scale the counts to all Lovable projects.
- We stored the repository name and the variable names only, never a value or code. No project is named here. Owners were told as described in the main study.
More studies: priberry.com/research · Launch Blockers, Rolelock, Greenlit, Crumple, Tare and MarkOS (priberry.com/#tools) · Aggregate data: names.json · Generated 2026-11-26