跳到正文
TakoAPI
返回技能列表

provider-sync

由 c-joey 提供

Clawdbot Tools
323下载量由 clawskills.sh 提供
1星标
0浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Sync provider models into OpenClaw config.

描述

该技能的功能

Fetches model lists from OpenAI-compatible provider endpoints and syncs them into the local openclaw.json config. Shows a diff preview before any writes, auto-backs up the config on apply, and prunes stale model aliases from agent defaults by default.

Eliminates manual JSON editing and prevents stale model references from showing up in agent menus after provider updates.

何时使用

  • Checking which models a provider added or removed since last sync
  • Syncing all configured providers at once after upstream changes
  • Adding a new provider to OpenClaw via a guided text wizard
  • Keeping agent default model menus aligned with live provider catalogs
  • Previewing config changes without touching disk

示例工作流

输入

User sends: /provider_sync provider=cli-usa

智能体
  1. 1

    Fetch current model list from cli-usa's /v1/models endpoint

  2. 2

    Compare fetched models against openclaw.json entries for that provider

  3. 3

    Display a diff preview showing added, removed, and changed models

  4. 4

    Wait for user confirmation before writing

  5. 5

    On confirm with mode=apply, back up config, write updated model list, and prune stale entries from agents.defaults.models

输出

Updated openclaw.json with current provider models; stale aliases removed from agents.defaults.models

前置要求

  • Provider API keys for any endpoints that require authentication (passed via the apiKey parameter)

安装

clawhub install c-joey/provider-sync

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接