跳轉到主要內容

概述

OpenClaw 支援透過引導精靈或設定檔接入自訂模型提供方。 將 Hubto 接入後,你可以把 OpenClaw 的模型請求統一走同一個網關,並集中管理模型與 API Key。

快速設定

先設定 API Key:
export HUBTO_API_KEY="YOUR_API_KEY"
執行自訂提供方引導:
openclaw onboard \
  --auth-choice custom-api-key \
  --custom-provider-id hubto \
  --custom-compatibility openai \
  --custom-base-url "https://api.hubto.ai/v1" \
  --custom-model-id "glm-4" \
  --custom-api-key "$HUBTO_API_KEY"

說明

  • 基礎地址請使用 https://api.hubto.ai/v1
  • glm-4 替換成你在 Hubto 中已開通的模型名稱
  • 如果你偏好手動設定,也可以在 models.providers 中新增自訂 provider,並把預設模型設為 hubto/glm-4