Random OpenAI API Key Placement

Hello. I use the OpenAI API in my Replits, and when I copy/paste Node.JS Scripts that has my OpenAI API Key, Replit randomly places my API Key in a random place with a pop up saying “Are you sure you want to paste this or create a env file” Im pretty sure thats what causing it

Hi @L4CTOSE , welcome to the forums! You should store your OpenAI API key in Secrets.
Read more here:
https://docs.replit.com/programming-ide/workspace-features/secrets

4 Likes