⌨️ANTHROPIC_CUSTOM_HEADERS
Also known as ANTHROPIC_CUSTOM_HEADERS environment variable
It adds your own headers to each request.
Think of it like
It is like you add a note to the top of each letter.
Example
Jack's gateway splits the bill by team. Each team sets ANTHROPIC_CUSTOM_HEADERS to X-Team and its name, and the bill comes out right.
Why it matters
A gateway can sort, bill and allow requests by facts only you know.
Definition
Example code
bash
export ANTHROPIC_CUSTOM_HEADERS="X-Team: payments"
claudeCommon mistake
Key takeaways
- 1Name: Value. One per line.
- 2Every request. The gateway reads it.
- 3Plain characters. Or the request fails.