PromptKit FrançaisRequest the beta

Guides

How to stop pasting API keys and passwords into ChatGPT

Last updated: 4 November 2026

Treat anything you paste into ChatGPT, Claude or Gemini as leaving your company. Remove secrets before you paste, replace them with placeholders, rotate any key that was sent, and use a tool that checks the message in your browser before it is sent.

Why it happens

Most leaks are accidents. You copy a stack trace that holds a connection string, a config file with a token, or a log line with a customer's card number. The chat box accepts it all, and the message is sent the moment you press Enter.

What it can cost

Four habits that prevent it

  1. Replace values with placeholders. Write [API_KEY_1] or [EMAIL_1] instead of the real value. The answer stays useful, because the model only needs the shape of the problem.
  2. Paste the smallest excerpt. The ten lines around an error, not the whole file.
  3. Keep secrets out of the clipboard. Read them from a password manager or environment variables rather than copying them around.
  4. If a key was sent, rotate it. Revoke it at the provider and issue a new one. Deleting the conversation is not enough.

Let the browser check for you

Habits fail on a busy day. PromptKit is a browser extension that checks what you are about to send to ChatGPT, Claude and Gemini, on your device. It blocks API keys, private keys, card numbers, passwords, IBANs and social security numbers by default, and warns about e-mail addresses and phone numbers. One click replaces each value with a numbered placeholder, so you can still send the question. It has no server and makes no network request.

Try the demo on the home page or see everything it does.

Limits to keep in mind

Pattern-based detection cannot recognize every secret. It does not read images or PDFs, and it does not cover other apps or API calls. Use it as a safety net, not as your only safeguard.

Request the beta