npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@lyfuci/openclaw-hf

v0.1.5

Published

Complete Hugging Face Inference Providers plugin for OpenClaw — LLM chat, image generation, embeddings, STT, and video under one HF token.

Readme

@lyfuci/openclaw-hf

npm GitHub

Complete Hugging Face Inference Providers plugin for OpenClaw — covers all HF capability areas under a single HF API token.

| Capability | Provider route | Default model | |---|---|---| | LLM chat | router.huggingface.co/v1 (OpenAI-compat) | any model in your config | | Image generation | hf-inference/models/<id> | black-forest-labs/FLUX.1-schnell | | Memory embeddings | scaleway/v1/embeddings | Qwen/Qwen3-Embedding-8B | | Audio transcription | hf-inference/models/<id> | openai/whisper-large-v3 | | Video generation | replicate/v1/models/<id> | Wan-AI/Wan2.2-T2V-A14B |

HF Pro $2/month free tier covers all routes. No separate accounts needed.

Install

openclaw plugins install @lyfuci/openclaw-hf

Configure

Add an hf provider section to your openclaw.json:

{
  "models": {
    "providers": {
      "hf": {
        "baseUrl": "https://router.huggingface.co/v1",
        "api": "openai-completions",
        "apiKey": { "source": "env", "id": "HUGGINGFACE_HUB_TOKEN" },
        "models": [
          {
            "id": "deepseek-ai/DeepSeek-V3-0324",
            "name": "DeepSeek V3 (HF)",
            "api": "openai-completions",
            "contextWindow": 131072,
            "maxTokens": 8192,
            "compat": { "supportsUsageInStreaming": true }
          },
          {
            "id": "Qwen/Qwen3-235B-A22B",
            "name": "Qwen3 235B (HF)",
            "api": "openai-completions",
            "contextWindow": 131072,
            "maxTokens": 8192,
            "compat": { "supportsUsageInStreaming": true }
          }
        ]
      }
    }
  }
}

Note: always add "compat": {"supportsUsageInStreaming": true} to each model — without it OpenClaw forces token counts to 0 for non-OpenAI-native endpoints.

Set your token:

export HUGGINGFACE_HUB_TOKEN=hf_...

Or add it via:

openclaw auth login --provider hf --method api-key

Image generation

Switch your image model to use this provider:

{
  "agents": {
    "defaults": {
      "imageModel": { "primary": "hf/black-forest-labs/FLUX.1-schnell" }
    }
  }
}

Memory embeddings

Switch semantic memory search to this provider:

{
  "agents": {
    "defaults": {
      "memorySearch": {
        "provider": "hf",
        "model": "qwen3-embedding-8b"
      }
    }
  }
}

Video generation

Supported Wan models (HF Pro, via replicate): Wan-AI/Wan2.1-T2V-14B, Wan-AI/Wan2.1-T2V-1.3B, Wan-AI/Wan2.2-T2V-A14B, Wan-AI/Wan2.2-TI2V-5B.

Notes

  • fal-ai routes (HunyuanVideo, Mochi, CogVideoX) require separate fal.ai pre-paid credits — not covered by HF Pro
  • STT uses the raw bytes endpoint on hf-inference; not the OpenAI /audio/transcriptions path
  • Embedding dimensions: 4096 (Qwen3-Embedding-8B via Scaleway)

License

MIT