Search

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 source installs☆ 0 Repository stars

Installation

Follow the repository instructions for this skill and your agent. Review the files and dependencies before adding it to your workflow.

SkillHub CLI

skillhub install c-joey/provider-sync

Inspect the source and compatibility requirements, then follow its installation steps.

Give your agent the source link and ask it to inspect instructions and dependencies before explaining the installation steps.

View source ↗Guides

Skill instructions

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 information

Source
github
Repository
openclaw/skills
Path
skills/c-joey/provider-sync
Version
—
Commit
aa3f6d48e3a3b5469f94295e2fb6465f2b1406a6
Classification source
rules
Status
active
Visibility
public

These signals come from indexed source analysis and may lag behind changes. Check the current source files.

Extracted content

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...

Related skills

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" }}