> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hubto.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# 在 OpenClaw 中使用

> 將 HubTo 作為 OpenClaw 的自訂 OpenAI 相容提供方接入。

## 概述

OpenClaw 支援透過引導精靈或設定檔接入自訂模型提供方。

將 HubTo 接入後，你可以把 OpenClaw 的模型請求統一走同一個網關，並集中管理模型與 API Key。

## 快速設定

先設定 API Key：

```bash theme={null}
export HUBTO_API_KEY="YOUR_API_KEY"
```

執行自訂提供方引導：

```bash theme={null}
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-5.1" \
  --custom-api-key "$HUBTO_API_KEY"
```

## 說明

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