Hugging Face CLI Skill for Openclaw

A powerful integration for the Hugging Face Hub CLI to programmatically manage repositories, models, datasets, and Spaces.

tsukisama9292
v1.0.0
Feb 27, 2026
0
1.2k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install openclaw-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 openclaw-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 Skill?

The openclaw-huggingface skill provides a robust interface for developers to interact with the Hugging Face Hub using the official hf command-line utility. As a key component of Openclaw Skills, it allows for seamless automation of machine learning lifecycles, ranging from repository creation and authentication management to advanced file transfers.

This skill is designed to bridge the gap between local development environments and remote AI infrastructure, making it easier to synchronize weights, manage dataset versions, and deploy live applications. By integrating this skill, developers can leverage the full power of the Hugging Face ecosystem within their agentic workflows, ensuring that model management and deployment remain consistent and reproducible.

Hugging Face CLI Skill Use Cases

  • Automating the upload of fine-tuned model weights with specific commit descriptions and tags.
  • Synchronizing large datasets across environments using optimized glob patterns and filtered downloads.
  • Managing and deploying Hugging Face Spaces with experimental hot-reload capabilities for rapid UI development.
  • Programmatically organizing AI assets into curated collections for team collaboration and research tracking.
  • Migrating repositories between namespaces or updating privacy settings via CLI-driven automation.

How Hugging Face CLI Skill Works

  1. The skill initializes by verifying the installation of the hf binary and checking for a valid HF_TOKEN in the environment variables.
  2. It establishes an authenticated session with the Hugging Face Hub to permit authorized repository operations.
  3. Developers issue commands through the skill to query model metadata, list datasets, or create new repositories.
  4. For file operations, the skill manages the logic for uploading or downloading assets, including support for large file handling and directory structures.
  5. It provides real-time feedback on repository statuses, branch updates, and the success of Pull Request creations.

Hugging Face CLI Skill Setup

To use this skill, ensure you have the Hugging Face CLI installed and your authentication token configured.

# Install the Hugging Face Hub CLI
pip install -U "huggingface_hub[cli]"

# Set your environment variable
export HF_TOKEN="your_huggingface_api_token"

# Verify your login status via Openclaw Skills
hf auth whoami

Hugging Face CLI Skill Data Schema & Taxonomy

The skill interacts with the Hugging Face Hub's structured repository system. It manages data across several primary entities:

Entity Scope Key Attributes
Models Repository Name, owner, downloads, file architecture, license.
Datasets Repository Split information, metadata, size, dataset card.
Spaces Application Runtime environment (Gradio/Streamlit), hardware specs, status.
Collections Metadata Title, list of repository IDs, notes, visibility.
Auth Credential Token permissions (read/write), username, organization access.

Hugging Face CLI Skill Advanced Features

  • Support for experimental hot-reloading for Spaces (Gradio 6.1+) to enable instant feedback during development.
  • Automated Pull Request (PR) creation during uploads to facilitate collaborative model reviews.
  • Granular file management using --include and --exclude glob patterns to save bandwidth and storage.
  • Comprehensive repository administration including branch/tag lifecycle management and namespace migration tools.
  • Batch operation support for downloading and uploading large-scale directories with custom commit messaging.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Requires
Bins hf
Github Stars: 0
forks: 0