hf-space-deployer
Installation
SKILL.md
HF Space Deployer for Fast-Agent
Deploy fast-agent agents as MCP servers to Hugging Face Spaces using the hf CLI tool.
Choose Your Deployment Model
| Shared Secrets | Token Passthrough | |
|---|---|---|
| Who pays? | You (Space owner) | Users (their HF account) |
| Setup | Add API keys as Space secrets | Enable FAST_AGENT_SERVE_OAUTH=hf + request scope |
| Best for | Internal tools, demos | Public deployments, multi-tenant |
| Models | Any provider | HF Inference only |
| Client auth | None required | Bearer token in header |
How Token Passthrough Works
When FAST_AGENT_SERVE_OAUTH=hf is set, clients can authenticate two ways: