← Back to Skills Marketplace
697
Downloads
0
Stars
3
Active Installs
2
Versions
Install in OpenClaw
/install openclaw-model-router-skill
Description
Deterministic model routing for OpenClaw with prefix routing (@codex/@mini), timezone-aware schedule switching, verify-after-switch, rollback, lock protectio...
Usage Guidance
This skill appears coherent and implements a local model router. Before installing or running in production: 1) Review router.config.json and router.schedule.json — confirm sessionController.binary points to a trusted binary (default 'openclaw') and that set/status args are correct. 2) If you populate auth.requiredEnv, only include the minimum secrets required and verify where those env vars are set. Child processes inherit process.env, so environment secrets will be exposed to the invoked binary. 3) The CLI writes lock and JSONL log files in the working directory by default; ensure file paths and rotation meet your operational policies. 4) Do not point sessionController.binary to an arbitrary or untrusted executable; that would let the skill run arbitrary commands. If you want extra assurance, run the tool in an isolated/test environment and audit the invoked binary's behavior before giving it access to production credentials or systems.
Capability Analysis
Type: OpenClaw Skill
Name: openclaw-model-router-skill
Version: 0.2.1
The OpenClaw Model Router skill is designed to manage and route AI models based on prefixes and schedules. It interacts with the OpenClaw agent by calling an external `openclaw` binary via `node:child_process.execFileAsync` (a safer execution method) and passes user prompt bodies to an abstract `taskExecutor.execute()` interface provided by the agent. All file system operations (for config, logs, and lock files) and external command executions are directly aligned with its stated purpose of model routing, switching, and auditing. There is no evidence of intentional harmful behavior such as data exfiltration, unauthorized persistence, or malicious prompt injection originating from the skill's own code or documentation. Potential vulnerabilities related to arbitrary command execution would stem from misconfiguration of the `sessionController.binary` path or a vulnerable implementation of the `taskExecutor` interface by the OpenClaw agent itself, rather than from malicious design within this skill.
Capability Assessment
Purpose & Capability
Name/description map to code and configs: prefix routing, schedule file, switch/verify/rollback flow, lock file and JSONL logging. The files and CLI implement exactly these features; required binaries and envs are configurable and default to safe values in the provided router.config.json.
Instruction Scope
SKILL.md commands and runbook instruct running the included CLI (node src/cli.js) and manipulating local config/schedule/log files. Runtime instructions do not request unrelated system data or external endpoints. They do call a local session controller binary (default 'openclaw') to query/set the active model, which is consistent with a model router.
Install Mechanism
No install spec (instruction-only distribution) — code is included in the package and intended to be run with node. No downloads or external installers are invoked. This is low risk given the code is present in the skill bundle and not fetched from arbitrary URLs.
Credentials
By default router.config.json.auth.requiredEnv is empty so no credentials are required. The code supports an auth.requiredEnv list which, if populated, will cause the CLI to check for those environment variables before switching. That's reasonable for an auth gate, but if you populate requiredEnv you should ensure only the needed secrets are present. Child processes inherit process.env when execFile is used, so any env secrets present will be visible to the invoked session-controller binary.
Persistence & Privilege
The skill does not request always:true and does not attempt to modify other skills or global agent configuration. It writes local lock and log files and reads local config/schedule files — behavior expected for a scheduler/router.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install openclaw-model-router-skill - After installation, invoke the skill by name or use
/openclaw-model-router-skill - Provide required inputs per the skill's parameter spec and get structured output
Version History
v0.2.1
优化ClawHub商店文案:生产闭环能力、风险控制与操作指南重构
v0.2.0
生产闭环:schedule apply/end、鉴权、验证、回滚、并发锁、审计日志与文档/配图更新
Metadata
Frequently Asked Questions
What is OpenClaw Model Router Skill?
Deterministic model routing for OpenClaw with prefix routing (@codex/@mini), timezone-aware schedule switching, verify-after-switch, rollback, lock protectio... It is an AI Agent Skill for Claude Code / OpenClaw, with 697 downloads so far.
How do I install OpenClaw Model Router Skill?
Run "/install openclaw-model-router-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is OpenClaw Model Router Skill free?
Yes, OpenClaw Model Router Skill is completely free (open-source). You can download, install and use it at no cost.
Which platforms does OpenClaw Model Router Skill support?
OpenClaw Model Router Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created OpenClaw Model Router Skill?
It is built and maintained by Tianqu (@vulcanusalex); the current version is v0.2.1.
More Skills