Providers

Tencent Cloud (TokenHub / TokenPlan)

Installieren Sie das offizielle Tencent-Cloud-Provider-Plugin, um über zwei Endpunkte auf Tencent Hy3 zuzugreifen — TokenHub (tencent-tokenhub) und TokenPlan (tencent-tokenplan) — unter Verwendung einer OpenAI-kompatiblen API.

Eigenschaft Wert
Provider-IDs tencent-tokenhub, tencent-tokenplan
Paket @openclaw/tencent-provider
TokenHub-Umgebungsvariable für die Authentifizierung TOKENHUB_API_KEY
TokenPlan-Umgebungsvariable für die Authentifizierung TOKENPLAN_API_KEY
TokenHub-Onboarding-Flag --auth-choice tokenhub-api-key
TokenPlan-Onboarding-Flag --auth-choice tokenplan-api-key
Direktes TokenHub-CLI-Flag --tokenhub-api-key <key>
Direktes TokenPlan-CLI-Flag --tokenplan-api-key <key>
API OpenAI-kompatibel (openai-completions)
TokenHub-Basis-URL https://tokenhub.tencentmaas.com/v1
Globale TokenHub-Basis-URL https://tokenhub-intl.tencentmaas.com/v1 (Überschreibung)
TokenPlan-Basis-URL https://api.lkeap.cloud.tencent.com/plan/v3
Standardmodell tencent-tokenhub/hy3

Schnellstart

  • Tencent-API-Schlüssel erstellen

    Erstellen Sie einen API-Schlüssel für Tencent Cloud TokenHub und TokenPlan. Wenn Sie für den Schlüssel einen eingeschränkten Zugriffsbereich wählen, nehmen Sie hy3 (und hy3 preview, falls Sie es mit TokenHub verwenden möchten) in die zulässigen Modelle auf.

  • Onboarding ausführen

    TokenHub-Onboarding
    openclaw onboard --auth-choice tokenhub-api-key
    Direktes TokenHub-Flag
    openclaw onboard --non-interactive \--auth-choice tokenhub-api-key \--tokenhub-api-key "$TOKENHUB_API_KEY"
    TokenPlan-Onboarding
    openclaw onboard --auth-choice tokenplan-api-key
    Direktes TokenPlan-Flag
    openclaw onboard --non-interactive \--auth-choice tokenplan-api-key \--tokenplan-api-key "$TOKENPLAN_API_KEY"
    Nur Umgebung
    export TOKENHUB_API_KEY=...export TOKENPLAN_API_KEY=...
  • Modell überprüfen

    bash
    openclaw models list --provider tencent-tokenhubopenclaw models list --provider tencent-tokenplan
  • Nicht interaktive Einrichtung

    bash
    # TokenHubopenclaw onboard --non-interactive \  --mode local \  --auth-choice tokenhub-api-key \  --tokenhub-api-key "$TOKENHUB_API_KEY" \  --skip-health \  --accept-risk # TokenPlanopenclaw onboard --non-interactive \  --mode local \  --auth-choice tokenplan-api-key \  --tokenplan-api-key "$TOKENPLAN_API_KEY" \  --skip-health \  --accept-risk

    Integrierter Katalog

    Modellreferenz Name Eingabe Kontext Maximale Ausgabe Hinweise
    tencent-tokenhub/hy3-preview hy3 preview (TokenHub) Text 256,000 64,000 Schlussfolgern aktiviert
    tencent-tokenhub/hy3 hy3 (TokenHub) Text 256,000 64,000 Schlussfolgern aktiviert
    tencent-tokenplan/hy3 hy3 (TokenPlan) Text 256,000 64,000 Schlussfolgern aktiviert

    hy3 ist das große MoE-Sprachmodell von Tencent Hunyuan für Schlussfolgerungen, das Befolgen von Anweisungen mit langem Kontext, Code und Agenten-Workflows. Die OpenAI-kompatiblen Beispiele von Tencent verwenden hy3 als Modell-ID und unterstützen standardmäßige Tool-Aufrufe über Chat Completions sowie reasoning_effort.

    Erweiterte Konfiguration

    Endpunkt überschreiben

    Der integrierte Katalog von OpenClaw verwendet den Tencent-Cloud-Endpunkt https://tokenhub.tencentmaas.com/v1. Überschreiben Sie ihn nur, wenn Ihr TokenHub-Konto oder Ihre Region einen anderen Endpunkt erfordert:

    bash
    openclaw config set models.providers.tencent-tokenhub.baseUrl "https://your-endpoint/v1"
    Umgebungsverfügbarkeit für den Daemon

    Wenn das Gateway als verwalteter Dienst ausgeführt wird (launchd, systemd, Docker), müssen TOKENHUB_API_KEY und TOKENPLAN_API_KEY für diesen Prozess sichtbar sein. Legen Sie sie in ~/.openclaw/.env oder über env.shellEnv fest, damit launchd-, systemd- oder Docker-Exec-Umgebungen sie lesen können.

    Verwandte Themen

    Was this useful?
    On this page

    On this page