Zum Hauptinhalt springen

Documentation Index

Fetch the complete documentation index at: https://docs.aihubmix.com/llms.txt

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

Installation

Stellen Sie vor der Installation sicher, dass Node >= 22 ist.
Führen Sie den Installationsbefehl aus:
npm install -g openclaw@latest

Terminal-Konfiguration

Öffnen Sie das Terminal und führen Sie den folgenden Befehl aus, um die Konfiguration zu starten:
openclaw onboard
Wählen Sie Yes Oc 1 Wählen Sie QuickStart Oc 2 Wählen Sie Skip for now Oc 3 Wählen Sie All providers Oc 4 Wählen Sie das Standardmodell nach Bedarf; Sie können zunächst Keep current wählen und es im nächsten Schritt in der Konfigurationsdatei anpassen. Oc 5 Verknüpfen Sie Ihr persönliches Konto nach Bedarf; falls nicht erforderlich, wählen Sie bitte Skip for now. Oc 6 Konfigurieren Sie Skills, indem Sie Yes wählen. Oc 7 Wählen Sie npm Oc 8 Konfigurieren Sie die Skill-Auswahl nach Bedarf. Oc 9 Wählen Sie für alle Optionen No. Oc 10 Wählen Sie Skip for now. Oc 11 Wählen Sie Hatch in UI.

AIHubMix konfigurieren

Methode 1: Schnellkonfiguration per Plugin (empfohlen)

Plugin-Quellcode: aihubmix-auth
Installieren Sie das AIHubMix-Auth-Plugin und starten Sie das Gateway neu:
openclaw plugins install @akaknele/aihubmix-auth
openclaw gateway restart
Führen Sie den Auth-Befehl aus. Geben Sie Ihren AIHubMix-API-Schlüssel ein, wenn Sie dazu aufgefordert werden. Das Plugin synchronisiert automatisch die verfügbaren Modelle und legt AIHubMix als Standardanbieter fest:
openclaw models auth login --provider aihubmix --method api-key --set-default
Das Plugin organisiert die Modelle in folgenden Gruppen:
  • openai — OpenAI-Modelle
  • anthropic — Anthropic-Modelle
  • google — Google-Modelle
  • other — Sonstige Modelle
Sobald die Konfiguration abgeschlossen ist, springen Sie zum Abschnitt Start, um es zu verwenden.

Methode 2: Manuelle Konfiguration

Öffnen Sie die Datei ~/.openclaw/openclaw.json und fügen Sie folgende Konfiguration hinzu:
{
  "models": {
    "mode": "merge",
    "providers": {
      "aihubmix": {
        "baseUrl": "http://aihubmix.com/v1",
        "apiKey": "AIHUBMIX_API_KEY",
        "api": "openai-completions",
        "models": [
          {
            "id": "claude-sonnet-4-5",
            "name": "claude-sonnet-4-5",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 1000000,
            "maxTokens": 64000
          }
        ]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": {
        "primary": "aihubmix/claude-sonnet-4-5"
      },
      "workspace": "your_workspace_path",
      "compaction": {
        "mode": "safeguard"
      },
      "maxConcurrent": 4,
      "subagents": {
        "maxConcurrent": 8
      }
    }
  }
}

Start

openclaw gateway

Test

Geben Sie auf der Chat-Seite hello ein; wenn Sie eine Antwort erhalten, war die Konfiguration erfolgreich. Oc 12

Häufig gestellte Fragen

Version aktualisieren

npm update -g openclaw-aihubmix

Gateway-Prozess belegt

openclaw gateway stop
openclaw gateway

Zuletzt aktualisiert: 2026-06-01