Unverified50% confidenceDecision RuleExact time
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.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
10/12/2026
First Seen
Valid until: 1/10/2027
Sources
Related Entities
Related Claims
UnverifiedClaude Code supports forwarding requests to any endpoint compatible with the OpenAI API format by configuring the ANTHROPIC_BASE_URL environment variable, enabling model replacement.72% similarUnverifiedThe core of connecting to a domestic model is configuring three environment variables: the API address, Token (API Key), and model name.65% similarVerifiedClaude Code supports connecting to third-party model services compatible with the OpenAI interface specification by configuring custom API endpoints and API keys.60% similarUnverifiedAnthropic的API提供特定版本的模型调用,如claude-3-5-sonnet-2024102260% similarUnverifiedAnthropic为Claude系列模型维护了一套独立的API规范,在消息结构、工具调用格式、流式事件类型等方面与OpenAI格式存在显著差异60% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1011220API
curl https://kongchang.com/api/v1/knowledge/claims/1011220MCP
get_claim(id=1011220)