Expired80% confidenceFactExact time
The ANTHROPIC_BASE_URL environment variable can be used to redirect Claude Code requests from the official Anthropic API to a local model service address.
9
Sources
80%
Confidence
Medium-term (~90 days)
Relevance
7/2/2026
First Seen
Valid until: 9/30/2026(expired)
Sources
Local Deployment of Claude Code: Principles and Practical Guide for Three Approaches
bilibiliAI大模型_小奕6/10/2026
Related Claims
UnverifiedDomestic developers can use compatible models by configuring the ANTHROPIC_API_KEY environment variable or modifying base_url to point to a domestic proxy node.73% similarUnverified通过设置环境变量ANTHROPIC_BASE_URL指向LiteLLM Proxy的本地端口,可以将Claude Agent SDK的请求重定向到本地模型,无需修改SDK源码71% similarUnverifiedWhen connecting to Claude Code, only two environment variables need to be modified—Base URL and Auth Token—pointing them to the Ollama server.65% similarUnverifiedClaude Code accesses the Anthropic overseas service api.anthropic.com by default, requiring proxy and API configuration under domestic Chinese network environments.64% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/46758API
curl https://kongchang.com/api/v1/knowledge/claims/46758MCP
get_claim(id=46758)