← 返回 Skills 市场
Smart Router
作者
samstone908
· GitHub ↗
· v1.0.0
462
总下载
0
收藏
2
当前安装
1
版本数
在 OpenClaw 中安装
/install smart-models
功能描述
Intelligent multi-model router — automatically selects the best AI model based on task type (vision, image generation, video generation, audio, reasoning, co...
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install smart-models - 安装完成后,直接呼叫该 Skill 的名称或使用
/smart-models触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
Initial release: intelligent multi-model router with 35+ models, 7 categories, @alias shortcuts
元数据
常见问题
Smart Router 是什么?
Intelligent multi-model router — automatically selects the best AI model based on task type (vision, image generation, video generation, audio, reasoning, co... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 462 次。
如何安装 Smart Router?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install smart-models」即可一键安装,无需额外配置。
Smart Router 是免费的吗?
是的,Smart Router 完全免费(开源免费),可自由下载、安装和使用。
Smart Router 支持哪些平台?
Smart Router 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Smart Router?
由 samstone908(@samstone908)开发并维护,当前版本 v1.0.0。
推荐 Skills