huggingface_hub
The official CLI and Python client for the Hugging Face Hub.
The Hugging Face Hub agent skill provides a command reference for AI coding agents to interact with the Hugging Face platform through the hf CLI. Designed for both human developers and AI assistants, this skill enables agents to download models and datasets, upload files, manage repositories, run inference, and execute jobs on Hugging Face infrastructure. The skill can be installed directly into agent environments like Claude Code, Codex, Cursor, and other AI coding assistants that support skill loading.
Key Features
Use Cases
- 01Enable coding agents to autonomously download machine learning models for integration into projects
- 02Allow AI assistants to upload trained models and datasets to the Hugging Face Hub
- 03Automate model discovery and selection by letting agents search the Hub programmatically
- 04Integrate inference capabilities into agent workflows without managing infrastructure
- 05Facilitate repository management and version control through agent commands
- 06Execute cloud-based training jobs via agent-driven CLI interactions
Related Skills
View moresuperpowers
An agentic skills framework & software development methodology that works.
skills
Skills for Real Engineers. Straight from my .agents directory.
skills
Public repository for Agent Skills
ponytail
Makes your AI agent think like the laziest senior dev in the room. The best code is the code you never wrote.
huggingface_hub — FAQ
What is the Hugging Face Hub agent skill?+
It's a command reference that enables AI coding agents like Claude Code, Codex, and Cursor to interact with the Hugging Face Hub through the hf CLI. The skill provides agents with knowledge of CLI commands for downloading models, uploading files, running inference, and managing repositories.
How do I install the Hugging Face Hub agent skill?+
First install the hf CLI using the standalone installer for your platform. Then run 'hf skills add' to add the skill to your agent's skills directory, or 'hf skills add --claude' for Claude Code and other compatible agents.
Which AI coding agents work with this skill?+
The skill works with Claude Code, Codex, Cursor, OpenCode, Pi, and other coding agents that support loading skills from the .agents/skills directory.
Do I need an API key or token to use this skill?+
Yes, you need a Hugging Face token for authentication. Run 'hf auth login' to authenticate interactively, or use '--token $HF_TOKEN' in non-interactive environments like agent workflows.
Is the Hugging Face Hub agent skill free to use?+
Yes, the hf CLI and agent skill are free and open source. The Hugging Face Hub provides free model and dataset hosting with built-in versioning.
Can I use the Python library instead of the CLI with agents?+
Yes, the huggingface_hub Python package provides the same functionality programmatically. Install it with 'pip install huggingface_hub' or 'uv pip install huggingface_hub' for faster installation.
How do I install huggingface_hub?+
Open the source repository on GitHub and follow its README. huggingface_hub is a skill — MCP Agents Market links you directly to the official repo.
Is huggingface_hub free?+
huggingface_hub is an open-source project hosted on GitHub. Check the repository for its license and any usage requirements.