Zum Hauptinhalt springen
Ein quelloffener, selbst gehosteter persönlicher KI-Assistent. Website: https://openclaw.ai (Doku: https://docs.openclaw.ai, Repo: https://github.com/openclaw/openclaw).
Protokoll: OpenAI-kompatibel
  • Basis-URL: https://api.orcarouter.ai/v1 (muss /v1 enthalten)

Installation

Erfordert Node 22+. Installiert den Befehl openclaw:
npm install -g openclaw
Oder unter macOS/Linux:
curl -fsSL https://openclaw.ai/install.sh | bash

Konfiguration

Bearbeite ~/.openclaw/openclaw.json:
{
  "models": {
    "mode": "merge",
    "providers": {
      "orcarouter": {
        "baseUrl": "https://api.orcarouter.ai/v1",
        "apiKey": "sk-orca-...",
        "api": "openai-completions",
        "models": [ { "id": "orcarouter/auto", "name": "OrcaRouter Auto" } ]
      }
    }
  },
  "agents": { "defaults": { "model": { "primary": "orcarouter/orcarouter/auto" } } },
  "gateway": { "mode": "local" }
}

Ausführen

openclaw agent --local --agent main --session-id s1 -m "Reply with exactly: OK"
Erwarte die Antwort OK.

Hinweise

  • baseUrl muss unter models.providers.<name> stehen, nicht innerhalb jedes Modelleintrags. Wird es an einem Modell platziert, ergibt das Unrecognized key: "baseUrl".
  • Die Basis-URL behält das abschließende /v1. Modellreferenzen verwenden provider/model, sodass der Auto-Router orcarouter/orcarouter/auto lautet.
  • Der Standard-Agent-Name ist main (nicht default). Verwende für nicht-interaktive Läufe --local mit einer --session-id.
  • Modellnamen verwenden das Format vendor/model. Tausche orcarouter/auto gegen ein bestimmtes Modell wie anthropic/claude-opus-4.8 oder google/gemini-2.5-flash (und aktualisiere die primary-Referenz entsprechend).

Thinking / Reasoning

OpenClaw spricht mit OrcaRouter über die standardmäßige OpenAI-kompatible API (api: "openai-completions"), sodass Reasoning dem Verhalten des Modells folgt — wähle ein reasoning-fähiges Modell (z. B. ein anthropic/claude-*-Reasoning-Modell) und es denkt wie upstream konfiguriert.