Watch: Lock down my AI key after it leaked on GitHub | Vovy

Watch Vovy do it on a Mac: "I think I pushed my OpenAI key to GitHub. Kill it and fix everything". Revoke a leaked AI API key, issue a new one to every environment, scrub it from your repo, and check your usage for abuse.

"I think I pushed my OpenAI key to GitHub. Kill it and fix everything"

Revoke a leaked AI API key, issue a new one to every environment, scrub it from your repo, and check your usage for abuse.

What happens in the video

  1. Confirm what leaked: Vovy searches your GitHub repo and commit history for key patterns and checks GitHub's secret scanning alerts to see exactly what is exposed.
  2. Check for abuse: Vovy opens your provider's usage page and flags unusual spikes, models you never use, or calls at odd hours since the leak.
  3. Create a new key: Vovy creates a replacement key and updates every place it lives: your host's env vars, Supabase secrets and local .env.
  4. Revoke the leaked key: Once the new key works, Vovy deletes the old one. This is irreversible and anything still using it breaks, so it asks first.
  5. Stop it happening again: Vovy removes the key from code, adds .env to .gitignore, and shows a card of what changed and whether history needs cleaning.
Read the step-by-step guide