Guides
Written for people who ship with Lovable, Bolt, Cursor, Replit, and Supabase, and do not want a Tuesday invoice.
8 min
How to set a spending limit on your OpenAI API key
Set a monthly spend limit and turn on a hard cap so a leaked key or a chatty app cannot run an unlimited OpenAI bill.
9 min
Lovable + OpenAI: how to prevent a surprise bill
If a Lovable app talks to OpenAI, here is how the key ends up in the browser and the prompt to paste so the call moves server-side.
10 min
My OpenAI key leaked: what to do in 10 minutes
A short ordered checklist for when your OpenAI key is in a screenshot, a GitHub repo, or the JavaScript of a Lovable, Bolt, or Replit app.
12 min
Rate limit AI calls per user in a Supabase Edge Function
Require a signed-in user and reserve each AI call in Postgres so a public edge function cannot be looped into a surprise bill.
8 min
Hide AI keys in Bolt, Cursor, and Replit
Why NEXT_PUBLIC_ and VITE_ keys are public, and the server-side pattern to ask Bolt, Cursor, or Replit for instead.