← Back to Skills Marketplace
digitaladaption

Model Router

by digitaladaption · GitHub ↗ · v1.1.0
cross-platform ⚠ suspicious
4875
Downloads
5
Stars
53
Active Installs
2
Versions
Install in OpenClaw
/install model-router
Description
A comprehensive AI model routing system that automatically selects the optimal model for any task. Set up multiple AI providers (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM) with secure API key storage, then route tasks to the best model based on task type, complexity, and cost optimization. Includes interactive setup wizard, task classification, and cost-effective delegation patterns. Use when you need "use X model for this", "switch model", "optimal model", "which model should I use", or to balance quality vs cost across multiple AI providers.
Usage Guidance
Review before installing if you handle private, regulated, or business-sensitive data. Only configure provider keys you are comfortable storing locally, restrict access to ~/.model-router, verify each provider is approved for the data you route, and do not rely on the documented model aliases until the alias-to-model mapping is corrected.
Capability Analysis
Type: OpenClaw Skill Name: model-router Version: 1.1.0 The skill is classified as suspicious due to its inherent high-risk capability of collecting and locally storing sensitive API keys for multiple AI providers (e.g., Anthropic, OpenAI, Gemini). While the `scripts/setup-wizard.py` script implements security best practices like using `getpass` for input and setting restrictive file permissions (0o600) on the `~/.model-router/.api-keys` file, the handling of such credentials always presents a significant risk. There is no clear evidence of intentional malicious behavior like exfiltration or unauthorized execution within the provided code or documentation, but the presence of this sensitive capability without explicit API call logic to external endpoints in the provided files, makes it a 'risky capability without clear malicious intent'.
Capability Assessment
Purpose & Capability
The main purpose is coherent: configure providers, classify tasks, and recommend/spawn model-specific sessions. However, the model-spec reference maps several different personas to the same underlying model while describing different quality, cost, and safety-relevant routing behavior.
Instruction Scope
The activation language is broad, but it is mostly aligned with model-routing requests. The documented commands are user-directed rather than hidden automatic execution.
Install Mechanism
No install hook, obfuscated loader, or automatic package execution was found. Setup is manual via the documented Python wizard.
Credentials
The setup wizard collects provider API keys and stores them locally with restrictive permissions, which is expected for the purpose. The larger concern is under-disclosure that routed prompts, attachments, logs, emails, documents, or business data may be sent to external AI providers.
Persistence & Privilege
The skill creates persistent files under ~/.model-router for config and API keys and uses 0o700/0o600 permissions. There is no evidence of background persistence beyond user-invoked spawned sessions.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install model-router
  3. After installation, invoke the skill by name or use /model-router
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.1.0
Major update v1.1: Added interactive setup wizard for secure API key configuration, multi-provider support (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM), task-to-model mapping customization, cost optimization levels (aggressive/balanced/quality), enhanced security with file permissions (600), comprehensive documentation with provider comparison tables, troubleshooting guide, and usage examples.
v1.0.0
Initial release - route tasks to optimal models based on complexity
Metadata
Slug model-router
Version 1.1.0
License
All-time Installs 183
Active Installs 53
Total Versions 2
Frequently Asked Questions

What is Model Router?

A comprehensive AI model routing system that automatically selects the optimal model for any task. Set up multiple AI providers (Anthropic, OpenAI, Gemini, Moonshot, Z.ai, GLM) with secure API key storage, then route tasks to the best model based on task type, complexity, and cost optimization. Includes interactive setup wizard, task classification, and cost-effective delegation patterns. Use when you need "use X model for this", "switch model", "optimal model", "which model should I use", or to balance quality vs cost across multiple AI providers. It is an AI Agent Skill for Claude Code / OpenClaw, with 4875 downloads so far.

How do I install Model Router?

Run "/install model-router" 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 digitaladaption (@digitaladaption); the current version is v1.1.0.

💬 Comments