Any long option you keep adding to pip can live in a config file. You don’t have to know where that file is, because pip writes it for you.
python3 -m pip config set global.timeout 60
The key is the command name and the option, joined by a dot, with global meaning every command. Check what is set, and undo it, with:
python3 -m pip config list
python3 -m pip config unset global.timeout
When a setting seems to be ignored or comes from nowhere, this one is my favourite:
python3 -m pip config debug
It lists every config file pip looks at, whether each exists, and the values found in it.
Pay attention to where the value lands. According to pip’s own help, without --user, --global or --site it writes to the virtual environment’s file if one is active and that file exists, and to your user file otherwise. So inside a fresh venv, a plain set changes your user settings. Add --site when you want it limited to that environment. I’d avoid putting passwords in these files, since they are stored as plain text.
Further reading: pip config, pip configuration