A local-first routing engine that prioritizes privacy and cost-efficiency by intelligently escalating LLM requests to the cloud only when necessary.
The fastest way to install a skill directly from the registry.
npx clawhub@latest install adaptive-routing
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 adaptive-routing using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).
Get the raw skill files in a ZIP archive.
Adaptive Routing is a sophisticated orchestration layer designed to optimize how AI agents interact with language models. By leveraging the Openclaw Skills framework, this tool implements a local-first strategy that attempts to fulfill requests using local providers like Ollama, LM Studio, or llamafile before considering expensive cloud APIs. It acts as an intelligent gateway, evaluating every prompt for data sensitivity and task complexity to ensure that private data stays on-premise and simple tasks don't incur unnecessary costs.
Beyond simple routing, this skill incorporates a rigorous quality gate. Every local response is validated against performance benchmarks; if a local model produces an empty response or fails a tool call, the system automatically escalates the request to a cloud provider. This ensures a seamless developer experience where reliability is never sacrificed for efficiency. All activities are recorded, providing users with a comprehensive dashboard to visualize their token savings and operational metrics within the Openclaw Skills ecosystem.
To begin using this skill within the Openclaw Skills environment, ensure Python 3 is installed. First, verify your local LLM status:
python3 skills/adaptive-routing/scripts/check_local.py
Next, configure your routing preferences by editing the configuration file located at ~/.openclaw/adaptive-routing/config.json:
{
"complexity_threshold": 3,
"token_high_watermark": 4000,
"redact_output": true
}
You can then run your first routed request using the following command:
python3 skills/adaptive-routing/scripts/route_request.py --prompt "Summarize this text" --tokens 500 --local-available
Adaptive Routing organizes its operational data into two primary JSON files to maintain state and configuration within Openclaw Skills.
| File Name | Description | Key Attributes |
|---|---|---|
config.json |
Defines the logic for routing decisions and privacy. | complexity_threshold, redact_output, token_watermarks |
savings.json |
Stores historical data for the dashboard. | local_success_count, escalated_count, total_tokens_saved, cost_usd |
Loading
A powerful integration for querying Supabase projects and generating user analytics directly from your chat interface.

A comprehensive CLI tool for tracking Polymarket prediction markets, monitoring price momentum, and simulating trades via a local paper trading system.

A high-accuracy web search API optimized for AI agents to perform deep research with rich excerpts and citations.

Transform public web content into clean, LLM-ready Markdown for efficient AI data ingestion and processing.

A smart routing agent that prioritizes local LLMs over cloud APIs to reduce costs and enhance data privacy.

A transparent desktop overlay featuring a pixel art lobster that provides real-time lip-syncing for AI agent speech output.








































