Skip to content

Environment variables

The SDK reads these from the environment (or notebook secrets).

Variable Purpose
DATASPIRES_API_KEY Your SDK key (dsp_live_...). Used by authenticate().
HUGGINGFACE_TOKEN Access to gated Hugging Face models and datasets.
GOOGLE_DRIVE_TOKEN Google Drive access in headless environments, instead of the sign-in prompt.
DATASPIRES_GDRIVE_AUTO_CONNECT Set to 0 to turn off the automatic Drive sign-in prompt.

See Authentication for where to find your API key, and Google Drive for the Drive-specific variables.