diff --git a/docs/inference-providers/integrations/claude-code.md b/docs/inference-providers/integrations/claude-code.md index 8e0f3cc7b..3ff46f402 100644 --- a/docs/inference-providers/integrations/claude-code.md +++ b/docs/inference-providers/integrations/claude-code.md @@ -76,13 +76,23 @@ 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 +``` 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.