Skip to content

模型提供者快速入門

OpenClaw 可以使用許多 LLM 提供商。選擇一個,進行身份驗證,然後將預設模型設定為 provider/model

  1. 向提供商進行身份驗證(通常透過 openclaw onboard)。
  2. 設定預設模型:
{
agents: { defaults: { model: { primary: "anthropic/claude-opus-4-6" } } },
}
  • anthropic-vertex - 安裝 @openclaw/anthropic-vertex-provider 以在 Vertex 憑證可用時提供對 Google Vertex 上 Anthropic 的隱式支援;無需單獨的入門身份驗證選擇
  • copilot-proxy - 本地 VS Code Copilot Proxy 橋接器;使用 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 等)和進階配置, 請參閱 模型供應商