Token导航 LogoToken导航

Agent Skill · 研究检索

hugging-face-cli(hugging face CLI 搜索)

hugging-face-cli 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

hugging-face-cli 是研究检索类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 13,198。

总安装 9,596周安装 392GitHub Stars 1下载 3,105核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.0

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:hugging-face-cli(hugging face CLI 搜索)
来源仓库:https://github.com/yevhendiachenko0/hugging-face-cli
安装命令:
openclaw skills install hugging-face-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install hugging-face-cli

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

通过 hf CLI 管理 Hugging Face Hub。在使用 HF AI 模型、数据集、空间或存储库时使用。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install hugging-face-cli;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

hugging-face-cli 怎么安装?

在终端执行 openclaw skills install hugging-face-cli。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

hugging-face-cli 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

hugging-face-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

hugging-face-cli 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

hugging-face-cli 用的人多吗?

公开数据是累计安装 9,596 次,近一周安装 392 次,下载 3,105 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

hugging-face-cli 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
hugging-face-cli

hugging face CLI 搜索 · 本页

9,5961接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
hugging-face-cli
description
Manage Hugging Face Hub via hf CLI. Use when working with HF AI models, datasets, spaces, or repos.
user-invocable
true
metadata
openclaw
emoji
\F917
version
1.1.0
homepage
https://huggingface.co
primaryEnv
HF_TOKEN
requires
env
[HF_TOKEN]
bins
[hf]

Hugging Face CLI

