Token导航 LogoToken导航

Agent Skill · 效率

semantic-model-router(语义模型路由器)

semantic-model-router 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

semantic-model-router 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为需要联网;许可证为 MIT-0,第三方扫描有提醒项,按安装量在效率类的 21,003 个 Skill 里排第 4,639。

总安装 12,795周安装 544GitHub Stars 公开资料未说明下载 4,483核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.0.3

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:semantic-model-router(语义模型路由器)
来源仓库:https://github.com/rayray1218/semantic-model-router
安装命令:
openclaw skills install semantic-model-router
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install semantic-model-router

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

智能路由查询至性价比最优的大语言模型。覆盖 Anthropic、OpenAI、Google 等 17 种主流模型。自动平衡成本与性能,提升响应效率。semantic-model-router 属于效率类 Skill,可作为该场景下的辅助能力补充。

安装命令:openclaw skills install semantic-model-router。需配置各模型 API 密钥并监控计费策略。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install semantic-model-router;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要需要联网,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

semantic-model-router 怎么安装?

在终端执行 openclaw skills install semantic-model-router。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

semantic-model-router 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

semantic-model-router 需要什么权限?

权限级别是需要联网。该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

semantic-model-router 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

semantic-model-router 用的人多吗?

公开数据是累计安装 12,795 次,近一周安装 544 次,下载 4,483 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

semantic-model-router 安全吗?

第三方扫描有提醒项,说明存在需要人工确认的行为。安装前请打开源码看清它读了什么、联网到哪里。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。

先想清楚的地方

  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。

不太适合

  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
semantic-model-router

语义模型路由器 · 本页

12,795—需要联网MIT-0有提醒

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
semantic-model-router
description
Smart LLM Router — routes every query to the cheapest capable model. Supports 17 models across Anthropic, OpenAI, Google, DeepSeek & xAI (Grok). Uses a pre-trained ML classifier. No extra API keys required.
version
1.0.2
author
Ray
tags
[llm-ops, routing, cost-saving, openclaw, semantic-router, multi-model]
homepage
https://github.com/rayray1218/ClawSkill-Semantic-Router
files
["scripts/model_router.py", "scripts/model_weights.py", "scripts/requirements.txt"]
dependencies

Semantic Model Router

Smart LLM router that saves up to 99% on inference costs by routing each request to the cheapest model that can handle it. Powered by a pre-trained ML classifier and semantic embeddings — no external calls, no API keys needed.

Install

openclaw plugins install @rayray1218/semantic-model-router

Quick Start

from scripts.model_router import ModelRouter

router = ModelRouter()
res = router.route("Design a distributed caching layer for a fintech platform.")
print(res["report"])
# [ClawRouter] anthropic/claude-sonnet-4-6 (ELITE, ml, conf=0.97)
#              Cost: $3.0/M | Baseline: $10.0/M | Saved: 70.0%

How Routing Works

Queries are classified into three tiers through a 3-stage pipeline:

  1. ML Classifier (primary): A Logistic Regression model trained on 6,000+ labeled queries. Runs in <1ms from embedded weights in model_weights.py.
  2. Semantic Embeddings (fallback): Cosine similarity to tier intent vectors via sentence-transformers.
  3. Keyword Rules (last resort): Pattern matching with no dependencies.
TierDefault ModelTypical WorkloadCost/1Mvs Baseline
BASICdeepseek/deepseek-chatGreetings, simple Q&A, chit-chat$0.1499% saved
BALANCEDopenai/gpt-4o-miniSummaries, translations, explanations$0.1599% saved
ELITEanthropic/claude-sonnet-4-6Complex coding, architecture, security$3.0070% saved

Supported Models (17 total, verified Feb 2026)

Anthropic

ModelInput /1MOutput /1M
anthropic/claude-sonnet-4-6$3.00$15.00 ★ ELITE default
anthropic/claude-opus-4-5$5.00$25.00
anthropic/claude-haiku-4-5$0.80$4.00

OpenAI

ModelInput /1MOutput /1M
openai/gpt-5$1.25$10.00
openai/gpt-4o$2.50$10.00
openai/gpt-4o-mini$0.15$0.60 ★ BALANCED default
openai/o3$2.00$8.00
openai/o4-mini$1.10$4.40

Google

ModelInput /1MOutput /1M
google/gemini-3.0-pro$1.25$10.00
google/gemini-2.5-pro$1.25$10.00
google/gemini-2.5-flash$0.30$2.50
google/gemini-2.5-flash-lite$0.10$0.40

DeepSeek

ModelInput /1MOutput /1M
deepseek/deepseek-chat (V3.2)$0.28$0.42 ★ BASIC default
deepseek/deepseek-reasoner (V3.2)$0.28$0.42

xAI (Grok)

ModelInput /1MOutput /1M
xai/grok-3$3.00$15.00
xai/grok-3-mini$0.30$0.50
Pricing source: Official API docs of each provider, verified Feb 2026.

Override Models at Runtime

# Use GPT-5.2 for ELITE, Gemini Flash Lite for BASIC
router = ModelRouter(
    elite_model="openai/gpt-5.2",
    balanced_model="google/gemini-2.5-flash",
    basic_model="google/gemini-2.5-flash-lite",
)
# Swap a tier's model without recreating the router
router.set_model("ELITE", "anthropic/claude-opus-4-5")

List All Available Models (CLI)

python3 scripts/model_router.py --list-models

CLI Usage

# Route a single query
python3 scripts/model_router.py "Implement AES encryption from scratch"

# Override ELITE model
python3 scripts/model_router.py --elite openai/gpt-5.2 "Write a compiler"

# Run full smoke-test
python3 scripts/model_router.py

Dynamic Keyword Expansion

router.add_keywords("ELITE", ["cryptographic proof", "zero-knowledge"])

Example Output

Query                                              Predicted  Expected   ✓  Cost Info
────────────────────────────────────────────────────────────────────────────────────
How are you doing today?                           BASIC      BASIC      ✓  $0.14/M  saved 98.6%
Summarize this article in three bullet points.     BALANCED   BALANCED   ✓  $0.15/M  saved 98.5%
Implement a thread-safe LRU cache in Python.       ELITE      ELITE      ✓  $3.0/M   saved 70.0%

Security & Privacy

  • Zero external calls: All classification runs locally.
  • No API keys: The router itself needs none.
  • Transparent weights: All model parameters live in scripts/model_weights.py — fully auditable.

*Save costs, route smarter. Built for the OpenClaw community.*

平台分布

OpenClaw

95.54%
按下载量换算4,283

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

未展示

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills