From f656001a83c01117d95c2dc16744375a44470526 Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Wed, 24 Jun 2026 18:29:47 +0200 Subject: [PATCH 1/2] [Inference Providers] Fix empty code blocks in Claude Code billing section PR #2588 merged with empty/malformed code blocks in the "Billing to an Organization" section, so the actual commands were missing. This restores the three command snippets: - `hf claude --bill-to your-org-name` (hf-claude extension) - `export HF_BILL_TO="your-org-name"` (env var) - `export ANTHROPIC_CUSTOM_HEADERS="X-HF-Bill-To: your-org-name"` (manual) Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01CCzpk1dTa5yZW8PQeeL7Jb --- docs/inference-providers/integrations/claude-code.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/inference-providers/integrations/claude-code.md b/docs/inference-providers/integrations/claude-code.md index 8e0f3cc7b..da63f076a 100644 --- a/docs/inference-providers/integrations/claude-code.md +++ b/docs/inference-providers/integrations/claude-code.md @@ -76,13 +76,20 @@ To bill inference usage to a Hugging Face organization instead of your personal **With the `hf-claude` extension**, pass the `--bill-to` flag: +```bash +hf claude --bill-to your-org-name +``` You can also set the `HF_BILL_TO` environment variable instead: +```bash +export HF_BILL_TO="your-org-name" ``` **With manual environment variables**, set `ANTHROPIC_CUSTOM_HEADERS` to include the `X-HF-Bill-To` header: +```bash +export ANTHROPIC_CUSTOM_HEADERS="X-HF-Bill-To: your-org-name" ``` Replace `your-org-name` with the name of the organization you want to bill to. The org must be a Team or Enterprise org that you're a member of. From 686b61ba1f92f4d068004cc5012cce840c3d5d4d Mon Sep 17 00:00:00 2001 From: Celina Hanouti Date: Wed, 24 Jun 2026 18:36:21 +0200 Subject: [PATCH 2/2] Add launch commands to Claude Code billing examples - hf-claude --bill-to block: prepend `hf extensions install hf-claude --force` to get the latest extension - HF_BILL_TO block: add `hf claude` to launch - ANTHROPIC_CUSTOM_HEADERS block: add `claude` to launch Co-Authored-By: Claude Opus 4.8 (1M context) Claude-Session: https://claude.ai/code/session_01CCzpk1dTa5yZW8PQeeL7Jb --- docs/inference-providers/integrations/claude-code.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/inference-providers/integrations/claude-code.md b/docs/inference-providers/integrations/claude-code.md index da63f076a..3ff46f402 100644 --- a/docs/inference-providers/integrations/claude-code.md +++ b/docs/inference-providers/integrations/claude-code.md @@ -77,6 +77,7 @@ To bill inference usage to a Hugging Face organization instead of your personal **With the `hf-claude` extension**, pass the `--bill-to` flag: ```bash +hf extensions install hf-claude --force # reinstall to get the latest version of the extension hf claude --bill-to your-org-name ``` @@ -84,12 +85,14 @@ You can also set the `HF_BILL_TO` environment variable instead: ```bash export HF_BILL_TO="your-org-name" +hf claude ``` **With manual environment variables**, set `ANTHROPIC_CUSTOM_HEADERS` to include the `X-HF-Bill-To` header: ```bash export ANTHROPIC_CUSTOM_HEADERS="X-HF-Bill-To: your-org-name" +claude ``` Replace `your-org-name` with the name of the organization you want to bill to. The org must be a Team or Enterprise org that you're a member of.