Hardcoded API keys end up in the repo
When you tell an AI "set up Stripe" or "connect to OpenAI," it often inlines a placeholder key
that looks like a real one — and sometimes the key you pasted into the chat. Those keys end up
in .env, config.ts, or worse, in code that gets bundled to the browser.
// AI-written, lives in src/lib/openai.ts const client = new OpenAI({ apiKey: "sk-proj-9xN2..." });
process.env requires more setup the
AI can't see.