huggingface

Hf Claude — Development skill for Claude Code

Development community

Launch Claude Code with Hugging Face Inference Providers.

How to install Hf Claude

This entry records only its repository, not the path inside it, so there is no exact command to give. Open huggingface/hf-claude and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Hf Claude does

Launch Claude Code with Hugging Face Inference Providers.

Alternatives in Development

  • Doctor — Environment diagnostics with interactive fixes — providers, auth, RTK, hooks, token optimization 2.8k ★
  • Magnitude — Open source inference server your agent sets up for you 1.5k ★
  • Providers — Multi-Provider Support 1.1k ★

README

hf-claude

extension for `hf` to launch Claude Code with [Hugging Face Inference Providers](https://huggingface.co/docs/inference-providers/en/index)

It lets you pick:

  • model (from https://router.huggingface.co/v1/models)
  • provider (auto or a concrete provider for the selected model)

Then it runs `claude --model ` with the required env vars preconfigured.

Requirements

  • Claude Code CLI installed
  • curl, jq, bash
  • `fzf` (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