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 流程;需要本機安裝 gemini (brew 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 等)及進階設定, 請參閱 模型提供者