← Back to Skills Marketplace
thibautnext

Auto Router

by thibautnext · GitHub ↗ · v1.0.0
cross-platform ⚠ suspicious
430
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install auto-router
Description
Routage automatique vers le modèle optimal selon le type de question (local gratuit vs API payant)
README (SKILL.md)

Auto-Router Skill

Route automatiquement chaque message vers le modèle le plus adapté et économique.

Principe

🤖 Analyse intelligenteChoix automatiqueExé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
Usage Guidance
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.
Capability Analysis
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.
Capability Assessment
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.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install auto-router
  3. After installation, invoke the skill by name or use /auto-router
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
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.
Metadata
Slug auto-router
Version 1.0.0
License
All-time Installs 2
Active Installs 2
Total Versions 1
Frequently Asked Questions

What is Auto Router?

Routage automatique vers le modèle optimal selon le type de question (local gratuit vs API payant). It is an AI Agent Skill for Claude Code / OpenClaw, with 430 downloads so far.

How do I install Auto Router?

Run "/install auto-router" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Auto Router free?

Yes, Auto Router is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Auto Router support?

Auto Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Auto Router?

It is built and maintained by thibautnext (@thibautnext); the current version is v1.0.0.

💬 Comments