[KongchangAI]
ConceptAuth Token环境变量

ANTHROPIC_AUTH_TOKEN

An environment variable for Claude Code used to store API authentication credentials; a third-party provider's API key can be entered here.

Timeline (last 90 days)

Oct 14

ANTHROPIC_AUTH_TOKEN sends authentication via the Authorization: Bearer header, ANTHROPIC_API_KEY sends it via the x-api-key header, and ANTHROPIC_API_KEY overrides subscription login and requires interactive confirmation.

Unverified50%
Oct 14

If ANTHROPIC_AUTH_TOKEN and ANTHROPIC_API_KEY are both set with different values, the manager rejects the request with a 401.

Unverified50%
Oct 12

Meta's documentation defines three environment variables to point Claude Code at its API: ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL, and requires setting the Opus, Sonnet, and Haiku aliases and the sub-agent model to the same ID to ensure no request falls back to a Claude model.

Unverified50%
Oct 12

By setting environment variables such as ANTHROPIC_BASE_URL, ANTHROPIC_AUTH_TOKEN, and ANTHROPIC_MODEL, Claude Code can be pointed at Meta's API, but only Muse Wonder is available, not Wonder Full.

Unverified50%
Oct 12

Claude Code decides the domain to which requests are sent by reading the environment variable ANTHROPIC_BASE_URL, and performs authentication through ANTHROPIC_AUTH_TOKEN.

Unverified50%

All Facts (5)

Source Articles