Unverified90% confidenceFactTime unknown
通过设置环境变量ANTHROPIC_BASE_URL指向LiteLLM Proxy的本地端口,可以将Claude Agent SDK的请求重定向到本地模型,无需修改SDK源码
1
Sources
90%
Confidence
Long-term
Relevance
5/31/2026
First Seen
Sources
Related Entities
Related Claims
VerifiedThe ANTHROPIC_BASE_URL environment variable can be used to redirect Claude Code requests from the official Anthropic API to a local model service address.71% similarUnverifiedHermes Agent 0.14.0 adds a Local Proxy layer, allowing users to route it to local coding tools or autonomous agents with just a single subscription.67% similarUnverifiedThe solution of connecting the Claude Agent SDK to a local large model via LiteLLM Proxy can reduce API call costs from nearly $1 per simple task to almost zero.67% similarUnverifiedDomestic developers can use compatible models by configuring the ANTHROPIC_API_KEY environment variable or modifying base_url to point to a domestic proxy node.67% similarVerifiedClaude Code supports configuring a custom API endpoint (base URL) and key via environment variables, allowing requests to be redirected to any compatible interface.65% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/3270API
curl https://kongchang.com/api/v1/knowledge/claims/3270MCP
get_claim(id=3270)