Can you stop API keys being pasted into ChatGPT or Claude?
A developer hits an error, copies the stack trace and the config file around it, and asks an AI chat app what is wrong. The config file has a database password in it. They didn't notice.
If that key is live, you now rotate it and wonder who or what has seen it. If you are lucky, it is a five-minute job. If not, it is an incident.
Catching it after the fact is the wrong end. Scanning chat history later tells you it happened. Stopping the send tells you before it does.
The check has to run before the page's own code. Chat apps can send a message more than one way: the send button, the Enter key, a hidden frame, a retry in another format. A check that only watches the network request can lose a race with the app. Shield's Chrome extension checks when the person presses Enter or clicks send, before the chat app's own code runs, and checks the network request again as a backstop.
What it stops. An API key, a private key or a database password stops the send. The text stays in the box, a notice names the rule that matched, and no chat is created. The developer removes the secret and sends again.
What it doesn't do. Be honest about the limits. Voice input in the browser isn't covered. Gemini and Copilot are covered in Chrome only, since their desktop apps aren't read yet. Pattern matching finds well-known key shapes. A password written as plain words can look like any other sentence. The Shield limits section lists these in full.
Do you need your own tool for this? For one team, the free open-source version is enough to try. The code is on the computer and can be read, which matters when the thing you are installing sees everything typed into a chat box.
Related: how to stop employees pasting customer data into ChatGPT, and the byoai-shield developer docs.