
hf-claude
Launch Claude Code with Hugging Face Inference Providers
Install with your AI
Paste into Claude Code, Cursor, or any agent — it reads the repo and wires the tool into your project.
Install and set up hf-claude (git-clone project) into my current project. Found on https://claudeers.com/hf-claude Repo: https://github.com/huggingface/hf-claude Homepage/docs: — Detected install method: git-clone → git clone https://github.com/huggingface/hf-claude Category: devops. Platforms: cli. Read the repo's README for exact setup and env vars, then install it and wire it into my project. Claudeers Health Verdict: active; community-verified: false. Confirm the source before running anything.
git clone https://github.com/huggingface/hf-claude
// compatibility
| Platforms | cli |
|---|---|
| Operating systems | — |
| AI compatibility | claude |
| License | — |
| Pricing | open-source |
| Language | Shell |
hf-claude
extension for hf to launch Claude Code with Hugging Face Inference Providers
It lets you pick:
- model (from
https://router.huggingface.co/v1/models) - provider (
autoor a concrete provider for the selected model)
Then it runs claude --model <model[:provider]> with the required env vars preconfigured.
Requirements
- Claude Code CLI installed
curl,jq,bashfzf(optional) — enables fuzzy model/provider search; without it the launcher falls back to an arrow-key menu (↑/↓ to move, Enter to select)- A Hugging Face token, via either:
curl -LsSf https://hf.co/cli/install.sh | bash
hf auth login
# or
export HF_TOKEN='hf_...'
Install
hf extensions install hf-claude
# add --force to reinstall the extension
Run
hf claude
# or
hf extensions exec claude
Forward extra args to Claude Code:
hf claude --help
hf extensions exec claude -- --help
Billing to an organization
To bill inference usage to a Hugging Face organization instead of your personal
account, pass --bill-to (you must have Write privileges in the org):
hf claude --bill-to your-org-name
This sets the router's X-HF-Bill-To header (via ANTHROPIC_CUSTOM_HEADERS) on
every request. You can also set it via the HF_BILL_TO environment variable:
export HF_BILL_TO=your-org-name
hf claude
// faq
What is hf-claude?
Launch Claude Code with Hugging Face Inference Providers. It is open-source on GitHub.
Is hf-claude free to use?
hf-claude is open-source, so it is free to use.
What category does hf-claude belong to?
hf-claude is listed under devops in the Claudeers registry of Claude-compatible tools.
// embed badge
[](https://claudeers.com/hf-claude)
// retro hit counter
[](https://claudeers.com/hf-claude)
// reviews
// guestbook
// related in DevOps & CI/CD
⭐AI-driven public opinion & trend monitor with multi-platform aggregation, RSS, and smart alerts.🎯 告别信息过载,你的 AI 舆情监控助手与热点筛选工具!聚合多平台热点 + RSS 订阅,支持关键词精准筛选。AI…
Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic.
Professional Antigravity Account Manager & Switcher. One-click seamless account switching for Antigravity Tools. Built with Tauri v2 + React (Rust).专业的 Antig…
Roadmap to becoming an ASP.NET Core developer in 2026