Skip to content

Hugging Face Gated Repositories Integration

Hugging Face allows providers to secure their models behind gates to limit access. Set up the Gated Hugging Face integration with a shared token to access these repositories. This streamlines the workflow and enables automation through the API.

Once this integration is enabled, the token is used for any Hugging Face scan (gated and non-gated models).

Configure Integration

  1. In the HiddenLayer Console, go to Settings > Integrations.

  2. Under AI & Agentic Ecosystem, click the menu (three vertical dots) for Gated Hugging Face.

    Gated Hugging Face menu
  3. Select Configure Integration.

  4. Paste your Hugging Face token into the Token field.

    Hugging Face Token
  5. Click Save.

Scan Gated Hugging Face Models

ScanDescriptionLink
Community Scan using the ConsoleUse the Console UI to scan a Hugging Face gated model.Console Community Scan
Community Scan using GitHub ActionsUse a GitHub Action to scan a Hugging Face gated model.GitHub Action
Request Access to Gated Models
  • To scan a Hugging Face Gated model, you must be granted access to it.

  • You must be granted access with the Hugging Face account associated with your Gated Hugging Face integration.