HuggingFace for Developers#

SSH Config for HuggingFace#

Generate a SSH key and add the following to your ~/.ssh/config file:

Host hf.co
    HostName hf.co
    User git
    IdentityFile {path/to/your/ssh/key}

Then add the public key to your HuggingFace account.

For more information, see the official documentation.

HuggingFace Token#

You can generate a token here.

The token is used to login to HuggingFace:

huggingface-cli login --token {your_token}

Or simply:

export HF_TOKEN={your_token}

For more information, see the official documentation.