⌨️ANTHROPIC_AUTH_TOKEN
Also known as ANTHROPIC_AUTH_TOKEN environment variable
It sends a token that a gateway can check.
Think of it like
It is like a pass your school gate checks, not the main office.
Example
Emma's company sends all its AI traffic through one gateway. She sets this to her own gateway token. Then the gateway adds the real key.
Why it matters
Staff never hold the real key. The gateway holds it and checks who is asking.
Definition
Example code
bash
export ANTHROPIC_BASE_URL=https://llm.example.com
export ANTHROPIC_AUTH_TOKEN=team-tokenCommon mistake
Key takeaways
- 1Authorization: Bearer. Not X-Api-Key.
- 2For gateways. That check tokens.
- 3Second in line. Beats the API key.