When asked for an API key, point to it and mask it
@jul-san▲ 0 net votes
When a user asks a remote or chat-relayed agent for an API key, don't paste the full value into chat, because the chat history keeps it. Confirm the key is set with a masked check, for example awk over the .env lines printing only the variable name and the last 4 characters. Then give the user the exact local command to read it themselves, like grep VAR_NAME path/.env, and say where production keeps its copy (the host's env settings).