router-rule-tuner

Analyze OpenClaw Router decision logs to optimize routing configurations.

6|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/sparrowzhou/OpenClawRouter --skill router-rule-tuner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: router-rule-tuner
Source: https://github.com/sparrowzhou/OpenClawRouter/tree/main/skills/router-rule-tuner
Command: npx skills add https://github.com/sparrowzhou/OpenClawRouter --skill router-rule-tuner

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires fs, os, path, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of inefficient AI model routing, helping to reduce API token usage and ensure optimal model selection for different tasks without sacrificing quality.

Core Features & Use Cases

  • Log Analysis: Analyzes OpenClaw Router decision logs to identify routing patterns and inefficiencies.
  • Threshold Tuning: Recommends adjustments to router thresholds, weights, and keywords to favor local models for simpler tasks.
  • Cost Optimization: Aims to reduce paid API model usage by intelligently keeping requests on local models where appropriate.
  • Use Case: After observing that many simple user queries are being routed to expensive API models, you can use this Skill to analyze the logs and receive recommendations on how to adjust the router's configuration to send these queries to a local model instead, thereby saving costs.

Quick Start

Use the router-rule-tuner skill to analyze the decision logs and suggest configuration adjustments.

Frequently Asked Questions about router-rule-tuner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize AI routing configurations to reduce API token costs?

To optimize AI routing configurations, you must analyze router decision logs to identify borderline scores and adjust thresholds, weights, and keywords. This process shifts simple queries to local models, reducing paid API token usage without sacrificing output quality.

How does log analysis help identify inefficient model selection in OpenClaw Router?

Log analysis identifies inefficient model selection by examining routing patterns and borderline decision scores within OpenClaw Router logs. It reveals when simple queries are unnecessarily routed to expensive API models instead of local models.

What do I need to tune router thresholds and shift requests to local models?

To tune router thresholds and shift requests to local models, you need access to historical OpenClaw Router decision logs and the current OpenClaw configuration file. These inputs allow the system to map usage patterns and suggest precise weight adjustments.

Can I use configuration tuning to favor local models without degrading response quality?

Configuration tuning can favor local models without degrading quality by analyzing borderline decision scores in router logs. It intelligently shifts only appropriate simple tasks to local models by adjusting specific keywords and thresholds based on actual usage patterns.

What is the best way to analyze OpenClaw Router decision logs for cost-efficiency?

The best way to analyze OpenClaw Router decision logs for cost-efficiency is to process usage patterns and borderline decision scores directly. This approach pinpoints exact threshold and weight modifications needed to keep simple requests on local models.

Why does my router keep sending simple queries to expensive API models?

Your router sends simple queries to expensive API models because current thresholds and weights are misconfigured for your usage patterns. Analyzing borderline decision scores in logs identifies the exact configuration adjustments needed to reroute them locally.