Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

huggingface-spaces

Skill by huggingface

Builds, deploys and maintains applications on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, ZeroGPU and dedicated hardware. Aimed at developers who host ML demos on Hugging Face.

  • Score 94
  • 11k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install huggingface-spaces

Built from the published package, never by AI.

git clone --depth 1 https://github.com/huggingface/skills /tmp/skills && mkdir -p ~/.claude/skills && cp -r /tmp/skills/skills/huggingface-spaces ~/.claude/skills/huggingface-spaces

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install huggingface-spaces in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The huggingface-spaces skill guides an AI assistant through building, deploying and maintaining applications on Hugging Face Spaces. It covers the Gradio, Docker and Static SDKs, ZeroGPU and dedicated hardware, model loading, debugging, buckets, inference providers and community grants. The skill is meant for requests to create or host an app on Hugging Face, port code onto ZeroGPU, or fix a Space that will not build or run.

It also explains how to check the hf CLI and login, search existing Spaces for prior art, choose an SDK and hardware tier, and write the README frontmatter and requirements.txt. The source is aimed at developers and ML engineers who publish demos on Hugging Face. It names the hf-cli skill as the recommended companion for full command coverage.

Written from the project's SKILL.md and checked against it.

What it can do

  • Search existing SpacesFinds prior demos with hf spaces search so the assistant can reuse a working pattern.
  • Choose SDK and hardwarePicks Gradio, Docker or Static and ZeroGPU, CPU or dedicated hardware based on the request.
  • Create a SpaceRuns hf repos create with the SDK, hardware flavor, secrets, env vars and visibility.
  • Write README frontmatterSets title, sdk, sdk_version, app_file, python_version and other Space config fields.
  • Build a ZeroGPU Gradio appWrites an app using import spaces, module-scope model loading and @spaces.GPU.
  • Set up requirements.txtLists needed packages and avoids pinning gradio, spaces and huggingface_hub.
  • Expose apps as MCP serversAdds docstrings and launches with mcp_server=True so functions become MCP tools.
  • Debug SpacesHelps fix a Space that will not build or run, per the skill's debugging guidance.

What you need

  • hf CLI installed (pip install -U huggingface_hub)
  • Hugging Face account logged in with hf auth login
  • PRO, Team or Enterprise plan to create Gradio or Docker Spaces with compute
  • Write-scoped token if not using OAuth login

Try asking

  • Search Hugging Face Spaces for a Gradio demo of this model
  • Create a Gradio Space on ZeroGPU for my text-to-image model
  • Fix my Hugging Face Space that fails to build

Good to know

  • Gradio and Docker Spaces need a paid plan to create, except up to 2 ZeroGPU Spaces on free personal accounts.
  • ZeroGPU is Gradio-only and PyTorch-first.
  • Docker Spaces do not support ZeroGPU.
  • hardware set in the README YAML is ignored.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/huggingface-spaces/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • README.md412 B
  • SKILL.md17 KB
  • references/3d-cuda-extensions.md9 KB
  • references/3d-generation.md9 KB
  • references/3d-gsplat.md7 KB
Show all 15 files
  • references/3d-models.md20 KB
  • references/3d-outputs.md9 KB
  • references/buckets.md4 KB
  • references/debugging.md11 KB
  • references/gradio.md9 KB
  • references/grants.md3 KB
  • references/inference-providers.md4 KB
  • references/known-errors.md13 KB
  • references/requirements.md11 KB
  • references/zerogpu.md21 KB

Alternatives to huggingface-spaces

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

huggingface-spaces: common questions

Can I host a Gradio Space on a free Hugging Face account?

Yes, but only as ZeroGPU Spaces. Free personal accounts in good standing can host up to 2 ZeroGPU Spaces.

What is ZeroGPU in Hugging Face Spaces?

ZeroGPU is dynamic, per-request GPU allocation on NVIDIA RTX PRO 6000 Blackwell. It is Gradio-only and PyTorch-first.

Does Docker support ZeroGPU?

No. The source says Docker Spaces do not support ZeroGPU. Docker Spaces also need a paid plan to create.

How do I install huggingface-spaces?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is huggingface-spaces free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is huggingface-spaces safe to use?

It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to huggingface-spaces?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

huggingface-spaces Install

Add to stack

Loading.