# What should I never paste into the AI chat?

> Never paste secret keys, passwords, your .env file, card numbers or real people’s private details. Everything you type is sent to the AI company, and some tools keep a copy of the chat on your computer. Give your AI tool only a setting’s name, never its value.

Web page: https://buildladder.com/answers/never-paste-in-chat

## What to do

- If your AI tool needs a secret key to make something work: Ask it to add the setting’s name to your .env file with an empty value, like STRIPE_SECRET_KEY=. Then open the file and paste the key after the = sign.
- If an error message shows a key, password or token: Copy the error, but replace the key with xxxx before you paste it. Your AI tool needs the words of the error, not the key.
- If you’re working on payments or with real customers’ details: Never type a real card number while you build. In Stripe’s test mode, use the test card 4242 4242 4242 4242, because Stripe’s rules forbid testing with real card details. For names, emails or messages, ask your AI tool to make up fake ones that look the same.
- If your AI tool can open any file in your product, including .env: Asking it to read or show the .env file puts your keys in the chat. Cursor keeps .env files hidden by default, but terminal commands can still read them. In Claude Code, add Read(./.env) as a deny rule in /permissions once the setting names are in the file, because the rule also stops it editing the file.

## What you do

- Paste secret keys and passwords into your .env file or your host’s settings, never into the chat.
- Replace any key in an error message with xxxx before you paste the error.
- Swap real customers’ details for made-up ones before you ask for help.
- Use test cards, never your own card, while you build.

## What your AI tool does

- Tell you where each key is in the service’s dashboard.
- Move any key typed straight into the code to your .env file.
- Make fake sample data to test with.

## Prompt to copy

```text
I want to keep my secret keys out of this chat and out of my code.
1. List every key or password this product needs. For each one, tell me whether it’s publishable (safe in a web page) or secret, and where I find it in that service’s dashboard.
2. Add the names to .env with empty values, and make sure Git ignores .env. I’ll paste the values in myself. After that, don’t open or print .env.
3. Search the code for any key typed in directly. Tell me the file and line, but don’t show the key.
```

## Sources

Updated 2026-11-10.

- [Stripe: API keys](https://docs.stripe.com/keys)
- [Stripe: testing](https://docs.stripe.com/testing)
- [Supabase: API keys](https://supabase.com/docs/guides/api/api-keys)
- [Claude Code: data usage](https://code.claude.com/docs/en/data-usage)
- [Claude Code’s permissions](https://code.claude.com/docs/en/permissions)
- [Cursor: ignore files](https://cursor.com/docs/context/ignore-files)
