CLI env vars
The two you actually need
Section titled “The two you actually need”HF_ENDPOINT=https://siahub.app # route the CLI to SiaHubHF_TOKEN=<your-siahub-key> # auth for writes + private readsPrefix them per-command to avoid polluting your shell config:
HF_TOKEN=... HF_ENDPOINT=... hf upload <owner>/<repo> ./filesRunning both SiaHub + huggingface.co
Section titled “Running both SiaHub + huggingface.co”The per-command prefix is already this pattern — hf auth login for
huggingface.co stays put, and SiaHub commands override with HF_TOKEN.
If you want a shorter form:
function hfsia env HF_ENDPOINT=https://siahub.app HF_HOME=$HOME/.cache/huggingface-siahub hf $argvendhfsia auth login --token <your-siahub-key> # oncehfsia upload / download ... # thereafterA separate HF_HOME keeps the two token caches apart.
Less-common vars
Section titled “Less-common vars”HF_HUB_DISABLE_TELEMETRY=1— recommended; no analytics to hf.coHF_DEBUG=1— verbose request traces (useful when a command errors and you need the full stack)HF_HUB_VERBOSITY=debug— log-level knob on the Python side