已验证80% 置信事实精确时间
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
来源数
80%
置信度
中期 (~90 天)
时效性
2026/7/2
首次发现
有效期至:2026/9/30
来源
Local Deployment of Claude Code: Principles and Practical Guide for Three Approaches
bilibiliAI大模型_小奕2026/6/10
相关事实
待验证国内开发者可通过配置ANTHROPIC_API_KEY环境变量或修改base_url指向国内代理节点来使用兼容模型73% 相似待验证通过设置环境变量ANTHROPIC_BASE_URL指向LiteLLM Proxy的本地端口,可以将Claude Agent SDK的请求重定向到本地模型,无需修改SDK源码71% 相似待验证接入 Claude Code 时只需修改 Base URL 和 Auth Token 两个环境变量,将其指向 Ollama 服务器即可65% 相似待验证Claude Code 默认访问 Anthropic 境外服务 api.anthropic.com,国内网络环境下需配置代理和 API64% 相似待验证该代理项目采用适配器模式,对外暴露符合Anthropic Messages API规范的HTTP接口,对内将请求转换为Copilot可识别的格式63% 相似
引用此条事实
Stable URI
https://kongchang.com/claim/46758API
curl https://kongchang.com/api/v1/knowledge/claims/46758MCP
get_claim(id=46758)