← Back to Skills Marketplace
Smart Router
by
samstone908
· GitHub ↗
· v1.0.0
462
Downloads
0
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install smart-models
Description
Intelligent multi-model router — automatically selects the best AI model based on task type (vision, image generation, video generation, audio, reasoning, co...
Usage Guidance
This skill is plausible for routing prompts to different LLM/image/video/audio providers, but there are a few issues to check before installing:
- Metadata mismatch: the registry claims no required env vars or binaries, but the scripts require SMART_ROUTER_BASE_URL and SMART_ROUTER_API_KEY and rely on curl, jq, and base64. Ask the publisher to update the manifest to declare these requirements.
- Trust the provider URL: the skill will send all prompts, attached images, and any content to whatever BASE_URL you configure. Only point it at an API endpoint you trust (your provider, not an unknown third-party URL). Consider using a monitored proxy if you must use an unfamiliar endpoint.
- Temporary files: generated images/audio are written to /tmp. If you handle sensitive data, clear these files after use or run in an environment where /tmp is secure.
- Minimal runtime review: the shell scripts are readable and perform straightforward curl calls, but they run arbitrary model IDs from models.json. Review and edit models.json to whitelist only providers/models you want to allow.
If you cannot confirm the publisher or don't want user content sent to an arbitrary endpoint, do not install. If you proceed, require the author to correct the manifest and consider running the skill in a restricted/test environment first.
Capability Analysis
Type: OpenClaw Skill
Name: smart-models
Version: 1.0.0
The OpenClaw Smart Router skill is designed to route user requests to various AI models via an OpenAI-compatible API. The `SKILL.md` grants `Bash(smart-router:*)` permissions, which is broad but necessary for the skill's functionality. The `scripts/call-model.sh` and `scripts/sync-models.sh` scripts handle user input (e.g., prompt, model ID) by constructing JSON payloads using `jq --arg` and `jq --argjson`, which correctly escapes strings and prevents shell injection vulnerabilities. API keys and base URLs are securely retrieved from environment variables, which is standard practice. There is no evidence of intentional malicious behavior such as data exfiltration, persistence, or unauthorized remote control, and the code appears to mitigate common injection risks.
Capability Assessment
Purpose & Capability
The name/description (multi-model router for OpenAI-compatible APIs) match the included scripts and models.json: the skill needs a provider base URL and API key to call models, which is appropriate for the stated purpose. However, the registry metadata declares no required environment variables or binaries even though SKILL.md and the scripts explicitly require SMART_ROUTER_BASE_URL and SMART_ROUTER_API_KEY and use curl, jq, base64 — this metadata omission is inconsistent and reduces trust.
Instruction Scope
SKILL.md and the scripts limit actions to selecting models from models.json and calling the configured provider endpoints. They do not instruct the agent to read unrelated user files or fetch external endpoints beyond the configured BASE_URL. The scripts do write temporary files (/tmp/smart-router-*.png, /tmp/smart-router-tts-*.mp3, /tmp/smart-router-models.json), which can persist user content locally.
Install Mechanism
There is no install spec (instruction-only with shipped scripts), so nothing is fetched or installed at install time. This is lower risk than arbitrary downloads. The presence of executable shell scripts means code will run on the agent host when invoked.
Credentials
The runtime requires SMART_ROUTER_BASE_URL and SMART_ROUTER_API_KEY (provider base URL and API key) — appropriate for a router — but the skill registry lists no required env vars and no primary credential. The mismatch is concerning because users may not realize they must supply an API key, and the skill will send user prompts and any attached images to the configured BASE_URL (an arbitrary endpoint the user supplies). No other unrelated secrets are requested, but the declared metadata should explicitly list these env vars and the expected scope of the API key.
Persistence & Privilege
The skill does not request always:true and is user-invocable. It does not modify other skills or agent-wide settings. It writes temporary outputs to /tmp but does not attempt persistent auto-enablement or cross-skill config changes.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install smart-models - After installation, invoke the skill by name or use
/smart-models - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release: intelligent multi-model router with 35+ models, 7 categories, @alias shortcuts
Metadata
Frequently Asked Questions
What is Smart Router?
Intelligent multi-model router — automatically selects the best AI model based on task type (vision, image generation, video generation, audio, reasoning, co... It is an AI Agent Skill for Claude Code / OpenClaw, with 462 downloads so far.
How do I install Smart Router?
Run "/install smart-models" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Smart Router free?
Yes, Smart Router is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Smart Router support?
Smart Router is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Smart Router?
It is built and maintained by samstone908 (@samstone908); the current version is v1.0.0.
More Skills