add-model-provider
Подключение провайдера моделей к OpenClaw
Что получите
Отчёт о подключённом провайдере, ссылке на секрет, ответе пробного запроса, модели, времени ответа и изменении маршрута по умолчанию; при неудаче — точная ошибка и следующий шаг.
Что передать
Провайдер, модель, идентификатор агента и способ авторизации без передачи секретного значения.
Проверен состав файлов. Запуск не тестировался. Что проверено
Оценки пользователей
Как использовать
Помогает администраторам OpenClaw добавить провайдера AI-моделей и подтвердить работоспособность подключения реальным запросом. Различает подключение по ключу API и вход через подписку или OAuth.
- Уточните тип авторизации и подготовьте источник учётных данных.
- Настройте провайдера через штатные команды OpenClaw и при необходимости выберите модель по умолчанию.
- Запросите пробное обращение к модели и отчёт о результате.
Условия работы
- Секретные значения нельзя выводить или сохранять; ключи подключаются только ссылками SecretRef на переменную окружения или файл. Для подписок и OAuth используется вход, а не путь к ключу.
- Конфигурация меняется только через `openclaw config`; модель по умолчанию — через `set_default_model`, который проверяет маршрут перед сохранением.
- Для маршрутов OpenAI обязателен включённый плагин codex. В системе с несколькими агентами пробный запрос должен явно указывать агента.
- Исправление через `openclaw doctor --fix --non-interactive` требует явного одобрения; обычный `doctor` также может менять состояние и не используется для диагностики до согласования.
Пример запроса после установки
Подключи OpenAI к OpenClaw для агента support через ссылку на подготовленную переменную окружения, сохрани текущую модель по умолчанию и покажи результат пробного запроса.
Пример составлен по инструкции автора; результат запуска не проверялся.
Основание: инструкция закреплённой версииДля установки
Передайте промпт агенту, поддерживающему этот скилл. Подключения и инструменты для работы скилла настраиваются отдельно.
Совместимые агенты
Совместимость указана для инструкций. Запуск в каждом приложении не тестировался; для веб-чата способ подключения может отличаться.
Файлы скилла
GitHubЧитать инструкцию SKILL.md
Исходный текст закреплённой версии.
--- name: add-model-provider description: Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials. --- # 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 probe (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 probe 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 probe string; record model id and wall time. Known dependency: OpenAI routes need the codex harness plugin at runtime — if the probe reports the runtime unavailable, run `openclaw plugins install @openclaw/codex` and restart the gateway, then re-probe. ## Report State the provider added, the SecretRef path written (never the value), the probe result with model id and latency, and whether the default model changed. If the probe 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
Проверка и особенности
Автоматическая проверка источника и файлов
Автоматически проверены публичный репозиторий, лицензия, заголовок SKILL.md, состав текстового пакета и Git-хеш каждого файла. Пакеты с исполняемым кодом и срабатываниями применённых статических правил не включены. Ручной аудит всех инструкций и функциональный запуск не проводились. Внешние инструменты и сервисы не проверялись. Проверка не гарантирует безопасность.
У репозитория было 390,654 звёзд GitHub при проверке 2026-09-27. Порог добавления — строго больше 100 000. Звёзды относятся ко всему репозиторию, а не к качеству или установкам скилла.
Есть ссылки на внешние инструкции или инструменты: их содержимое и доступность могут изменяться отдельно от скилла.
- Проверка состава
- 27.09.2026
- Проверенная версия
ad76f83efaa0- Файлы с кодом
- Не указаны в данных проверки
- Изменения на GitHub
- Нужна повторная проверкаПоследняя проверка: 11.10.2026
Репозиторий и лицензия
Это показатели всего репозитория, а не установки скилла. Снимок требует обновления.
- Последняя активность GitHub
- 11.10.2026
- Лицензия
- MIT
- Добавлен в каталог
- 27.09.2026
Полный текст лицензии
MIT License Copyright (c) 2026 OpenClaw Foundation Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. Third-party notices for incorporated or adapted code are recorded in THIRD_PARTY_NOTICES.md.
Ещё в этой категории
Все в категорииОбсуждение
ПравилаПользовались этим скиллом? Делитесь опытом без регистрации. Все комментарии проверяет модератор.
