Providers

Tencent Cloud (TokenHub / TokenPlan)

Installeer de officiële Tencent Cloud-providerplugin om via twee endpoints — TokenHub (tencent-tokenhub) en TokenPlan (tencent-tokenplan) — toegang te krijgen tot Tencent Hy3 met een OpenAI-compatibele API.

Eigenschap Waarde
Provider-id's tencent-tokenhub, tencent-tokenplan
Pakket @openclaw/tencent-provider
Omgevingsvariabele voor TokenHub-authenticatie TOKENHUB_API_KEY
Omgevingsvariabele voor TokenPlan-authenticatie TOKENPLAN_API_KEY
Onboardingvlag voor TokenHub --auth-choice tokenhub-api-key
Onboardingvlag voor TokenPlan --auth-choice tokenplan-api-key
Directe CLI-vlag voor TokenHub --tokenhub-api-key <key>
Directe CLI-vlag voor TokenPlan --tokenplan-api-key <key>
API OpenAI-compatibel (openai-completions)
Basis-URL van TokenHub https://tokenhub.tencentmaas.com/v1
Wereldwijde basis-URL van TokenHub https://tokenhub-intl.tencentmaas.com/v1 (overschrijving)
Basis-URL van TokenPlan https://api.lkeap.cloud.tencent.com/plan/v3
Standaardmodel tencent-tokenhub/hy3

Snel aan de slag

  • Maak een Tencent-API-sleutel

    Maak een API-sleutel voor Tencent Cloud TokenHub en TokenPlan. Als je een beperkt toegangsbereik voor de sleutel kiest, neem je hy3 (en hy3 preview als je van plan bent dit op TokenHub te gebruiken) op in de toegestane modellen.

  • Voer de onboarding uit

    TokenHub-onboarding
    openclaw onboard --auth-choice tokenhub-api-key
    Directe TokenHub-vlag
    openclaw onboard --non-interactive \--auth-choice tokenhub-api-key \--tokenhub-api-key "$TOKENHUB_API_KEY"
    TokenPlan-onboarding
    openclaw onboard --auth-choice tokenplan-api-key
    Directe TokenPlan-vlag
    openclaw onboard --non-interactive \--auth-choice tokenplan-api-key \--tokenplan-api-key "$TOKENPLAN_API_KEY"
    Alleen omgeving
    export TOKENHUB_API_KEY=...export TOKENPLAN_API_KEY=...
  • Verifieer het model

    bash
    openclaw models list --provider tencent-tokenhubopenclaw models list --provider tencent-tokenplan
  • Niet-interactieve configuratie

    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

    Ingebouwde catalogus

    Modelreferentie Naam Invoer Context Maximale uitvoer Opmerkingen
    tencent-tokenhub/hy3-preview hy3 preview (TokenHub) tekst 256,000 64,000 redeneren ingeschakeld
    tencent-tokenhub/hy3 hy3 (TokenHub) tekst 256,000 64,000 redeneren ingeschakeld
    tencent-tokenplan/hy3 hy3 (TokenPlan) tekst 256,000 64,000 redeneren ingeschakeld

    hy3 is het grote MoE-taalmodel van Tencent Hunyuan voor redeneren, het opvolgen van instructies met een lange context, code en agentworkflows. De OpenAI-compatibele voorbeelden van Tencent gebruiken hy3 als model-id en ondersteunen standaard toolaanroepen voor chatvoltooiingen plus reasoning_effort.

    Geavanceerde configuratie

    Endpoint overschrijven

    De ingebouwde catalogus van OpenClaw gebruikt het https://tokenhub.tencentmaas.com/v1-endpoint van Tencent Cloud. Overschrijf dit alleen als je TokenHub-account of -regio een ander endpoint vereist:

    bash
    openclaw config set models.providers.tencent-tokenhub.baseUrl "https://your-endpoint/v1"
    Beschikbaarheid van omgevingsvariabelen voor de daemon

    Als de Gateway als beheerde service wordt uitgevoerd (launchd, systemd, Docker), moeten TOKENHUB_API_KEY en TOKENPLAN_API_KEY zichtbaar zijn voor dat proces. Stel ze in via ~/.openclaw/.env of env.shellEnv, zodat de uitvoeringsomgevingen van launchd, systemd of Docker ze kunnen lezen.

    Gerelateerd

    Was this useful?
    On this page

    On this page