Alternatively, you can programmatically login using [`login`] in a notebook or a script:  
```py
>>> from huggingface_hub import login
>>> login()
```  
You can only be logged in to one account at a time. Logging in to a new account will automatically log you out of the previous one. To determine your currently active account, simply run the `huggingface-cli whoami` command.  
<Tip warning={true}>