接入 · 订阅与兼容端点,两条上路Get On · Subscription or Compatible Endpoint.
官方文档默认你有订阅。但真实世界里,把 ANTHROPIC_BASE_URL 指向 Kimi、GLM、DeepSeek 或自建网关来跑 Claude Code 的人,可能比能直接订阅的更多。这一章把两条路并排铺完:环境变量与 settings 两种配法、settings 三层级与优先级、各家一份可抄的完整配置,以及一张诚实的取舍表 —— 换了后端你具体丢掉什么,什么时候该切回订阅。三十分钟内,你按自己的那条路跑通第一次成功。The official docs assume you have a subscription. In the real world, the readers pointing ANTHROPIC_BASE_URL at Kimi, GLM, DeepSeek, or their own gateway may outnumber those who can simply subscribe. This chapter paves both roads: the environment-variable path and the settings path, the three settings tiers and their precedence, one copy-pasteable config per provider, and an honest trade-off table — exactly what you lose when the backend changes, and when to switch back. Within thirty minutes you get your first successful run on whichever road is yours.
12 分钟 · 初稿 2026.0812 Min · Drafted 2026.08
— 讨论Discussion
讨论Discussion.
评论区初始化中…Initializing comments…
01 / 01
没有匹配结果No matches.
换个关键词,或按 Esc 回到页面Try another keyword, or press Esc to return