← 返回 Skills 市场
Auto Router
作者
thibautnext
· GitHub ↗
· v1.0.0
430
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install auto-router
功能描述
Routage automatique vers le modèle optimal selon le type de question (local gratuit vs API payant)
使用说明 (SKILL.md)
Auto-Router Skill
Route automatiquement chaque message vers le modèle le plus adapté et économique.
Principe
🤖 Analyse intelligente → Choix automatique → Exécution optimale
| Type de question | Modèle choisi | Coût |
|---|---|---|
| Questions simples | Llama 3.2 3B (local) | 🆓 Gratuit |
| Usage général | Qwen 2.5 7B (local) | 🆓 Gratuit |
| Code/technique | Qwen Coder 7B (local) | 🆓 Gratuit |
| Business/analyse | Claude Sonnet 4 (API) | 💰 Modéré |
| Très complexe | Claude Opus 4.5 (API) | 💰💰💰 Premium |
Utilisation
Activation manuelle
# Test d'un message
node /Users/thibaut/clawd/auto-router.js "Comment écrire une fonction Python ?"
Intégration Clawdbot
Le skill analyse automatiquement tes messages et route vers le modèle optimal.
Exemples de routage
# Question simple → Local gratuit
"Salut ça va ?" → Llama 3.2 3B
# Code → Local gratuit
"Comment faire une boucle en Python ?" → Qwen Coder 7B
# Business → API modéré
"Quelle stratégie marketing adopter ?" → Claude Sonnet 4
# Très complexe → API premium
"Analyse macro-économique globale avec 20 variables" → Claude Opus 4.5
Économies
- ~85% de réduction sur les coûts d'IA
- Questions simples/code = 100% gratuit (local)
- Analyses business = modèle économique (Sonnet)
- Recherche avancée = modèle premium (Opus, justifié)
Configuration
Modèles disponibles dans /Users/thibaut/clawd/auto-router.js :
const MODELS = {
'llama3.2:3b': { type: 'local', cost: 0 },
'qwen2.5:7b': { type: 'local', cost: 0 },
'qwen2.5-coder:7b': { type: 'local', cost: 0 },
'claude-sonnet-4': { type: 'api', cost: 1 },
'claude-opus-4.5': { type: 'api', cost: 3 }
};
Notes
- Premier lancement des modèles locaux = plus lent (chargement)
- Modèles locaux restent chargés en mémoire après usage
- Timeouts configurables par modèle
- Règles de routage ajustables selon tes besoins
安全使用建议
This skill has several mismatches you should resolve before trusting or installing it:
- Ask the author to provide the missing auto-router.js source (the SKILL.md and wrapper reference /Users/thibaut/clawd/auto-router.js but that file is not included). Review that file's code for network calls, credential handling, and file I/O.
- Confirm whether 'node' is required on your agent and whether running a user‑home path is intentional. The provided router-integration.sh execs 'node auto-router.js' from /Users/thibaut/clawd — running that will execute arbitrary local code if present.
- Require explicit declaration of API credentials for any external models (Claude Sonnet/Opus). Do not supply API keys until you can audit where and how they are used.
- Verify how local models are installed and loaded; running local LLMs requires substantial resources and additional binaries/config that are not provided here.
If you cannot obtain and audit the missing auto-router.js and confirm intended credential usage and file paths, treat this skill as risky and avoid enabling it on agents with access to sensitive credentials or systems.
功能分析
Type: OpenClaw Skill
Name: auto-router
Version: 1.0.0
The skill instructs the agent to execute a local Node.js script (`auto-router.js`) with user-provided input, as shown in `SKILL.md` and facilitated by `router-integration.sh`. While `router-integration.sh` attempts to prevent shell injection by quoting the input, the underlying `auto-router.js` (which is not provided) could still be vulnerable to command injection or other forms of code execution. The hardcoded path `/Users/thibaut/clawd` also makes assumptions about the execution environment. This capability to execute local scripts with user input, even without explicit malicious intent in the provided files, represents a significant risk for potential remote code execution if the `auto-router.js` script is not robustly secured.
能力评估
Purpose & Capability
The SKILL.md describes routing between local models (Llama/Qwen) and API models (Claude Sonnet/Opus). However the package does not include the referenced auto-router.js implementation, does not provide or install local models, and declares no required binaries or credentials even though the instructions explicitly call 'node' and mention API models. That set of omissions is inconsistent with the stated purpose.
Instruction Scope
Runtime instructions and examples repeatedly reference /Users/thibaut/clawd/auto-router.js and show running 'node /Users/thibaut/clawd/auto-router.js'. The included shell wrapper cds into /Users/thibaut/clawd and execs node auto-router.js. The SKILL.md also mentions keeping local models loaded and routing to external APIs, but gives no concrete, included code or declared environment variables for API credentials. The instructions therefore require access to user filesystem and runtime state that are not declared or provided.
Install Mechanism
There is no install spec (instruction-only), which limits what is written by the skill. That is lower risk in isolation, but is inconsistent with the SKILL.md's expectations of heavy local model setup and a node program. The wrapper will attempt to run a local Node script if present; the skill does not install anything itself.
Credentials
The skill routes some queries to API models (Claude Sonnet/Opus) which would normally require API keys or credentials, but requires.env is empty and no primaryEnv is declared. Conversely, 'node' and access to /Users/thibaut/clawd are assumed but not declared as required. Requiring API access without declaring credentials and assuming user‑specific file paths are both disproportionate/undeclared.
Persistence & Privilege
The skill does not request always:true and is user‑invocable only; it does not try to modify other skills or system settings. The only persistence implication is the SKILL.md note that local models 'remain loaded in memory' — this is a behavioral description but not enforced by the package itself. Still, the wrapper hands execution to a local script, which could persist behavior depending on that script's contents.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install auto-router - 安装完成后,直接呼叫该 Skill 的名称或使用
/auto-router触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Première version du skill auto-router pour le routage automatique des messages vers le modèle IA optimal.
- Sélection intelligente entre modèles locaux gratuits et API payants selon le type de question (simple, code, business, complexe).
- Jusqu’à 85% de réduction des coûts grâce à la priorité aux modèles locaux pour questions simples et techniques.
- Fonctionne aussi bien en test manuel qu’en intégration automatique avec Clawdbot.
- Routage, coût et configuration des modèles clairement documentés pour une utilisation flexible.
元数据
常见问题
Auto Router 是什么?
Routage automatique vers le modèle optimal selon le type de question (local gratuit vs API payant). 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 430 次。
如何安装 Auto Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install auto-router」即可一键安装,无需额外配置。
Auto Router 是免费的吗?
是的,Auto Router 完全免费(开源免费),可自由下载、安装和使用。
Auto Router 支持哪些平台?
Auto Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Auto Router?
由 thibautnext(@thibautnext)开发并维护,当前版本 v1.0.0。
推荐 Skills