Skip to content

[Inference Providers] Add "Billing to an Organization" section to Claude Code integration page#2588

Merged
hanouticelina merged 3 commits into
mainfrom
cursor/claude-code-billing-section-fc47
Jun 24, 2026
Merged

[Inference Providers] Add "Billing to an Organization" section to Claude Code integration page#2588
hanouticelina merged 3 commits into
mainfrom
cursor/claude-code-billing-section-fc47

Conversation

@hanouticelina

Copy link
Copy Markdown
Contributor

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:

  1. hf-claude extensionhf claude --bill-to your-org-name
  2. HF_BILL_TO env varexport HF_BILL_TO="your-org-name"
  3. Manual setup via ANTHROPIC_CUSTOM_HEADERSexport ANTHROPIC_CUSTOM_HEADERS="X-HF-Bill-To: your-org-name"

Slack Thread

Open in Web Open in Cursor 

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>
@hanouticelina hanouticelina changed the title Add "Billing to an Organization" section to Claude Code integration page [Inference Providers] Add "Billing to an Organization" section to Claude Code integration page Jun 24, 2026
@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

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.

Comment thread docs/inference-providers/integrations/claude-code.md Outdated
Comment thread docs/inference-providers/integrations/claude-code.md Outdated
Comment thread docs/inference-providers/integrations/claude-code.md Outdated
Co-authored-by: célina <hanouticelina@gmail.com>
Comment thread docs/inference-providers/integrations/claude-code.md Outdated
@hanouticelina
hanouticelina requested review from Wauplin and gary149 June 24, 2026 11:02
@hanouticelina
hanouticelina merged commit ae8fabf into main Jun 24, 2026
2 checks passed
@hanouticelina
hanouticelina deleted the cursor/claude-code-billing-section-fc47 branch June 24, 2026 12:23
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:

```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It feels like some content is missing but I'm not sure.?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants