搜索

PythonReactSEOPDF
OpenClaw

smart-model-switcher-v3

Universal Smart Model Switcher V3 - Multi-Provider, Multi-Model intelligent switching. Automatically selects the best model from ALL your purchased API plans (Bailian/Qwen, MiniMax, GLM, Kimi, etc.). Zero-latency runtime switching, no restart required. Supports 50+ models across all providers with advanced task classification and fallback logic.

davidme60 来源安装数☆ 0 仓库 Starsv3.0.0

安装与使用

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

SkillHub CLI

skillhub install davidme6/smart-model-switcher-v3

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

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

查看来源 ↗使用指南

技能说明

🧠 Smart Model Switcher V3 (Universal Multi-Provider)

全平台多模型智能切换 • 零延迟 • 无需重启 • 自动 fallback

🎯 V3 核心升级

特性 V2 V3
支持 provider 仅 Bailian/Qwen 全平台 (Bailian/MiniMax/GLM/Kimi/等)
模型数量 ~5 个 50+ 个
API Key 验证 ❌ 无 ✅ 自动验证
套餐检测 ❌ 无 ✅ 自动检测已购套餐
跨 provider 切换 ❌ 不支持 ✅ 支持
成本优化 ❌ 无 ✅ 优先使用性价比高的模型
多 key 管理 ❌ 单 key ✅ 多 provider key 管理

支持的 Provider 和模型

百炼 (Bailian) - Qwen 系列
模型 适用场景 Context 优先级
qwen3.5-plus 写作/长文档/翻译 1M ⭐⭐⭐
qwen3-coder-plus 编程/Debug 100K ⭐⭐⭐
qwen3-max-2026-01-23 复杂推理/数学 100K ⭐⭐⭐
qwen3.5-397b-a17b 通用任务 262K ⭐⭐
qwen-plus 日常对话/快速任务 131K ⭐
qwen-turbo 简单任务/低成本 32K ⭐
MiniMax 系列
模型 适用场景 Context 优先级
MiniMax-M2.5 通用/对话 256K ⭐⭐⭐
MiniMax-Text-01 长文本处理 1M ⭐⭐
智谱 (GLM) 系列
模型 适用场景 Context 优先级
glm-5 通用/推理 128K ⭐⭐⭐
glm-4.7 快速任务 128K ⭐⭐
月之暗面 (Kimi) 系列
模型 适用场景 Context 优先级
kimi-k2.5 长文档/分析 200K+ ⭐⭐⭐

🚀 核心功能

1. 全平台模型支持
  • ✅ Bailian (Qwen 系列)
  • ✅ MiniMax
  • ✅ GLM (智谱)
  • ✅ Kimi (月之暗面)
  • ✅ 自动扩展新 provider
2. API Key 自动验证
启动时自动检测:
├── bailian API Key → ✅ 有效/❌ 无效
├── minimax API Key → ✅ 有效/❌ 无效
├── glm API Key → ✅ 有效/❌ 无效
└── kimi API Key → ✅ 有效/❌ 无效
3. 套餐检测
已购套餐检测:
├── Bailian → qwen3.5-plus, qwen3-coder-plus, ...
├── MiniMax → MiniMax-M2.5, ...
├── GLM → glm-5, glm-4.7, ...
└── Kimi → kimi-k2.5, ...
4. 智能...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/davidme6/smart-model-switcher-v3
Version
3.0.0
Commit
c81efd4e6ae1dd7e3a48043da83d5fc8a0ccae42
分类来源
rules
状态
active
可见性
public

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

README

🧠 Smart Model Switcher V3

Universal Multi-Provider Model Switching for OpenClaw

Version License OpenClaw

🎯 概述

Smart Model Switcher V3 是一个智能模型切换工具,支持全平台多 Provider的大模型自动切换。根据您的任务类型,自动选择最优模型,无需重启 Gateway,切换延迟 <80ms。

✨ V3 核心特性
  • 🌍 全平台支持 - Bailian (Qwen)、MiniMax、GLM (智谱)、Kimi (月之暗面)
  • 🔑 API Key 验证 - 启动时自动验证所有 Provider 的 API Key
  • 📦 套餐检测 - 仅使用您已购套餐内的模型
  • 💰 成本优化 - 同等级别优先使用性价比高的模型
  • ⚡ 零延迟切换 - 无需重启,运行时切换 <80ms
  • 🔄 智能 Fallback - 主模型不可用时自动降级
  • 📊 50+ 模型 - 支持所有主流大模型

🚀 快速开始

安装
方式 1: 使用 ClawHub (推荐)
npx skills add davidme6/openclaw@smart-model-switcher-v3
方式 2: 手动安装
# 克隆仓库
git clone https://github.com/davidme6/openclaw.git

# 复制 skill 到 OpenClaw 技能目录
cp -r openclaw/skills/smart-model-switcher-v3 \
  $env:USERPROFILE\AppData\Roaming\npm\node_modules\openclaw\skills\

# 重启 Gateway
openclaw gateway restart
配置

在 ~/.openclaw/openclaw.json 中配置各 Provider 的 API Key:

{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://dashscope.aliyuncs.com/v1",
        "apiKey": "sk-bailian-xxx",
        "api": "openai-completions"
      },
      "minimax": {
        "baseUrl": "https://api.minimax.chat/v1",
        "apiKey": "sk-minimax-xxx",
        "api": "openai-completions"
      },
      "glm": {
        "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
        "apiKey": "sk-glm-xxx",
        "api": "openai-completions"
      },
      "kimi": {...

来源内容

SKILL.md
# 🧠 Smart Model Switcher V3 (Universal Multi-Provider)

**全平台多模型智能切换 • 零延迟 • 无需重启 • 自动 fallback**

## 🎯 V3 核心升级

| 特性 | V2 | V3 |
|------|----|----|
| **支持 provider** | 仅 Bailian/Qwen | 全平台 (Bailian/MiniMax/GLM/Kimi/等) |
| **模型数量** | ~5 个 | 50+ 个 |
| **API Key 验证** | ❌ 无 | ✅ 自动验证 |
| **套餐检测** | ❌ 无 | ✅ 自动检测已购套餐 |
| **跨 provider 切换** | ❌ 不支持 | ✅ 支持 |
| **成本优化** | ❌ 无 | ✅ 优先使用性价比高的模型 |
| **多 key 管理** | ❌ 单 key | ✅ 多 provider key 管理 |

##  支持的 Provider 和模型

### 百炼 (Bailian) - Qwen 系列
| 模型 | 适用场景 | Context | 优先级 |
|------|----------|---------|--------|
| qwen3.5-plus | 写作/长文档/翻译 | 1M | ⭐⭐⭐ |
| qwen3-coder-plus | 编程/Debug | 100K | ⭐⭐⭐ |
| qwen3-max-2026-01-23 | 复杂推理/数学 | 100K | ⭐⭐⭐ |
| qwen3.5-397b-a17b | 通用任务 | 262K | ⭐⭐ |
| qwen-plus | 日常对话/快速任务 | 131K | ⭐ |
| qwen-turbo | 简单任务/低成本 | 32K | ⭐ |

### MiniMax 系列
| 模型 | 适用场景 | Context | 优先级 |
|------|----------|---------|--------|
| MiniMax-M2.5 | 通用/对话 | 256K | ⭐⭐⭐ |
| MiniMax-Text-01 | 长文本处理 | 1M | ⭐⭐ |

### 智谱 (GLM) 系列
| 模型 | 适用场景 | Context | 优先级 |
|------|----------|---------|--------|
| glm-5 | 通用/推理 | 128K | ⭐⭐⭐ |
| glm-4.7 | 快速任务 | 128K | ⭐⭐ |

### 月之暗面 (Kimi) 系列
| 模型 | 适用场景 | Context | 优先级 |
|------|----------|---------|--------|
| kimi-k2.5 | 长文档/分析 | 200K+ | ⭐⭐⭐ |

## 🚀 核心功能

### 1. 全平台模型支持
- ✅ Bailian (Qwen 系列)
- ✅ MiniMax
- ✅ GLM (智谱)
- ✅ Kimi (月之暗面)
- ✅ 自动扩展新 provider

### 2. API Key 自动验证
```
启动时自动检测:
├── bailian API Key → ✅ 有效/❌ 无效
├── minimax API Key → ✅ 有效/❌ 无效
├── glm API Key → ✅ 有效/❌ 无效
└── kimi API Key → ✅ 有效/❌ 无效
```

### 3. 套餐检测
```
已购套餐检测:
├── Bailian → qwen3.5-plus, qwen3-coder-plus, ...
├── MiniMax → MiniMax-M2.5, ...
├── GLM → glm-5, glm-4.7, ...
└── Kimi → kimi-k2.5, ...
```

### 4. 智能...
README
# 🧠 Smart Model Switcher V3

**Universal Multi-Provider Model Switching for OpenClaw**

[![Version](https://img.shields.io/badge/version-3.0.0-blue.svg)](https://github.com/davidme6/openclaw/tree/main/skills/smart-model-switcher-v3)
[![License](https://img.shields.io/badge/license-MIT-green.svg)](LICENSE)
[![OpenClaw](https://img.shields.io/badge/OpenClaw-Skill-purple.svg)](https://openclaw.ai)

## 🎯 概述

Smart Model Switcher V3 是一个智能模型切换工具,支持**全平台多 Provider**的大模型自动切换。根据您的任务类型,自动选择最优模型,无需重启 Gateway,切换延迟 <80ms。

### ✨ V3 核心特性

- 🌍 **全平台支持** - Bailian (Qwen)、MiniMax、GLM (智谱)、Kimi (月之暗面)
- 🔑 **API Key 验证** - 启动时自动验证所有 Provider 的 API Key
- 📦 **套餐检测** - 仅使用您已购套餐内的模型
- 💰 **成本优化** - 同等级别优先使用性价比高的模型
- ⚡ **零延迟切换** - 无需重启,运行时切换 <80ms
- 🔄 **智能 Fallback** - 主模型不可用时自动降级
- 📊 **50+ 模型** - 支持所有主流大模型

## 🚀 快速开始

### 安装

#### 方式 1: 使用 ClawHub (推荐)
```bash
npx skills add davidme6/openclaw@smart-model-switcher-v3
```

#### 方式 2: 手动安装
```bash
# 克隆仓库
git clone https://github.com/davidme6/openclaw.git

# 复制 skill 到 OpenClaw 技能目录
cp -r openclaw/skills/smart-model-switcher-v3 \
  $env:USERPROFILE\AppData\Roaming\npm\node_modules\openclaw\skills\

# 重启 Gateway
openclaw gateway restart
```

### 配置

在 `~/.openclaw/openclaw.json` 中配置各 Provider 的 API Key:

```json
{
  "models": {
    "mode": "merge",
    "providers": {
      "bailian": {
        "baseUrl": "https://dashscope.aliyuncs.com/v1",
        "apiKey": "sk-bailian-xxx",
        "api": "openai-completions"
      },
      "minimax": {
        "baseUrl": "https://api.minimax.chat/v1",
        "apiKey": "sk-minimax-xxx",
        "api": "openai-completions"
      },
      "glm": {
        "baseUrl": "https://open.bigmodel.cn/api/paas/v4",
        "apiKey": "sk-glm-xxx",
        "api": "openai-completions"
      },
      "kimi": {...

相关技能

OpenClaw

bambu-studio-ai

heyixuan2

Bambu Lab 3D printer control and automation. Activate when user mentions: printer status, 3D printing, slice, analyze model, generate 3D, AMS filament, print monitor, Bambu Lab, or any 3D printing task. Full pi...

OpenClaw

humanpages

human-pages-ai

Search and hire real humans for tasks — photography, delivery, research, and more

OpenClaw

geo-optimization

capt-marbles

Generative Engine Optimization (GEO) for AI search visibility. Optimize content to appear in ChatGPT, Perplexity, Claude, and Google AI Overviews. Use when optimizing websites, pages, or content for LLM discove...

OpenClaw

openclaw-skills

zseven-w

Reusable skill templates for OpenClaw AI agents. Templates for API integration, data processing, web scraping, CLI tools, and file processing.