← Back to Skills Marketplace
361
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install model-selector
Description
A powerful model routing skill that analyzes query intent and cost-efficiency to select the optimal LLM (Elite/Balanced/Basic) before execution.
Usage Guidance
This skill appears to do what it claims (choose a model tier) but has a few red flags you should consider before installing:
- Code/instruction mismatch: SKILL.md references get_optimal_model and analyze_and_route, but the code provides ModelRouter.route(). Confirm the actual tool interface the agent will call and update the README or code so they match.
- Local logging: It writes query_history.json with users' queries. If prompts may contain secrets or sensitive data, disable or audit this logging, restrict file permissions, or store history encrypted/ephemeral.
- Unused/large dependencies: requirements.txt includes litellm and heavy ML libs (torch, sentence-transformers). If you install dependencies, do so in an isolated environment (venv/container) and consider trimming unused packages.
- Minor bugs: The code uses torch.* inside ModelRouter.route but does not import torch at the top-level; running with semantic encoder enabled may raise a NameError. Test in a safe environment before trusting in production.
If you want to proceed: run the skill in an isolated sandbox, inspect and clean up query_history.json, reconcile SKILL.md and code function names, and verify you understand where and how any later 'refine' step would send data (avoid sending raw history to third-party LLMs unless you have consent and appropriate safeguards). If you prefer, ask the publisher for a fixed version that removes logging by default, aligns interface names, and documents exactly how refinement would be performed.
Capability Analysis
Type: OpenClaw Skill
Name: model-selector
Version: 1.0.0
The OpenClaw skill 'Semantic Model Orchestrator' is designed to route LLM queries based on intent and cost-efficiency. The code in `scripts/model_router.py` and `scripts/train_router.py` implements this functionality, including a 'rolling adjustment' feature that logs user queries and their assigned tiers to a local file (`query_history.json`). This local logging is explicitly for refining intent keywords and is not indicative of data exfiltration. No evidence of malicious intent, such as unauthorized network calls, arbitrary code execution, credential theft, or prompt injection against the agent, was found. All dependencies listed in `scripts/requirements.txt` are standard for the described functionality.
Capability Assessment
Purpose & Capability
The skill's name/description (model routing between Elite/Balanced/Basic) aligns with the included Python code which contains a ModelRouter and training helper. However the registry/README claims ClawHub-optimized tiers and 'Multi-Provider Support' while the skill itself only returns model identifiers (it does not perform provider authentication or API calls). The requirements.txt includes 'litellm' even though the code never imports or uses it — this is unnecessary and disproportionate to the stated functionality.
Instruction Scope
SKILL.md instructs agents to call a tool named get_optimal_model / shows an example using router.analyze_and_route(), but the provided code exposes ModelRouter.route() (no analyze_and_route or get_optimal_model). This mismatch means the SKILL.md and code are inconsistent. The code logs every routed query to a local file (query_history.json) and exposes a 'refine_keywords' / train_router.py flow that reads that history; storing user queries on disk is a privacy risk and could be used later to aggregate sensitive inputs. The 'refine' flow mentions using an external LLM to suggest new keywords — that could lead to sending logged queries to third-party models if implemented later (the current code does not itself send data externally, but the design enables it).
Install Mechanism
There is no install spec (instruction-only install), so nothing is automatically downloaded or executed by an installer; this lowers supply-chain risk. However the bundle includes a requirements.txt declaring heavy ML libraries (torch, sentence-transformers) which are large and may be installed by a user; those are plausible for the code but could be unexpected. No network download URLs or extract steps are present in the skill metadata.
Credentials
The skill requests no environment variables or credentials (none declared), which is proportionate for a router that only suggests model identifiers. Note: to actually execute calls against the named providers the agent/host will need provider-specific API keys separate from this skill; those are not requested by the skill itself.
Persistence & Privilege
The skill writes and reads a local file query_history.json for rolling adjustment and can keep up to 1000 entries. It does not request always:true and does not modify other skills. Persisting user queries to disk is a modest persistence/privacy concern (sensitive prompts could be retained).
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install model-selector - After installation, invoke the skill by name or use
/model-selector - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the Semantic Model Orchestrator skill.
- Routes queries to Elite, Balanced, or Basic LLMs based on semantic intent and cost-efficiency.
- Utilizes vector embeddings for query complexity analysis.
- Supports multiple providers: OpenAI, Anthropic, Gemini, and DeepSeek.
- Features rolling adjustment logic to refine intent detection from user history.
- Optimized default model tiers for Claude 3.5 Sonnet, GPT-4o-mini, and DeepSeek.
Metadata
Frequently Asked Questions
What is Model-Selector?
A powerful model routing skill that analyzes query intent and cost-efficiency to select the optimal LLM (Elite/Balanced/Basic) before execution. It is an AI Agent Skill for Claude Code / OpenClaw, with 361 downloads so far.
How do I install Model-Selector?
Run "/install model-selector" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Model-Selector free?
Yes, Model-Selector is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Model-Selector support?
Model-Selector is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Model-Selector?
It is built and maintained by Ray (@rayray1218); the current version is v1.0.0.
More Skills