搜索

PythonReactSEOPDF
OpenClaw

provider-sync

Review and sync one provider's models and related fields into a local OpenClaw config file. Usage: /provider_sync [provider=<id>] [mode=dry-run|check-only|apply]

c-joey0 来源安装数☆ 0 仓库 Stars

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install c-joey/provider-sync

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

Provider Sync

触发方式:在聊天里输入 /provider_sync

Sync upstream provider metadata into local OpenClaw config with a review-first workflow.

v2.0.0 重要变更(Breaking)

  • 默认会裁剪(prune)agents.defaults.models:让 /models 的菜单条目数 永远与 models.providers.<provider>.models(上游真实返回)对齐。
  • 如你希望保留旧行为(不删除白名单条目),使用 --no-prune-agent-aliases。

What it does

  • fetches upstream provider metadata or model lists
  • maps and normalizes model entries for OpenClaw
  • previews diffs before any real write
  • writes minimal changes to one provider subtree and creates a backup

Slash command (规范流程)

Scope / 权限收紧(你已确认启用)
  • 群聊:只允许 dry-run / check-only(只读)。
  • 私聊:允许 dry-run + apply + 新增 provider + 重启。
  • 群聊中如果触发 apply / 新增 provider / 重启:直接拒绝,并提示“请私聊操作”。

This skill is user-invocable as: /provider_sync (note the underscore).

Design goals:

  • Always dry-run first → show diff summary → explicit confirmation → apply.
  • Default to provider-scoped writes only (models.providers.<provider-id>).
  • Treat Gateway restart as a separate, explicit step.
Canonical usage
  • Interactive wizard (recommended):
    • /provider_sync
  • Dry-run (default):
    • /provider_sync provider=<id>
  • Check-only:
    • /provider_sync provider=<id> mode=check-only
  • Apply (still gated by an explicit confirmation step; button tap is acceptable confirmation):
    • /provider_sync provider=<id> mode=apply

Supported args (all optional unless noted):

  • provider=<id> (required)
  • config=<path> (default: /root/.openclaw/openclaw.json)
  • endpoint=<url> (default: derived from provider baseUrl: ${baseUrl}/models)
  • mapping=<path> (default: {baseDir}/references/mapping.openai-models.json)
  • mode=dry-run|check-only|apply (default: dry-run)
  • normalize=1|0 (default: 1)
  • profile=generic|gemini (default: generic)
  • `pres...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/c-joey/provider-sync
Version
—
Commit
aa3f6d48e3a3b5469f94295e2fb6465f2b1406a6
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

来源内容

SKILL.md
# Provider Sync

**触发方式:在聊天里输入 `/provider_sync`**

Sync upstream provider metadata into local OpenClaw config with a review-first workflow.

## v2.0.0 重要变更(Breaking)
- 默认会**裁剪**(prune)`agents.defaults.models`:让 `/models` 的菜单条目数 **永远与** `models.providers.<provider>.models`(上游真实返回)对齐。
- 如你希望保留旧行为(不删除白名单条目),使用 `--no-prune-agent-aliases`。

## What it does

- fetches upstream provider metadata or model lists
- maps and normalizes model entries for OpenClaw
- previews diffs before any real write
- writes minimal changes to one provider subtree and creates a backup

## Slash command (规范流程)

### Scope / 权限收紧(你已确认启用)

- **群聊**:只允许 `dry-run` / `check-only`(只读)。
- **私聊**:允许 `dry-run` + `apply` + `新增 provider` + `重启`。
- 群聊中如果触发 `apply` / `新增 provider` / `重启`:直接拒绝,并提示“请私聊操作”。

This skill is **user-invocable** as: `/provider_sync` (note the underscore).

Design goals:

- **Always dry-run first** → show diff summary → explicit confirmation → apply.
- Default to **provider-scoped writes only** (`models.providers.<provider-id>`).
- Treat **Gateway restart** as a separate, explicit step.

### Canonical usage

- Interactive wizard (recommended):
  - `/provider_sync`
- Dry-run (default):
  - `/provider_sync provider=<id>`
- Check-only:
  - `/provider_sync provider=<id> mode=check-only`
- Apply (still gated by an explicit confirmation step; button tap is acceptable confirmation):
  - `/provider_sync provider=<id> mode=apply`

Supported args (all optional unless noted):

- `provider=<id>` (required)
- `config=<path>` (default: `/root/.openclaw/openclaw.json`)
- `endpoint=<url>` (default: derived from provider baseUrl: `${baseUrl}/models`)
- `mapping=<path>` (default: `{baseDir}/references/mapping.openai-models.json`)
- `mode=dry-run|check-only|apply` (default: `dry-run`)
- `normalize=1|0` (default: `1`)
- `profile=generic|gemini` (default: `generic`)
- `pres...

相关技能

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

Modelready

carol-gutianle

name: modelready description: Start using a local or Hugging Face model instantly, directly from chat. metadata: {"openclaw":{"requires":{"bins": "bash", "curl" }, "env": "URL" }}