# 模型与网关

> 切换和固定模型、接入自定义模型（LLM 网关与第三方兼容接口），以及通过 Amazon Bedrock、Google Cloud、Microsoft Foundry 使用 Claude。

- 网址：https://funcoding.ai/agents/claude-code/configuration/models/
- 核实日期：2026-10-18（命令、配置和价格以官方文档为准）
- 官方来源：[Claude Code 官方文档：Model configuration](https://code.claude.com/docs/en/model-config)、[Claude Code 官方文档：Enterprise deployment overview](https://code.claude.com/docs/en/third-party-integrations)

---
这一组回答「Claude Code 用哪个模型、请求发到哪里」：

- [模型配置](https://funcoding.ai/agents/claude-code/configuration/models/model-config/)：别名、`/model`、环境变量、努力等级、扩展上下文，以及怎么往选择器里加一个自定义模型选项
- [自定义模型：LLM 网关与兼容接口](https://funcoding.ai/agents/claude-code/configuration/models/custom-models/)：用 `ANTHROPIC_BASE_URL` 把 Claude Code 指向公司网关或第三方 Anthropic 兼容接口
- [Amazon Bedrock](https://funcoding.ai/agents/claude-code/configuration/models/bedrock/)、[Google Cloud Agent Platform](https://funcoding.ai/agents/claude-code/configuration/models/vertex/)、[Microsoft Foundry](https://funcoding.ai/agents/claude-code/configuration/models/foundry/)：通过云厂商使用 Claude

> `ANTHROPIC_BASE_URL` 改变的是请求发往哪里，而不是由哪个模型来回答。
