A smart LLM routing and token cost optimization engine that dynamically matches task complexity to the most cost-effective model tier.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install token-router
Copy the skill folder to one of these locations
~/.openclaw/skills/ <project>/skills/ Priority: Workspace > Local > Bundled
Copy this prompt to OpenClaw to install it automatically.
Help me install token-router using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Token Router is an automated decision-making engine designed to optimize Large Language Model (LLM) selection and API token consumption across multi-agent workflows. Since flagship models can cost over 100 times more than lightweight alternatives, routing simple operations to cheaper models is paramount. This skill acts as an intelligent router, analyzing task parameters to maintain maximum quality while cutting operational expenses by 70% to 90%.
By leveraging structured complexity profiling, user preference tracking, and fallback safety protocols, Token Router integrates smoothly with modern development environments, agents, and CLIs. Developers can harness these capabilities to create highly efficient, budget-conscious AI implementations, making it one of the most powerful utilities available in the Openclaw Skills ecosystem.
Integrating Token Router into your multi-agent architecture or local environment is highly customizable. Depending on your choice of platform within Openclaw Skills, refer to the following setup guidelines:
Configure your model providers and routing cascading in your local config.yaml:
# config.yaml snippet
models:
providers:
openai: "openai/gpt-4o-mini"
anthropic: "anthropic/claude-3-5-sonnet"
routing:
strategy: balanced
fallback_enabled: true
For CLI tools like Claude Code or Codex, you can execute switches directly via command-line arguments:
# Switch to lightweight execution models
claude model claude-3-5-haiku
# Run a specific command with cost-optimization overrides
claude "Analyze code performance" --model claude-3-5-sonnet
The Token Router stores user preferences and behavioral context within the agent's memory or session state to personalize future routing decisions. The taxonomy of the data structure is as follows:
| Attribute Name | Data Type | Description | Allowed Values |
|---|---|---|---|
strategy |
String | Core optimization directive. | cost_first, quality_first, balanced, custom |
budget_usd |
Float | Optional monthly budget cap tracker. | Any positive decimal |
tier_overrides |
Map/Object | Manual model selections designated by user. | e.g., translation: L2 |
upgrade_history |
Array | List of instances where the user requested higher quality. | Array of strings/records |
{
"token_router_profile": {
"strategy": "balanced",
"budget_usd": null,
"tier_overrides": {},
"upgrade_history": []
}
}
Loading
A professional-grade public opinion and sentiment analysis report writer tailored for Chinese government and enterprise use, enhanced with multi-tool international media scraping.

An automated risk assessment tool for Binance Smart Chain (BSC) tokens that detects honeypots, high taxes, and potential rug pull vulnerabilities.

An AI-driven social content assistant designed to transform raw product information into fully optimized Japanese X/Twitter content plans, specialized for original goods and doujin merchandise.

An intelligent local-vault and live-search companion protocol tailored specifically for Hokkaido travel planning and budgeting.

The China Productivity Toolkit is a collection of essential everyday efficiency utilities optimized for Chinese localized environments, including express tracking, currency conversion, public holiday scheduling, and phone or IP geolocation lookups.

Generate publication-ready economic comparison charts and indexed plots using Federal Reserve Economic Data.








































