微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

OpenClaw Model Router Skill

OpenClaw Model Router Skill · v0.2.1
安全 unknown 级 作者 vulcanusalex 公开目录收录
1.2k 下载 0 安装 4k 收藏 5 浏览

简介

OpenClaw Model Router Skill

原始描述

Deterministic model routing for OpenClaw with prefix routing (@codex/@mini), timezone-aware schedule switching, verify-after-switch, rollback, lock protectio...

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/openclaw-model-router-skill/
其它 Agent解压到它自己的 skills 目录,目录名用 openclaw-model-router-skill

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

技能正文


name: openclaw-model-router-skill description: Production-grade model router for OpenClaw: prefix routing (@codex/@mini), timezone-aware schedule switching, verify-after-switch, rollback, lock protection, and JSONL audit logs.

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
  • @codex → openai-codex/gpt-5.3-codex
  • @mini → minimax/MiniMax-M2.5
  • Aliases: @c, @m
  1. 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)
  1. 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

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill