add-model-provider
Was er macht
Er führt einen KI-Agenten durch die Verbindung eines neuen Modellanbieters mit OpenClaw, und zwar über Einrichtungsbefehle statt von Hand bearbeiteter Dateien. Er ist für Menschen gedacht, die in ihrem OpenClaw-Setup ein anderes KI-Modell nutzen wollen.
Wann du ihn nutzt
- ✓Wenn du einen neuen KI-Modellanbieter mit deinem OpenClaw-Setup verbinden willst.
- ✓Wenn du prüfen musst, welche Modelle und Anmeldemethoden in OpenClaw bereits eingerichtet sind.
- ✓Wenn du einen Live-Test willst, der bestätigt, dass ein neuer Modellanbieter antwortet, bevor du dich darauf verlässt.
Link zum Skill
https://github.com/openclaw/openclaw/blob/main/custodian-skills/add-model-provider/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Hilf mir, einen neuen KI-Modellanbieter zu meinem OpenClaw hinzuzufügen und zu testen, ob er antwortet.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Der Skill prüft deine aktuellen Modelleinstellungen und Plugins und fügt den Anbieter dann mit den eigenen Befehlen von OpenClaw hinzu. Schlüssel werden als Verweise auf eine Geheimquelle gespeichert, nicht im Klartext, und die Einrichtung endet mit einem Live-Test.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Add a model provider
Never print or persist secret values; credentials enter config only as SecretRefs (env or file source). Never hand-edit config files on disk — every mutation goes through openclaw config so it is validated and audited. Every run ends with the observable Prove result or an exact explanation of why it could not be proven.
In-session config_set/config_set_ref tool actions are policy-blocked for models.* and secrets.*; use the trusted shell (exec) for the commands below. set_default_model is the one in-session action allowed to change the default route — it live-tests before saving.
Gather
openclaw config get models --json # "Config path not found" is normal before first setup
openclaw models list --agent <agentId> # --agent is required in multi-agent rosters
openclaw models auth list --agent <agentId>
openclaw config schema --json | jq '.properties.models' # confirm exact provider paths before writing
openclaw plugins list # OpenAI routes need the codex harness plugin; enable/install NOW, not mid-proof
If the harness plugin for the target provider is missing or disabled, remediate here (openclaw plugins enable codex or openclaw plugins install @openclaw/codex) so the Prove step does not stall on it later; plugin enable is picked up by gateway hot-reload.
Decide the auth contract: API-key providers take a SecretRef on models.providers.<id>.apiKey; subscription/OAuth providers (ChatGPT/Codex, Claude subscriptions) use openclaw models auth login --provider <id> instead and must not be given an API key path.
Mutate
API-key example (OpenAI), key staged by the operator in a 0600 file — validate first with --dry-run, then write:
openclaw config set secrets.providers.openai_key_file --provider-source file --provider-path /path/to/openai.key --provider-mode singleValue --dry-run
openclaw config set secrets.providers.openai_key_file --provider-source file --provider-path /path/to/openai.key --provider-mode singleValue
openclaw config set models.providers.openai.apiKey --ref-provider openai_key_file --ref-source file --ref-id value
Env-var alternative when the gateway process env carries the key:
openclaw config set models.providers.openai.apiKey --ref-provider default --ref-source env --ref-id OPENAI_API_KEY
To change a default model, use the in-session set_default_model action (with agentId for a non-default agent); it live-tests the route before saving. Do not change defaults with raw config writes.
Repair
openclaw doctor --lint
doctor --lint can exit 1 for findings: read the report and continue the remaining checks. Ordinary doctor and doctor --non-interactive can write config/state; do not use them for diagnosis before approval. If a repair is needed, get explicit approval, run openclaw doctor --fix --non-interactive, then re-run the Gather reads.
Prove
Roster-safe test (works in every setup; use your own agent id or any configured agent):
openclaw agent --agent <agentId> --model openai/gpt-5.4 -m "Reply with exactly: PROVIDER-PROOF-OK"
Single-agent installs can use the lighter completion test instead — it has no --agent flag and fails with "no explicit owner" on multi-agent rosters, so do not retry it there:
openclaw infer model run --gateway --model openai/gpt-5.4 --prompt "Reply with exactly: PROVIDER-PROOF-OK"
Expect the exact requested reply; record model id and wall time. Known dependency: OpenAI routes need the codex harness plugin at runtime — if the test reports the runtime unavailable, run openclaw plugins install @openclaw/codex and restart the gateway, then test again.
Report
State the provider added, the SecretRef path written (never the value), the test result with model id and latency, and whether the default model changed. If the test failed, report the exact error and the next command to try.
Further reference: https://docs.openclaw.ai/providers/models and https://docs.openclaw.ai/providers/openai
Häufige Fragen
Wird mein API-Schlüssel im Klartext gespeichert?
Nein. Der Skill speichert Zugangsdaten als Verweise auf eine Umgebungsvariable oder Datei, sodass der geheime Wert nicht in die Konfiguration geschrieben wird.
Warum Befehle statt die Konfigurationsdatei zu bearbeiten?
Befehle prüfen jede Änderung und führen ein Protokoll, was hilft, kaputte Einstellungen zu verhindern.
Was ist, wenn ein benötigtes Plugin fehlt?
Der Skill prüft das während der Einrichtung und aktiviert oder installiert das nötige Plugin, bevor der Test läuft.
Details
Originalbeschreibung des Autors
Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.
repo: openclaw/openclaw
Beliebtheit
- GitHub-Sterne
- 394k
- Platz im Ranking
- #10
- Lizenz
- MIT
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
discord-user-post
394kLässt deinen Agenten eine von dir freigegebene Nachricht über die Discord-Desktop-App als du in Discord posten, nachdem der genaue Kanal bestätigt wurde.
discrawl
394kLässt deinen Agenten ein gespeichertes lokales Archiv von Discord-Nachrichten durchsuchen und zusammenfassen, dessen Aktualität prüfen und Direktnachrichten lesen.
gitcrawl
394kLässt deinen Agenten ein gespeichertes Archiv von GitHub-Issues und Pull Requests durchsuchen, Duplikate gruppieren und ihren aktuellen Status auf GitHub prüfen.
graincrawl
394kLässt deinen Agenten gespeicherte Granola-Besprechungsnotizen und Transkripte durchsuchen, deren Aktualität prüfen und sie über einen Zeitraum zählen.
Ähnliche Skills
using-superpowers
311kHilft deinem Agenten, vor Beginn einer Aufgabe die richtigen Skills zu finden und zu nutzen, damit er für diese Art von Arbeit die bewährten Schritte befolgt.
ask-matt
310kLässt deinen Agenten als Wegweiser durch eine Reihe von Coding-Skills dienen und dich für deine Situation zum richtigen Skill führen, von der Idee bis zum ausgelieferten Code.
retro
310kBlickt auf eine Coding-Sitzung zurück und schlägt Änderungen an der Einrichtung vor, etwa klarere Navigation oder automatische Prüfungen, damit künftige Agenten-Läufe reibungsloser verlaufen.