[Inference Providers] Add "Billing to an Organization" section to Claude Code integration page#2588
Merged
Merged
Conversation
Add documentation for billing inference usage to an HF organization when using Claude Code, covering three methods: - hf claude --bill-to flag (hf-claude extension) - HF_BILL_TO environment variable - ANTHROPIC_CUSTOM_HEADERS with X-HF-Bill-To header (manual setup) Co-authored-by: célina <hanouticelina@users.noreply.github.com>
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
hanouticelina
commented
Jun 24, 2026
Co-authored-by: célina <hanouticelina@gmail.com>
hanouticelina
commented
Jun 24, 2026
SBrandeis
approved these changes
Jun 24, 2026
julien-c
reviewed
Jun 24, 2026
Comment on lines
+77
to
+86
| **With the `hf-claude` extension**, pass the `--bill-to` flag: | ||
|
|
||
|
|
||
| You can also set the `HF_BILL_TO` environment variable instead: | ||
|
|
||
| ``` | ||
|
|
||
| **With manual environment variables**, set `ANTHROPIC_CUSTOM_HEADERS` to include the `X-HF-Bill-To` header: | ||
|
|
||
| ``` |
Member
There was a problem hiding this comment.
It feels like some content is missing but I'm not sure.?
Contributor
Author
There was a problem hiding this comment.
yep, not sure what happened. I will fix that in another PR
hanouticelina
added a commit
that referenced
this pull request
Jun 24, 2026
…tion (#2591) * [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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCzpk1dTa5yZW8PQeeL7Jb * 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) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01CCzpk1dTa5yZW8PQeeL7Jb --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a "Billing to an Organization" subsection to the Claude Code integration page, mirroring the existing section on the Codex page.
The new section documents three ways to bill inference usage to an HF organization:
hf-claudeextension —hf claude --bill-to your-org-nameHF_BILL_TOenv var —export HF_BILL_TO="your-org-name"ANTHROPIC_CUSTOM_HEADERS—export ANTHROPIC_CUSTOM_HEADERS="X-HF-Bill-To: your-org-name"Slack Thread