← 返回
效率工具 中文

OpenClaw Model Router Skill

Deterministic model routing for OpenClaw with prefix routing (@codex/@mini), timezone-aware schedule switching, verify-after-switch, rollback, lock protectio...
OpenClaw确定性模型路由:支持前缀路由(@codex/@mini)、时区感知调度切换、切换后验证、回滚及锁保护。
vulcanusalex
效率工具 clawhub v0.2.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 1,042
下载
💾 6
安装
1
版本
#latest

概述

OpenClaw Model Router Skill

Deterministic model routing with a closed-loop production switch pipeline.

Why use this skill

  • Explicit user intent routing (@codex, @mini)
  • Time-window model policy (router.schedule.json)
  • Safe switch flow with verification and rollback
  • Concurrency lock to prevent race conditions
  • Structured audit logs for operations and incident review

Core capabilities

1) Prefix routing

  • @codexopenai-codex/gpt-5.3-codex
  • @miniminimax/MiniMax-M2.5
  • Aliases: @c, @m

2) Scheduler routing

  • Rule-based windows by day/time/priority
  • Timezone-aware resolution (router.schedule.json.timezone)
  • Supports overnight windows (e.g. 18:00 → 09:00)

3) Production switch loop

  • schedule apply / schedule end
  • Auth gate (auth.requiredEnv[])
  • Switch + readback verify
  • Failure classification (auth_expired, rate_limit, provider_drift, unknown)
  • Optional rollback (safety.rollbackOnFailure)
  • Lock file (safety.lockPath) to avoid concurrent switching
  • Audit logs (router.log.jsonl + rotation)

Quick commands

# Validate config
node src/cli.js validate

# Route inspection
node src/cli.js route "@codex implement this" --json

# Scheduler
node src/cli.js schedule validate
node src/cli.js schedule resolve --at "2026-03-02T10:00:00+01:00" --json
node src/cli.js schedule apply --json
node src/cli.js schedule end --id workday_codex --json

Key config files

  • router.config.json (prefix map, retry, auth, safety, logging, controller)
  • router.schedule.json (timezone + rules)

Reliability checklist

  • Deterministic mapping
  • Idempotent switching behavior
  • Execute only after switch verification
  • Observable success/failure events
  • Recoverability on failure paths

Tests

node --test

版本历史

共 1 个版本

  • v0.2.1 当前
    2026-03-29 19:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

productivity

Weather

steipete
获取当前天气和预报(无需API密钥)
★ 444 📥 226,022
productivity

Nano Pdf

steipete
使用nano-pdf CLI通过自然语言指令编辑PDF
★ 274 📥 114,670
productivity

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 437 📥 146,948