Hugging Face (https://huggingface.co) is the leading platform for sharing and collaborating on AI models, datasets, and spaces. This skill enables interaction with the Hub through the official hf CLI.

Installation

Check if hf is available by running hf version. If not installed:

pip install -U "huggingface_hub[cli]"
# or
brew install hf

If the options above do not work, follow the official installation guide.

After installation, run hf version to verify. If the command is not found, run source ~/.bashrc (or source ~/.zshrc for zsh) to reload the PATH, then try again.

Authentication

A Hugging Face User Access Token is required. The token is provided via the HF_TOKEN environment variable.

If authentication fails or the token is missing, instruct the user to:

  1. Go to https://huggingface.co/settings/tokens
  2. Create a new token — there are two permission levels:

- Read (safer): sufficient for searching, downloading models/datasets, listing repos, browsing papers, and most read-only operations. Choose this if you only need to explore and download. - Write (less safe, broader access): required for creating/deleting repos, uploading files, managing discussions, deploying endpoints, and running jobs. Example 3 (create a repo and upload weights) requires a write token.

  1. Set it as an environment variable: export HF_TOKEN="hf_..." (add to shell profile for persistence)

Important: Do NOT run hf auth login interactively — it requires terminal input. Instead, use the environment variable directly. The hf CLI automatically picks up HF_TOKEN from the environment for all commands. To verify authentication, run:

hf auth whoami

Key Commands

TaskCommand
Check current userhf auth whoami
Download fileshf download <repo_id> [files...] [--local-dir <path>]
Download specific revision`hf download <repo_id> --revision <branch\tag\commit>`
Download with filtershf download <repo_id> --include "*.safetensors" --exclude "*.bin"
Upload fileshf upload <repo_id> <local_path> [path_in_repo]
Upload as PRhf upload <repo_id> <local_path> [path_in_repo] --create-pr
Upload (private repo)hf upload <repo_id> <local_path> [path_in_repo] --private
Upload large folderhf upload-large-folder <repo_id> <local_path>
Create a repo`hf repos create <name> [--repo-type model\dataset\space] [--private]`
Delete a repohf repos delete <repo_id>
Delete files from repohf repos delete-files <repo_id> <path>...
Duplicate a repo`hf repos duplicate <repo_id> [--type model\dataset\space]`
Repo settings`hf repos settings <repo_id> [--private\--public]`
Manage branches`hf repos branch create\delete <repo_id> <branch>`
Manage tags`hf repos tag create\delete <repo_id> <tag>`
List modelshf models ls [--search <query>] [--sort downloads] [--limit N]
Model infohf models info <repo_id>
List datasetshf datasets ls [--search <query>]
Dataset infohf datasets info <repo_id>
Run SQL on datahf datasets sql "<SQL>"
List spaceshf spaces ls [--search <query>]
Space infohf spaces info <repo_id>
Space dev modehf spaces dev-mode <repo_id>
List papershf papers ls [--limit N]
List collectionshf collections ls [--owner <user>] [--sort trending]
Create collectionhf collections create "<title>"
Collection infohf collections info <collection_slug>
Add to collectionhf collections add-item <collection_slug> <repo_id> <type>
Delete collectionhf collections delete <collection_slug>
Run a cloud jobhf jobs run <docker_image> <command>
List jobshf jobs ps
Job logshf jobs logs <job_id>
Cancel a jobhf jobs cancel <job_id>
Job hardwarehf jobs hardware
Deploy endpointhf endpoints deploy <name> --repo <repo_id> --framework <fw> --accelerator <hw> ...
List endpointshf endpoints ls
Endpoint infohf endpoints describe <name>
Pause/resume endpoint`hf endpoints pause\resume <name>`
Delete endpointhf endpoints delete <name>
List discussionshf discussions ls <repo_id>
Create discussionhf discussions create <repo_id> --title "<title>"
Comment on discussionhf discussions comment <repo_id> <num> --body "<text>"
Close discussionhf discussions close <repo_id> <num>
Merge PRhf discussions merge <repo_id> <num>
Manage cachehf cache ls, hf cache rm <id>, hf cache prune
Delete bucket / fileshf buckets delete <user>/<bucket>, hf buckets rm <user>/<bucket>/<path>
Sync to buckethf sync <local_path> hf://buckets/<user>/<bucket>
Print environmenthf env

End-to-End Examples

Example 1: Explore trending models, pick one, and preview a download

hf models ls --sort trending_score --limit 5
hf models info openai-community/gpt2
hf download --dry-run openai-community/gpt2 config.json tokenizer.json
hf download openai-community/gpt2 config.json tokenizer.json --local-dir ./gpt2

Example 2: Browse today's papers and find related datasets

hf papers ls --limit 5
hf datasets ls --search "code" --sort downloads --limit 5
hf datasets info bigcode/the-stack

Example 3: Create a private model repo and upload weights

hf repos create my-fine-tuned-model --private
# create returns <your-username>/my-fine-tuned-model — use that full ID below
hf upload <username>/my-fine-tuned-model ./output --commit-message "Add fine-tuned weights"
hf repos tag create <username>/my-fine-tuned-model v1.0 -m "Initial release"

Further Reference

Reference version: hf CLI v1.x

For the full list of commands and options, use built-in help:

hf --help
hf <command> --help
  • Full documentation: https://huggingface.co/docs/huggingface_hub/guides/cli
  • CLI reference: https://huggingface.co/docs/huggingface_hub/package_reference/cli

Safety Rules

  • Destructive commands require explicit user confirmation. Before running any of the following, describe what will happen and ask the user to confirm:

- hf repos delete — permanently deletes a repository - hf repos delete-files — deletes files from a repository - hf buckets delete / hf buckets rm — deletes buckets or bucket files - hf discussions close / hf discussions merge — closes or merges PRs/discussions - hf collections delete — permanently deletes a collection - hf endpoints delete — permanently deletes an Inference Endpoint - hf jobs cancel — cancels a running compute job - Any command with --delete flag (e.g., sync with deletion) - hf cache rm / hf cache prune — removes cached data from disk (re-downloadable, but may waste bandwidth)

  • Never expose or log the HF_TOKEN value. Do not include it in command output or commit it to files.
  • When uploading, warn the user if the target repo is public and the upload may contain sensitive data.

平台分布

OpenClaw

87.87%
按下载量换算2,728

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills