An AI agent skill enabling cost-effective, secure discovery and multi-provider inference of open-source models and datasets on Hugging Face.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install hugging-face-api
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install hugging-face-api using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
The Hugging Face Agent Skill provides your AI agents with a comprehensive playbook and seven Model Context Protocol (MCP) tools to interact directly with the Hugging Face Hub. This skill empowers developers to search for open-source models (such as Llama, Qwen, or Mistral) and datasets, inspect technical specifications, and execute chat completions or text embeddings across various providers using a unified, OpenAI-compatible interface.
By implementing this skill, agents can intelligently navigate the Hugging Face ecosystem. It balances performance and cost by guiding agents to perform free search and validation operations first, and only call billed inference tools after confirming model support. This workflow maximizes the capability of Openclaw Skills by offering robust, secure, and production-ready open-source model integration.
hf_search_models or hf_search_datasets based on current task criteria.hf_model_info.hf_list_inference_models to confirm that the selected model is hosted and runnable by the router.hf_chat with predefined max_tokens constraints for text generation, or hf_embeddings with batched inputs for semantic vectors.To use this skill within Openclaw Skills, you must configure your environment with your Hugging Face API token. Create a read-only or read-write token on your Hugging Face settings page and add it to your environment configurations.
# Export the required token in your terminal environment
export HF_TOKEN="your_hf_token_here"
# Optional configurations to customize behavior
export HF_HUB_BASE_URL="https://huggingface.co"
export HF_ROUTER_BASE_URL="https://api-inference.huggingface.co"
export HF_TIMEOUT_MS=30000
export HF_MAX_RETRIES=3
export LOG_LEVEL="info"
The Hugging Face agent skill organizes its operations around 7 core Model Context Protocol (MCP) tools, categorizing them by discovery (free) and inference (billed) actions:
| Tool | Primary Parameters | Output Description | Cost Category |
|---|---|---|---|
hf_search_models |
query (string), filter (string) |
Array of matching model objects with Hub metadata | Free |
hf_model_info |
model_id (string) |
Comprehensive model card metadata, pipelines, and license | Free |
hf_search_datasets |
query (string) |
Dataset catalog listings matching search terms | Free |
hf_list_inference_models |
None | Active list of models supported by the inference router | Free |
hf_chat |
model (string), messages (array), max_tokens (number) |
OpenAI-compatible chat response and token usage details | Billed |
hf_embeddings |
inputs (array of strings), model (string) |
Multi-dimensional floating-point vectors for text inputs | Billed |
hf_request |
endpoint (string), params (object) |
Custom raw HTTP payload response from arbitrary endpoints | Varied |
All tools enforce clean JSON boundaries and ensure that the sensitive HF_TOKEN is never leaked in debug outputs or agent logs.
inputs) instead of single-item queries, minimizing API roundtrips.hf_list_inference_models and fall back to alternative models when encountering unsupported model errors.hf_request tool as a flexible developer escape hatch to access custom, fine-tuned, or private Hugging Face endpoints.Loading
A disciplined, multi-phase diagnosis loop designed for AI agents to systematically reproduce, isolate, and resolve complex software bugs and performance regressions.

An interactive AI design coaching and documentation skill that aligns system architecture using rigorous interviews, domain glossaries, and Architectural Decision Records (ADRs).

A production-tested memory and self-evolution blueprint designed to give AI agents persistent contextual awareness and adaptive performance across sessions.

An AI-powered career development and education planning skill that tracks global job market shifts, salary benchmarks, and education ROI across 800+ occupations.

The aky-fengshui skill provides a comprehensive spatial energy assessment by seamlessly integrating three major traditional Feng Shui schools into a structured digital workflow.

An advanced Yijing (I Ching) divination and decision-making system supporting 5 traditional methods, including 3-coin casting and Plum Blossom numerology.








































