Expired70% confidenceSolutionExact time
Claude Code supports forwarding requests to any endpoint compatible with the OpenAI API format by configuring the ANTHROPIC_BASE_URL environment variable, enabling model replacement.
2
Sources
70%
Confidence
Medium-term (~90 days)
Relevance
7/23/2026
First Seen
Valid until: 10/21/2026(expired)
Sources
Claude Code 入门指南:终端 Agent 编程实战与环境搭建
Related Claims
VerifiedClaude Code supports connecting to third-party model services compatible with the OpenAI interface specification by configuring custom API endpoints and API keys.78% similarVerifiedOpenRouter provides an OpenAI-compatible interface, allowing developers to switch models simply by modifying the base_url parameter.78% similarUnverifiedClaude Code uses Anthropic's Messages protocol rather than OpenAI's chat completions protocol, so setting only the Base URL cannot directly connect to OpenAI-shaped endpoints.77% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/598843API
curl https://kongchang.com/api/v1/knowledge/claims/598843MCP
get_claim(id=598843)