Calling Hugging Face Spaces from Claude Code as Agent Tools
Melvin Vivas · X video post · 2026-04-19 · 0:23 · 89 views · Open on X
Topics: AI Agents, Tool Use & MCP, AI Dev Tools & Productivity · Level: intermediate
Summary
A short demo post (no narration) showing Claude Code calling Hugging Face Spaces directly as tools. The quoted Hugging Face post says the Hub is becoming a platform where agents use and build AI. Agents can now reach about 1M Spaces and use the specialized models hosted there, such as image, audio and vision models, without you writing the integration code.
Key points
- Hugging Face Spaces (hosted ML demo apps) can be called as tools by a coding agent like Claude Code.
- Per the quoted post, agents can call roughly 1M HF Spaces, which gives them the abilities of the latest specialized models (image generation, speech, OCR, vision and so on).
- Hugging Face presents itself as a platform where agents both use AI and build it, not only a place for humans to browse models.
- Practical effect: instead of wiring up each model API yourself, you let Claude Code find and call a Space that already does the task.
- The video has no speech, and the post doesn't explain the setup. In practice this kind of integration is usually done through Hugging Face's MCP server connected to Claude Code; check the HF docs for the current setup steps.
- Free Spaces can be slow or rate-limited (shared hardware, queues, ZeroGPU quotas), so expect some variance when an agent calls them.
Resources mentioned
- Hugging Face · website · x.com · free · recommended by both Bashiri Smith & Melvin Vivas
Platform for hosting and finding ML models, datasets and papers. The quoted post says LocateAnything was trending there.
Also in: Using an ML agent to train an open-source TTS model on your voice (Melvin Vivas on X · notes), Deploy Open-Source Models with Hugging Face Inference Endpoints (Melvin Vivas on X · notes), Deploying Qwen3.8 27B on Hugging Face Inference Endpoints (Melvin Vivas on X · notes), Using Hugging Face credits: Jobs, Inference Endpoints and Open Models (Melvin Vivas on X · notes) and 38 more - Hugging Face Spaces · tool · huggingface.co · free · recommended by both Bashiri Smith & Melvin Vivas
Deploy demos publicly for free so recruiters can see them.
Also in: Every Hugging Face Space Now Has AGENTS.md for Coding Agents (Melvin Vivas on X · notes), Hugging Face Pro Spaces Credits for Image Generation (Melvin Vivas on X · notes) - Claude Code · tool · code.claude.com · paid · recommended by both Bashiri Smith & Melvin Vivas
Build agents and pipelines from the terminal; the guide's main agentic coding tool.
Also in: Create Claude Code Plugins with /plugin-authoring (Melvin Vivas on X · notes), Claude Code mods: customize behavior and UI with plugins (Melvin Vivas on X · notes), AI Engineer Roadmap Overview: From ML Foundations to RAG, Agents & Ops (Bashiri Smith on Facebook · notes), SkillsBento: Free Plugin Marketplace for Codex and Claude Code (Melvin Vivas on X · notes) and 101 more
Try this
- Connect Hugging Face to Claude Code (for example through Hugging Face's MCP server) and try having it call a Space for a task like image generation or transcription.
- Browse Hugging Face Spaces to find specialized models your agent could use as tools.
- Build a Claude Code workflow that hands off specialized subtasks (image generation, speech-to-text, OCR) to Hugging Face Spaces and then combines the results.
More in AI Agents, Tool Use & MCP
- Cursor SDK: Build Agents on Cursor's Runtime, Harness and Models
- skillsbento: Free Open-Source Agent Skills for Claude
- Every Hugging Face Space Now Has AGENTS.md for Coding Agents
- A2UI v0.9: A Portable Standard for Agent-Generated UI
- Gemma 4 Running Agentic Tasks Fully On-Device on a Phone
- Gemini CLI Adds Subagents with Separate Context Windows