Don't call OpenAI or Claude straight from the browser
AI tools often build chat features that call OpenAI or Claude directly from the page. For that to work, the API key has to be in the browser, so anyone can copy it and run up your bill.
Check it
Open your app, press F12, and watch the Network tab while you use the AI feature. Requests going straight to api.openai.com or api.anthropic.com mean your key is in the client.
Fix it
- Move the AI call into a server function that keeps the key secret.
- Revoke the old key and create a new one.
Paste this to your AI tool: "Move every OpenAI or Anthropic API call to a server-side function, keep the key in a server-only secret, and have the frontend call our function instead."
The free ShipWatch scan checks your live app for leaked API keys in client code.