huggingface-hub

Access Hugging Face Hub models, datasets, and spaces via the huggingface_hub Python library. Use when you need to list, search, download, or upload HF assets.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "huggingface-hub" with this command: npx skills add jaknyfe.zo.computer/hf-hub

Hugging Face Hub Skill

Interact with Hugging Face Hub — browse models/datasets/spaces, download files, upload artifacts, and more.

Prerequisites

Install the library:

pip install huggingface_hub

Save your HF token to Settings > Advanced as HF_TOKEN (get one at https://huggingface.co/settings/tokens).

Usage

python3 /home/workspace/Skills/huggingface-hub/scripts/hf_hub.py <command> [options]

Commands

CommandDescription
list-modelsList models. Options: --search, --sort, --direction, --limit
list-datasetsList datasets. Options: --search, --sort, --direction, --limit
list-spacesList spaces. Options: --search, --sort, --direction, --limit
model-infoGet model info. Options: --model
dataset-infoGet dataset info. Options: --dataset
download-fileDownload a file from a repo. Options: --repo-id, --filename, --revision
upload-fileUpload a file. Options: --local-path, --repo-id, --repo-type, --path-in-repo
whoamiShow authenticated user info

Examples

# Search for text-to-image models
python3 .../hf_hub.py list-models --search "text-to-image" --limit 10

# Download a model file
python3 .../hf_hub.py download-file --repo-id "stabilityai/stable-diffusion-xl-base-1.0" --filename "pytorch_model.bin"

# Upload a file
python3 .../hf_hub.py upload-file --local-path ./model.pt --repo-id "your-username/my-model" --repo-type "model"

# List top-rated datasets
python3 .../hf_hub.py list-datasets --sort "likes" --direction desc --limit 5

API Reference

This skill wraps huggingface_hub. Key functions:

  • list_models, list_datasets, list_spaces — browse hub
  • huggingface_hub — authentication and file ops
  • InferenceClient — run inference on hosted models/spaces

Notes

  • Downloads cache to ~/.cache/huggingface/
  • repo-type values: model, dataset, space
  • Default revision is main

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

Kiln

Control 3D printers with AI agents — 430 MCP tools, 114 CLI commands, text/sketch-to-3D generation, model marketplace search, multi-printer fleet support, sa...

Registry SourceRecently Updated
Coding

Video Editor Link

Get shareable edited videos ready to post, without touching a single slider. Upload your video clips (MP4, MOV, AVI, WebM, up to 500MB), say something like "...

Registry SourceRecently Updated
Coding

Video Runcomfy

process video clips into AI-processed video with this skill. Works with MP4, MOV, AVI, WebM files up to 500MB. AI video creators use it for running ComfyUI A...

Registry SourceRecently Updated
Coding

The Hive

Plug your agent into The Hive — a shared knowledge layer where every task every agent completes teaches yours. Free for every agent. Wires a pre-task hook (i...

Registry SourceRecently Updated