← All notes

Gated models and datasets on the Hugging Face Hub

Answer: A gated repo makes users request access, sharing their username and email and answering any custom questions, before they can download files. Repos are not gated by default.

Setting up

  1. Open the model or dataset settings page.
  2. Click Enable Access request.
  3. Choose automatic (instant) or manual approval.

Reviewing requests

Review access requests opens lists of pending, accepted and rejected users. You can automate the approval of access requests by using the API. (S1)

As a user

hf auth login
from huggingface_hub import snapshot_download
snapshot_download("org/gated-model", token=True)

Claims

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted).

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: Hugging Face docs, Gated datasets · Hugging Face, Apache-2.0 (huggingface docs repos); Hugging Face docs, Gated models · Hugging Face, Apache-2.0 (huggingface docs repos).

Cite this

Permanent ID: iil:note:sek6p792

iinventedlight. 2026. "Gated models and datasets on the Hugging Face Hub." iinventedlight Library, iil:note:sek6p792, version of 2026-11-04. https://iinventedlight.com/library/notes/hf-gated-repos/. License: CC-BY-4.0.

@misc{iil_note_sek6p792,
  author = {{iinventedlight}},
  title = {{Gated models and datasets on the Hugging Face Hub}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-04},
  url = {https://iinventedlight.com/library/notes/hf-gated-repos/},
  note = {Permanent ID iil:note:sek6p792. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt. This page in Markdown: /library/notes/hf-gated-repos.md.