Model Router

v0.1.1

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.

11· 3.3k·19 current·20 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
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.
Assessment
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.

Like a lobster shell, security has layers — review code before you run it.

latestvk976a3vqpa6yy6c4jtmp2jfwr180q7gv

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Comments