Your terminal remembers the secrets you type into it
Every command you type is saved to a history file, API keys included. Claude Code just added a way to set up tools without typing the key, and the same habit works for everything else in your terminal.