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)
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).
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.
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.
All Facts (3)
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).
50%UnverifiedBy 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.
50%UnverifiedMeta'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.
50%