# Hugging Face Hub

CreateWithAI Hub page: https://createwithaihub.com/open-source/hugging-face-hub
Latest version of this file: https://createwithaihub.com/open-source/hugging-face-hub.md

- Type: Library · Category: Libraries & Open Source
- Publisher: Hugging Face
- Pricing: Free plan plus paid plans
- Runs on: Web, macOS, Windows, Linux, API (cloud)

Hugging Face's platform hosting over 3M models, 1M datasets and 2M Spaces in Git-based repos, with a Python client and hf CLI.

The Hugging Face Hub is the platform at huggingface.co where the community publishes and downloads open models, datasets and Spaces (demo apps). Every repository is Git-based with versioning, branches, pull requests and Xet storage for large files, and model and dataset cards document each one. The huggingface_hub Python library and hf CLI (Apache-2.0) download and upload files, manage repos and run jobs. It is for anyone who needs open weights or data, or wants to share their own; Spaces, Inference Providers, the MCP server and Transformers are listed as separate entries.

Useful for: Finding an open model for your task, downloading its weights with the hf CLI, and publishing your fine-tuned version with a model card.

## Key features

- Git-based repos for models, datasets and Spaces with commits, branches, diffs and Xet large-file storage
- Model cards, dataset cards, Data Studio viewer, gated models and datasets
- Organizations with access control, collections, webhooks and Storage Buckets (S3-like object storage)
- Jobs for running compute on Hugging Face infrastructure
- huggingface_hub Python library and hf CLI (Apache-2.0), with an optional MCP module
- Integrations with over a dozen libraries such as Transformers; Spaces, Inference Providers and the HF MCP server are separate entries

## Connection

- Language: Python

## Before you start

- Hugging Face account (to upload or access gated repos)

## Install steps from the official documentation

Python library (includes the hf CLI):

```
pip install huggingface_hub
```

hf CLI (macOS/Linux):

```
curl -LsSf https://hf.co/cli/install.sh | bash
```

hf CLI (Windows):

```
powershell -ExecutionPolicy ByPass -c "irm https://hf.co/cli/install.ps1 | iex"
```

## Limitations

- Free accounts get 100 GB of private storage; free public storage is best-effort and expected to be used responsibly
- PRO is $9/month; Team is $20/month per user; Enterprise is $500/month per user with annual commitment, through sales
- Files are capped at 500 GB each (under 200 GB recommended) and folders at 10,000 files
- The Hub platform itself is a hosted service; only the client library and CLI are open source

## Official links

- Website: https://huggingface.co
- Source repository: https://github.com/huggingface/huggingface_hub
- Documentation: https://huggingface.co/docs/hub/index
- Source: https://huggingface.co/docs/hub/index (Hub description, 3M+ models, 1M+ datasets, 2M Spaces; Git repos with Xet; model/dataset cards, Data Studio, organizations, Storage Buckets, Jobs, security features)
- Source: https://huggingface.co/pricing (PRO $9/month, Team $20/month per user, Enterprise $500/month per user (managed billing with annual commitments); PRO perks)
- Source: https://huggingface.co/docs/hub/storage-limits (Free: best-effort public, 100 GB private storage; file size guidance (<200 GB, 500 GB hard limit), 10k files per folder)
- Source: https://github.com/huggingface/huggingface_hub (Official CLI and Python client; install commands; optional [mcp] extra; Apache-2.0)
- Source: https://raw.githubusercontent.com/huggingface/huggingface_hub/main/LICENSE (Apache License 2.0)
- Source: https://huggingface.co/enterprise (Team $20 per user per month, self-serve (credit card or AWS Marketplace); Enterprise via sales, invoice with annual commitment)
