Don't paste secret keys into your AI builder's chat
It's tempting to paste your Stripe or OpenAI key into the chat and say "connect this." The AI tool may then put that key directly into a source file, sometimes one that ships to the browser, and the key also sits in your chat history.
A safer way
- Add the key in your tool's secrets or environment settings, not in the chat.
- In the chat, refer to it only by name, like
STRIPE_SECRET_KEY. - If you already pasted one, revoke it and create a new one.
Paste this to your AI tool: "Read the key from the server-side secret named STRIPE_SECRET_KEY, never hardcode it, and never use it in frontend code."
The free ShipWatch scan checks your live app for leaked API keys in client code.