← Back to Skills Marketplace
3480
Downloads
11
Stars
20
Active Installs
1
Versions
Install in OpenClaw
/install model-router-premium
Description
Route model requests based on configured models, costs and task complexity. Use for routing general/low-complexity requests to the cheapest available model and for higher-complexity requests to stronger models.
Usage Guidance
This skill appears to do only local model selection based on a JSON config and heuristics. Before installing: review your models.json (or OpenClaw config) to ensure entries point only to providers you trust (the example includes an 'internal' provider), because the router will pick whatever model records you give it; consider cost implications if you wire the router into an automated pipeline (it may route many requests to expensive models); test the heuristics on representative tasks to ensure routing matches your expectations; and avoid passing sensitive user data to untrusted provider entries in the models file. Overall the package is coherent and low-risk, but validate the models configuration and how the chosen model is subsequently invoked in your system.
Capability Analysis
Type: OpenClaw Skill
Name: model-router-premium
Version: 0.1.1
The OpenClaw skill 'model-router-premium' is designed to route model requests based on configuration. The `SKILL.md` instructs the agent to execute a local Python script (`scripts/router.py`), which reads a local JSON file (`examples/models.json`) for model definitions. The Python script performs string processing and file I/O for its stated purpose but does not engage in network communication, arbitrary command execution, or access to sensitive system files. No prompt injection attempts against the agent or the script itself were identified that would lead to malicious behavior.
Capability Assessment
Purpose & Capability
Name/description match the code and SKILL.md. The script's inputs (models JSON, task text, optional prefer/min-capability flags) are exactly what you'd expect for a model-routing utility.
Instruction Scope
SKILL.md instructs running the included CLI/library against a models file and task text. The runtime instructions and code only read the provided JSON file and the CLI args; they do not reference other files, environment variables, or external endpoints.
Install Mechanism
No install spec is present (instruction-only with one included Python script). No downloads, package installs, or extracted archives are requested.
Credentials
The skill requires no environment variables, credentials, or config paths. The example models JSON contains provider names (including an 'internal' provider) but no secrets — review model entries before use to ensure they don't point to sensitive endpoints.
Persistence & Privilege
The skill does not request persistent presence (always=false) and does not modify agent or system configs. It prints a chosen model and reasoning only.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install model-router-premium - After installation, invoke the skill by name or use
/model-router-premium - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.1.1
- Added support for routing model requests based on configured models, costs, and task complexity.
- Introduced a CLI/library (scripts/router.py) to select an appropriate model using a configuration file.
- Provided example configuration (examples/models.json) for easy setup.
- Implemented heuristics for routing: defaulting simple tasks to the cheapest model, escalating complex tasks as needed.
- Made model metadata (capabilities, cost score, tags) explicit for transparency and auditability.
Metadata
Frequently Asked Questions
What is Model Router?
Route model requests based on configured models, costs and task complexity. Use for routing general/low-complexity requests to the cheapest available model and for higher-complexity requests to stronger models. It is an AI Agent Skill for Claude Code / OpenClaw, with 3480 downloads so far.
How do I install Model Router?
Run "/install model-router-premium" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Model Router free?
Yes, Model Router is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Model Router support?
Model Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Model Router?
It is built and maintained by MrJootta (@mrjootta); the current version is v0.1.1.
More Skills