Smart Router Publish
Use when switching models, saving costs, or routing queries. Automatically picks the cheapest model that can handle the job — "translate hello" routes to $0/... Skill: Smart Router Publish Owner: raydatalab Summary: Use when switching models, saving costs, or routing queries. Automatically picks the cheapest model that can handle the job — "translate hello" routes to $0/... Tags: latest:0.2.2 Version history: v0.2.2 | 2026-07-11T01:35:25.520Z | auto - Updated version to 0.2.2 - Minor formatting and clarity improvements in SKILL.md - No functional or code changes; documentati
Rank
62
Safety
84
Downloads
1.5k
Updated
Oct 10, 2026
Version
0.2.2
Source
CLAWHUB
About
What it does, and when to use it.
Capability contract not published. No trust telemetry is available yet. 1.5K downloads reported by the source. Last updated 10/10/2026.
Avoid when
- Contract metadata is missing or unavailable for deterministic execution.
Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing
Public facts
Every fact links back to the source it came from.
- Vendor
- Clawhubvendor · observed Oct 10, 2026
- Protocol compatibility
- OpenClawcompatibility · observed Oct 10, 2026
- Adoption signal
- 1.5K downloadsadoption · observed Oct 10, 2026
- Latest release
- 0.2.2release · observed Jul 11, 2026
- Handshake status
- UNKNOWNsecurity
Install and run
Setup complexity: low.
clawhub skill install s179gmr84mj3szjyrksyq2zv058a61mt:hermes-smart-router- Setup complexity is classified as HIGH. You must provision dedicated cloud infrastructure or an isolated VM. Do not run this directly on your local workstation.
- Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.
Contract: missing
curl -s "https://www.xpersona.co/api/v1/agents/clawhub-raydatalab-hermes-smart-router/snapshot"
Documentation
CLAWHUB
79,708 characters of source documentation, loaded on request.
Extracted files
3 files captured from the source.
SKILL.md
---
name: hermes-smart-router
description: Use when switching models, saving costs, or routing queries. Automatically picks the cheapest model that can handle the job — "translate hello" routes to $0/M local, "design a database" routes to $3/M pro. 100% local classification, zero API calls for routing.
version: 0.2.2
author: raydatalab
license: MIT
platforms: [linux, macos, wsl]
triggers:
- model switch
- change model
- /model
- /tier
- switch to
- use local
- use flash
- use pro
- too slow
- wasting tokens
- cheaper model
- downgrade
- upgrade model
- routing
- tier selection
- local model
- what model
- which model
- speed up
- save cost
- 切换模型
- 太慢了
- 换模型
- 用什么模型
metadata:
hermes:
tags: [routing, model, cost-optimization, ollama]
homepage: https://github.com/raydatalab/hermes-smart-router
related_skills: [hermes-cost-optimization]
---
# Smart Router
## Overview
```
"Translate hello to German" → local $0/M tok
"Explain how DNS works" → flash $0.15/M tok (GPT-4o-mini)
"Design a distributed database" → pro $3/M tok (Claude Sonnet)
```
Smart Router classifies every query locally (Ollama embeddings + semantic-router)
and picks the cheapest tier that can handle it. Simple queries route to free local
models. Complex reasoning routes to frontier models. You pay for what you need —
not what your config happens to be set to.
Classification runs entirely on your machine. Zero API calls for routing decisions.
Zero keys needed. ~3s on first call, <1ms after.
## When to Use
Load this skill when:
- The user is toggling between models manually (wasting tokens on simple queries)
- The user asks about cost saving, model switching, or routing
- The user mentions `/model`, `/tier`, or switches models mid-session
- The agent is about to answer a complex question and should verify the current tier
Do NOT load for: greetings, one-liners, translations, queries under 20 characters.
## CRITICAL — Agent Instructions
**Call `router.resolve()` before answering any non-trivial query.**
```python
from smart_router.router import get_router
router = get_router()
decision = router.resolve(user_message, current_tier=ACTIVE_TIER)
# → {"tier": "pro", "model": {...}, "needs_switch": true,
# "reason": "Upgrade from flash to pro — Complex code...",
# "recommendation": "💡 Switch to pro: `/model anthropic claude-sonnet-4` — ..."}
```
**If `decision["recommendation"]` is not None**, paste it at the top of your
response — it's ready to use, no formatting needed.
**If `decision["recommendation"]` is None**, just answer normally.
**If the call errors or times out**, skip it and answer — never retry.
`ACTIVE_TIER` is your current tier (local/flash/pro). Check with `/tier` or ask.
### When to Skip
Skip routing for: greetings ("hello", "thanks"), translations, one-liner facts,
queries under 20 characters. Everything else — route.
### When to Route
- **Complex:** 3+ tool calls, _meta.json
{
"ownerId": "kn7fk1ctfxrjyw4y1hdms1re458a736q",
"slug": "hermes-smart-router",
"version": "0.2.2",
"publishedAt": 1783733725520
}skill-card.md
## Description: Use when switching models, saving costs, or routing queries; it classifies requests locally and recommends the cheapest model tier that can handle the task. This skill is ready for commercial/non-commercial use. ## Publisher: [raydatalab](https://clawhub.ai/user/raydatalab) ### License/Terms of Use: MIT-0 ## Use Case: Developers and agent operators use this skill to decide when to keep work on local or lower-cost models and when to recommend a higher-capability tier for complex reasoning, architecture, debugging, or multi-step coding tasks. ### Deployment Geography for Use: Global ## Known Risks and Mitigations: Risk: Broad routing-related phrases may activate the skill in model-selection or cost-saving conversations where routing is not desired. Mitigation: Review routing recommendations before switching tiers and skip routing for greetings, simple translations, one-line factual requests, and very short prompts. Risk: Using the router backend may require a local Ollama service or model download before routing works. Mitigation: Confirm Ollama and required local models are installed before relying on routing; if a router call fails or times out, continue without retrying. Risk: Short prompts can bypass routing even when they need a stronger model tier. Mitigation: Use manual tier or model selection for short prompts that still require complex reasoning or advanced coding support. ## Reference(s): - [ClawHub Skill Page](https://clawhub.ai/raydatalab/skills/hermes-smart-router) - [Hermes Smart Router Homepage](https://github.com/raydatalab/hermes-smart-router) ## Skill Output: **Output Type(s):** [text, markdown, shell commands, configuration, guidance] **Output Format:** [Markdown guidance with inline commands and configuration snippets] **Output Parameters:** [1D] **Other Properties Related to Output:** [Produces routing recommendations and setup guidance; no API keys are required for local routing classification.] ## Skill Version(s): 0.2.2 (source: release metadata and SKILL.md frontmatter) ## Ethical Considerations: Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.
AionUi
Free, local, open-source 24/7 Cowork app and OpenClaw for Gemini CLI, Claude Code, Codex, OpenCode, Qwen Code, Goose CLI, Auggie, and more | 🌟 Star if you like it!
activepieces
AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
cherry-studio
AI productivity studio with smart chat, autonomous agents, and 300+ assistants.
CopilotKit
The Frontend for Agents & Generative UI. React + Angular
Machine-readable data
The same record, as JSON, for agents and crawlers.
{
"facts": [
{
"factKey": "vendor",
"category": "vendor",
"label": "Vendor",
"value": "Clawhub",
"href": "https://clawhub.ai/raydatalab/skills/hermes-smart-router",
"sourceUrl": "https://clawhub.ai/raydatalab/skills/hermes-smart-router",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T09:02:10.488Z",
"isPublic": true
},
{
"factKey": "protocols",
"category": "compatibility",
"label": "Protocol compatibility",
"value": "OpenClaw",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-raydatalab-hermes-smart-router/contract",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-raydatalab-hermes-smart-router/contract",
"sourceType": "contract",
"confidence": "medium",
"observedAt": "2026-10-10T09:02:10.488Z",
"isPublic": true
},
{
"factKey": "traction",
"category": "adoption",
"label": "Adoption signal",
"value": "1.5K downloads",
"href": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceUrl": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceType": "profile",
"confidence": "medium",
"observedAt": "2026-10-10T09:02:10.488Z",
"isPublic": true
},
{
"factKey": "latest_release",
"category": "release",
"label": "Latest release",
"value": "0.2.2",
"href": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceUrl": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-11T01:35:25.520Z",
"isPublic": true
},
{
"factKey": "handshake_status",
"category": "security",
"label": "Handshake status",
"value": "UNKNOWN",
"href": "https://www.xpersona.co/api/v1/agents/clawhub-raydatalab-hermes-smart-router/trust",
"sourceUrl": "https://www.xpersona.co/api/v1/agents/clawhub-raydatalab-hermes-smart-router/trust",
"sourceType": "trust",
"confidence": "medium",
"observedAt": null,
"isPublic": true
}
],
"events": [
{
"eventType": "release",
"title": "Release 0.2.2",
"description": "- Updated version to 0.2.2 - Minor formatting and clarity improvements in SKILL.md - No functional or code changes; documentation only",
"href": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceUrl": "https://clawhub.ai/raydatalab/hermes-smart-router",
"sourceType": "release",
"confidence": "medium",
"observedAt": "2026-07-11T01:35:25.520Z",
"isPublic": true
}
]
}Record generated Oct 10, 2026.
