跳转到内容

模型提供商快速入门

OpenClaw 可以使用许多 LLM 提供商。选择一个,进行身份验证,然后将默认模型设置为 OpenClawLLMprovider/model

  1. 通过提供商进行身份验证(通常通过 openclaw onboard)。
  2. 设置默认模型:
{
agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
}
  • anthropic-vertex - 安装 @openclaw/anthropic-vertex-providerAnthropic 以在 Vertex 凭据可用时提供对 Google Vertex 上隐式 Anthropic 的支持;无需单独的引导身份验证选择
  • copilot-proxy - 本地 VS Code Copilot 代理网桥;使用 openclaw onboard --auth-choice copilot-proxy
  • google-gemini-cli - 非官方 Gemini CLI OAuth 流程;需要本地安装 geminibrew install gemini-clinpm install -g @google/gemini-cli);默认模型 google-gemini-cli/gemini-3-flash-preview;使用 openclaw onboard --auth-choice google-gemini-cliopenclaw models auth login --provider google-gemini-cli --set-default

有关完整的提供商目录(xAI、Groq、Mistral 等)和高级配置,请参阅 模型提供商