huggingface/huggingface_hub
The official CLI and Python client for the Hugging Face Hub.
What it solves
It provides a unified way to interact with the Hugging Face Hub, a platform for sharing and collaborating on open-source machine learning models, datasets, and demos. It simplifies the process of discovering, downloading, uploading, and managing these assets without needing to manually navigate the web interface.
How it works
The project offers two primary interfaces: a command-line interface (CLI) called hf and a Python library. Users can use these tools to authenticate via tokens, search for models and datasets, download specific files or entire repositories, upload local files or folders to the Hub, and run inference or jobs on Hugging Face infrastructure.
Who it’s for
It is designed for machine learning practitioners, developers, and AI agents (such as Claude Code or Cursor) who need to programmatically manage their ML assets and integrate Hugging Face Hub functionality into their workflows.
Highlights
- Dual Interface: Provides both a Python library and a powerful
hfCLI. - AI Agent Optimized: The CLI is specifically designed to be used by coding agents with a dedicated
hf skills addcommand for agent integration. - Comprehensive Hub Management: Supports downloading, uploading, repository management, and running cloud-based inference and jobs.
- Integrating Libraries: Offers free hosting and versioning for other ML libraries through a dedicated integration process.
Related
- Project
- Dispatch
- Dispatch
- Project
- Dispatch