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
- Open the model or dataset settings page.
- Click Enable Access request.
- 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
- id: C1 claim: By default, the dataset is not gated. source: S1 evidence: "By default, the dataset is not gated."
- id: C2 claim: Manual approval lets you choose which users can access the dataset. source: S1 evidence: "If you want to manually approve which users can access your dataset"
- id: C3 claim: Requests can be managed from the UI or via the API. source: S1 evidence: "You can review and manage requests either from the UI or via the API."
- id: C4 claim: By default, the model is not gated. source: S2 evidence: "By default, the model is not gated."
Sources
- [S1] Gated datasets · Hugging Face. Hugging Face docs. https://huggingface.co/docs/hub/datasets-gated . License: Apache-2.0 (huggingface docs repos). Accessed 2026-11-04.
- [S2] Gated models · Hugging Face. Hugging Face docs. https://huggingface.co/docs/hub/models-gated . License: Apache-2.0 (huggingface docs repos). Accessed 2026-11-04.
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
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.},
}
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.