跳轉到主要內容

Documentation Index

Fetch the complete documentation index at: https://docs.openclaw.ai/llms.txt

Use this file to discover all available pages before exploring further.

Tencent Cloud TokenHub

Tencent Cloud 在 OpenClaw 中以內建 provider plugin形式提供。它可透過 TokenHub endpoint (tencent-tokenhub) 存取 Tencent Hy3 preview。 此 provider 使用 OpenAI 相容 API。
屬性
Providertencent-tokenhub
預設模型tencent-tokenhub/hy3-preview
驗證TOKENHUB_API_KEY
APIOpenAI 相容 chat completions
Base URLhttps://tokenhub.tencentmaas.com/v1
Global URLhttps://tokenhub-intl.tencentmaas.com/v1

快速開始

1

建立 TokenHub API key

在 Tencent Cloud TokenHub 中建立 API key。如果你為該 key 選擇有限的存取範圍,請在允許的模型中包含 Hy3 preview
2

執行 onboarding

openclaw onboard --auth-choice tokenhub-api-key
3

驗證模型

openclaw models list --provider tencent-tokenhub

非互動式設定

openclaw onboard --non-interactive \
  --mode local \
  --auth-choice tokenhub-api-key \
  --tokenhub-api-key "$TOKENHUB_API_KEY" \
  --skip-health \
  --accept-risk

內建 catalog

模型 ref名稱輸入Context最大輸出備註
tencent-tokenhub/hy3-previewHy3 preview (TokenHub)text256,00064,000預設;支援推理
Hy3 preview 是 Tencent Hunyuan 用於推理、長 context 指令遵循、程式碼與 agent 工作流程的大型 MoE 語言模型。Tencent 的 OpenAI 相容範例使用 hy3-preview 作為 model id,並支援標準 chat-completions tool calling 以及 reasoning_effort
model id 是 hy3-preview。不要將它與 Tencent 的 HY-3D-* 模型混淆;後者是 3D 生成 API,並不是此 provider 設定的 OpenClaw chat model。

Endpoint 覆寫

OpenClaw 預設使用 Tencent Cloud 的 https://tokenhub.tencentmaas.com/v1 endpoint。Tencent 也記錄了一個國際 TokenHub endpoint:
openclaw config set models.providers.tencent-tokenhub.baseUrl "https://tokenhub-intl.tencentmaas.com/v1"
只有在你的 TokenHub 帳戶或區域要求時,才覆寫 endpoint。

備註

  • TokenHub model refs 使用 tencent-tokenhub/<modelId>
  • 內建 catalog 目前包含 hy3-preview
  • 此 plugin 將 Hy3 preview 標記為具備推理能力並支援 streaming-usage。
  • 此 plugin 隨附分級 Hy3 pricing metadata,因此不需手動 pricing overrides 即可填入成本估算。
  • 只有在需要時,才於 models.providers 中覆寫 pricing、context 或 endpoint metadata。

環境注意事項

如果 Gateway 以 daemon (launchd/systemd) 執行,請確保 TOKENHUB_API_KEY 可供該程序使用(例如放在 ~/.openclaw/.env,或透過 env.shellEnv)。

相關文件