[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79JWY5D8ZTYAR3WXRXY4HP6":3,"skill-same:01M79JWY5D8ZTYAR3WXRXY4HP6":43},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":18,"linkOnly":19,"markdownContent":20,"markdownBody":21,"frontMatter":22,"refName":23,"commitSha":24,"skillDirectory":25,"forksCount":13,"repositoryHtmlUrl":26,"repositoryHomepageUrl":6,"ownerHtmlUrl":27,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":28,"install":29,"resources":42},"01M79JWY5D8ZTYAR3WXRXY4HP6","add-model-provider",null,"Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.","leon36000\u002FOPSYS-AI","leon36000","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216249790?v=4","01M79JWJK00J10J79XZA3G4KH0","01M79JWJKTT8J3C7PZ0TX7X4PQ",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fcustodian-skills\u002Fadd-model-provider\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: add-model-provider\ndescription: Add and live-prove a model provider with non-interactive config one-liners, without exposing credentials.\n---\n\n# Add a model provider\n\nNever 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.\n\nIn-session `config_set`\u002F`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.\n\n## Gather\n\n```\nopenclaw config get models --json          # \"Config path not found\" is normal before first setup\nopenclaw models list --agent \u003CagentId>     # --agent is required in multi-agent rosters\nopenclaw models auth list --agent \u003CagentId>\nopenclaw config schema --json | jq '.properties.models'   # confirm exact provider paths before writing\nopenclaw plugins list   # OpenAI routes need the codex harness plugin; enable\u002Finstall NOW, not mid-proof\n```\n\nIf the harness plugin for the target provider is missing or disabled, remediate here (`openclaw plugins enable codex` or `openclaw plugins install @openclaw\u002Fcodex`) so the Prove step does not stall on it later; plugin enable is picked up by gateway hot-reload.\n\nDecide the auth contract: API-key providers take a SecretRef on `models.providers.\u003Cid>.apiKey`; subscription\u002FOAuth providers (ChatGPT\u002FCodex, Claude subscriptions) use `openclaw models auth login --provider \u003Cid>` instead and must not be given an API key path.\n\n## Mutate\n\nAPI-key example (OpenAI), key staged by the operator in a `0600` file — validate first with `--dry-run`, then write:\n\n```\nopenclaw config set secrets.providers.openai_key_file --provider-source file --provider-path \u002Fpath\u002Fto\u002Fopenai.key --provider-mode singleValue --dry-run\nopenclaw config set secrets.providers.openai_key_file --provider-source file --provider-path \u002Fpath\u002Fto\u002Fopenai.key --provider-mode singleValue\nopenclaw config set models.providers.openai.apiKey --ref-provider openai_key_file --ref-source file --ref-id value\n```\n\nEnv-var alternative when the gateway process env carries the key:\n\n```\nopenclaw config set models.providers.openai.apiKey --ref-provider default --ref-source env --ref-id OPENAI_API_KEY\n```\n\nTo 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.\n\n## Repair\n\n```\nopenclaw doctor --lint\n```\n\n`doctor --lint` can exit `1` for findings: read the report and continue the remaining checks. Ordinary `doctor` and `doctor --non-interactive` can write config\u002Fstate; 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.\n\n## Prove\n\nRoster-safe probe (works in every setup; use your own agent id or any configured agent):\n\n```\nopenclaw agent --agent \u003CagentId> --model openai\u002Fgpt-5.4 -m \"Reply with exactly: PROVIDER-PROOF-OK\"\n```\n\nSingle-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:\n\n```\nopenclaw infer model run --gateway --model openai\u002Fgpt-5.4 --prompt \"Reply with exactly: PROVIDER-PROOF-OK\"\n```\n\nExpect 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\u002Fcodex` and restart the gateway, then re-probe.\n\n## Report\n\nState 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.\n\nFurther reference: https:\u002F\u002Fdocs.openclaw.ai\u002Fproviders\u002Fmodels and https:\u002F\u002Fdocs.openclaw.ai\u002Fproviders\u002Fopenai\n","# Add a model provider\n\nNever 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.\n\nIn-session `config_set`\u002F`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.\n\n## Gather\n\n```\nopenclaw config get models --json          # \"Config path not found\" is normal before first setup\nopenclaw models list --agent \u003CagentId>     # --agent is required in multi-agent rosters\nopenclaw models auth list --agent \u003CagentId>\nopenclaw config schema --json | jq '.properties.models'   # confirm exact provider paths before writing\nopenclaw plugins list   # OpenAI routes need the codex harness plugin; enable\u002Finstall NOW, not mid-proof\n```\n\nIf the harness plugin for the target provider is missing or disabled, remediate here (`openclaw plugins enable codex` or `openclaw plugins install @openclaw\u002Fcodex`) so the Prove step does not stall on it later; plugin enable is picked up by gateway hot-reload.\n\nDecide the auth contract: API-key providers take a SecretRef on `models.providers.\u003Cid>.apiKey`; subscription\u002FOAuth providers (ChatGPT\u002FCodex, Claude subscriptions) use `openclaw models auth login --provider \u003Cid>` instead and must not be given an API key path.\n\n## Mutate\n\nAPI-key example (OpenAI), key staged by the operator in a `0600` file — validate first with `--dry-run`, then write:\n\n```\nopenclaw config set secrets.providers.openai_key_file --provider-source file --provider-path \u002Fpath\u002Fto\u002Fopenai.key --provider-mode singleValue --dry-run\nopenclaw config set secrets.providers.openai_key_file --provider-source file --provider-path \u002Fpath\u002Fto\u002Fopenai.key --provider-mode singleValue\nopenclaw config set models.providers.openai.apiKey --ref-provider openai_key_file --ref-source file --ref-id value\n```\n\nEnv-var alternative when the gateway process env carries the key:\n\n```\nopenclaw config set models.providers.openai.apiKey --ref-provider default --ref-source env --ref-id OPENAI_API_KEY\n```\n\nTo 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.\n\n## Repair\n\n```\nopenclaw doctor --lint\n```\n\n`doctor --lint` can exit `1` for findings: read the report and continue the remaining checks. Ordinary `doctor` and `doctor --non-interactive` can write config\u002Fstate; 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.\n\n## Prove\n\nRoster-safe probe (works in every setup; use your own agent id or any configured agent):\n\n```\nopenclaw agent --agent \u003CagentId> --model openai\u002Fgpt-5.4 -m \"Reply with exactly: PROVIDER-PROOF-OK\"\n```\n\nSingle-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:\n\n```\nopenclaw infer model run --gateway --model openai\u002Fgpt-5.4 --prompt \"Reply with exactly: PROVIDER-PROOF-OK\"\n```\n\nExpect 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\u002Fcodex` and restart the gateway, then re-probe.\n\n## Report\n\nState 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.\n\nFurther reference: https:\u002F\u002Fdocs.openclaw.ai\u002Fproviders\u002Fmodels and https:\u002F\u002Fdocs.openclaw.ai\u002Fproviders\u002Fopenai\n",{"name":5,"description":7},"main","54d89d355555ba29c51a05828bb2ee9b8abbfc1d","core\u002Fcustodian-skills\u002Fadd-model-provider","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI","https:\u002F\u002Fgithub.com\u002Fleon36000","2026-11-08 05:46:02",{"source":8,"skillName":5,"commands":30,"prompt":40,"zipAvailable":41},[31,34,37],{"tool":32,"command":33},"npx","npx skills add leon36000\u002FOPSYS-AI --skill add-model-provider",{"tool":35,"command":36},"bunx","bunx skills add leon36000\u002FOPSYS-AI --skill add-model-provider",{"tool":38,"command":39},"pnpm","pnpm dlx skills add leon36000\u002FOPSYS-AI --skill add-model-provider","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fcore\u002Fcustodian-skills\u002Fadd-model-provider\u002FSKILL.md",true,[],[44,51,58,65,72,79],{"skillNo":45,"name":46,"nameZh":6,"description":47,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":48,"categories":49,"keywords":50,"publishedAt":18},"01M79K66JYY28KMDVMJ4M1RBT7","procedure-demo","Procédure de test.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Ftests\u002Ffixtures\u002Fdepartements\u002Fm09-demo\u002Fskills\u002Fprocedure-demo\u002FSKILL.md",[],[],{"skillNo":52,"name":53,"nameZh":6,"description":54,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":55,"categories":56,"keywords":57,"publishedAt":18},"01M79K62M77K68EJYYT1HGZZYR","traiter-un-signal-critique","Procédure pour lister les signaux critiques d'une affaire et proposer leur prise en compte ou leur clôture, qui restent des décisions humaines, et pour proposer de lier une session à une affaire.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Ftraiter-un-signal-critique\u002FSKILL.md",[],[],{"skillNo":59,"name":60,"nameZh":6,"description":61,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":62,"categories":63,"keywords":64,"publishedAt":18},"01M79K5XV1PC7Q699VC05WPVEX","preflight-contexte-suffisant","Procédure PREFLIGHT pour vérifier qu'un dossier de contexte (événement, résumé, preuves, impact, prochaine action, références de décisions) est suffisant avant une action importante, et pour consommer un Work Completion Trigger de M4.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Fpreflight-contexte-suffisant\u002FSKILL.md",[],[],{"skillNo":66,"name":67,"nameZh":6,"description":68,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":18},"01M79K5TB07Q63XCV00FSX4AR0","journaliser-une-decision","Procédure pour journaliser une décision motivée au registre Affaires et obtenir sa référence vérifiable, ou pour signaler puis arbitrer une révision entre deux souvenirs, sans jamais fusionner ni muter un maillon existant.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm10-memoire\u002Fskills\u002Fjournaliser-une-decision\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":18},"01M79K5PB7JFBETB3A08ACKXXS","etat-consolide-et-contradictions","Procédure pour ingérer un snapshot d'un module, reconstruire l'état consolidé de l'entreprise et présenter ses contradictions internes sans jamais les résoudre ni en inventer la cause.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm09-strategic-intelligence\u002Fskills\u002Fetat-consolide-et-contradictions\u002FSKILL.md",[],[],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":18},"01M79K5K368MQEQA5TZ2FRQGMD","briefing-du-matin","Procédure pour produire le briefing du matin (décisions en attente, alertes M8, faits de la veille, manques) pour une date de référence donnée, lire ce qu'il n'a pas pu afficher, et lire les alertes de mesure de M8 avec leurs preuves, sans jamais rien y inventer, y décider ni y ajouter de diagnostic.","https:\u002F\u002Fgithub.com\u002Fleon36000\u002FOPSYS-AI\u002Fblob\u002Fmain\u002Fdepartments\u002Fm09-strategic-intelligence\u002Fskills\u002Fbriefing-du-matin\u002FSKILL.md",[],[]]