Agent skill · steipete

add-model-provider

Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.

What it needs

About 2k tokens when loaded.

What this skill does

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 configset/configsetref tool actions are policy-blocked for models. and secrets.; use the trusted shell (exec) for the commands below. setdefaultmodel is the one in-session action allowed to change the default route — it live-tests before saving. Gather 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: Env-var alternative when the gateway process env carries the key: To change a default model, use the in-session setdefaultmodel action (with agentId for a non-default agent); it live-tests the route before saving. Do not change defaults with raw config writes. Repair 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. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills steipete/add-model-provider

View the source on GitHub

Browse the @skills marketplace