[KongchangAI]
Concept

ANTHROPIC_MODEL

An environment variable for Claude Code that specifies the model ID used for the main conversation. Claude Code internally routes tasks by Haiku/Sonnet/Opus tier, and the models for each tier are configured separately through ANTHROPIC_DEFAULT_HAIKU_MODEL, ANTHROPIC_DEFAULT_SONNET_MODEL and ANTHROPIC_DEFAULT_OPUS_MODEL.

Timeline (last 90 days)

Oct 14

ANTHROPIC_MODEL specifies the model ID used for Claude Code's main conversation; ANTHROPIC_DEFAULT_HAIKU_MODEL specifies the lightweight model used for small background tasks (such as generating short titles or quick classification).

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%

All Facts (3)

Source Articles