{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["img","admonition"]},"type":"markdown"},"seo":{"title":"Hugging Face Gated Repositories Integration","siteUrl":"https://docs.hiddenlayer.ai","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"hugging-face-gated-repositories-integration","__idx":0},"children":["Hugging Face Gated Repositories Integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["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."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once this integration is enabled, the token is used for any Hugging Face scan (gated and non-gated models)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"configure-integration","__idx":1},"children":["Configure Integration"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the HiddenLayer Console, go to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Settings > Integrations"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Under ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["AI & Agentic Ecosystem"]},", click the menu (three vertical dots) for ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Gated Hugging Face"]},"."]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integration-huggingface-gated-menu.b2f3a8a08217e1fe63ae7aa5ca9c2f88a0559e10a904c003bc57aa209df73621.06b34c01.png","alt":"Gated Hugging Face menu","framed":false,"withLightbox":true,"width":"300px","align":"center"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Select ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Configure Integration"]},"."]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Paste your Hugging Face token into the Token field."]},{"$$mdtype":"Tag","name":"Image","attributes":{"src":"/assets/integration-huggingface-gated-token.f5873b40c48575a5dbbd876750849a298a38c8023e1d9546254eecb677550512.06b34c01.png","alt":"Hugging Face Token","framed":false,"withLightbox":true,"width":"300px","align":"center"},"children":[]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"scan-gated-hugging-face-models","__idx":2},"children":["Scan Gated Hugging Face Models"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Scan"},"children":["Scan"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Link"},"children":["Link"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Community Scan using the Console"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use the Console UI to scan a Hugging Face gated model."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"MarkdownLink","attributes":{"href":"/docs/products/console/supply_chain_add_community_model"},"children":["Console Community Scan"]}]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Community Scan using GitHub Actions"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Use a GitHub Action to scan a Hugging Face gated model."]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://github.com/hiddenlayerai/hiddenlayer-model-scan-github-action#scanning-a-huggingface-model-using-community-scan","target":"_blank"},"children":["GitHub Action"]}]}]}]}]}]},{"$$mdtype":"Tag","name":"Admonition","attributes":{"type":"info","name":"Request Access to Gated Models"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["To scan a Hugging Face Gated model, you must be granted access to it."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["You can request access via the Hugging Face website."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["See ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://huggingface.co/docs/hub/models-gated","target":"_blank"},"children":["Hugging Face's Gated Model documentation"]}," for more information."]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["You must be granted access with the Hugging Face account associated with your Gated Hugging Face integration."]}]}]}]}]},"headings":[{"value":"Hugging Face Gated Repositories Integration","id":"hugging-face-gated-repositories-integration","depth":1},{"value":"Configure Integration","id":"configure-integration","depth":2},{"value":"Scan Gated Hugging Face Models","id":"scan-gated-hugging-face-models","depth":2}],"frontmatter":{"seo":{"title":"Hugging Face Gated Repositories Integration"}},"lastModified":"2026-07-13T17:40:17.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/integrations/huggingface_gated_repos","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}