Hugging Face CLI for Openclaw

A powerful integration for managing Hugging Face Hub resources, including models, datasets, and Spaces, through the hf command-line interface.

tsukisama9292
v1.0.2
Feb 27, 2026
1
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install huggingface

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install huggingface using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Hugging Face CLI?

This skill integrates the Hugging Face Hub CLI into the Openclaw Skills ecosystem, enabling AI agents to programmatically interact with the world's most popular AI repository. It provides comprehensive control over model lifecycles, dataset versioning, and the deployment of Gradio or Streamlit Spaces. By using this tool, developers can automate the transition from model training to hosting without leaving their coding environment.

Hugging Face CLI Use Cases

  • Automating the download of specific model weights and configuration files for local inference.
  • Managing repository settings, such as switching visibility to private or creating new branches for experiment tracking.
  • Streamlining the deployment and hot-reloading of AI-powered Spaces for rapid prototyping.
  • Batch uploading datasets or models with custom commit messages and Pull Request creation for collaborative projects.

How Hugging Face CLI Works

  1. The skill authenticates with the Hugging Face Hub using the provided HF_TOKEN environment variable.
  2. It utilizes the hf binary to execute specific commands for model, dataset, or Space management.
  3. Users can query metadata, list repositories, or perform file operations like recursive downloads using glob patterns.
  4. The skill handles repository lifecycle events, including creation, tagging, and deletion.
  5. For interactive development, it supports experimental features like hot-reloading for Gradio-based Spaces.

Hugging Face CLI Setup

Ensure the Hugging Face CLI is installed and your API token is configured in your environment. This is essential for the Openclaw Skills to function correctly.

# Install the Hugging Face Hub library
pip install huggingface_hub

# Set your authentication token
export HF_TOKEN="your_huggingface_token_here"

Hugging Face CLI Data Schema & Taxonomy

The skill interacts with the Hugging Face Hub's remote architecture and local file systems.

Entity Data Managed Metadata
Models weights, configs, safetensors downloads, tags, author
Datasets parquet, csv, json size, license, split
Spaces app.py, requirements.txt hardware, runtime status
Repos git-based versioning privacy, branch names

Hugging Face CLI Advanced Features

  • Hot-reloading support for Spaces using Gradio 6.1+.
  • Granular file filtering during downloads using --include and --exclude glob patterns.
  • Automated Pull Request (PR) creation during file uploads for collaborative workflows.
  • Complete collection management to organize multiple repositories into curated lists.
  • Large folder upload optimizations and namespace migration capabilities.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins hf
Github Stars: 0
forks: 0

Featured*