A plugin for OpenClaw that automatically picks the best AI model for each conversation turn. Instead of manually switching between models, the router analyzes your prompt and routes it to the right model based on what you're asking. This doesn't use a cloud LLM for decision making and there is no cost associated with the decision. The plugin uses a local embedding model (you can provide example phrases to extend) and smart hueristics and scoring.
What it does (these are all confiugarable and customizable - can be any LLM local or cloud)
Coding questions go to Claude Sonnet 4.6 (strong at code generation and debugging)
Deep reasoning tasks go to Gemini 2.5 Pro (strong at analysis and multi-step logic)
Simple questions go to Gemini 2.5 Flash (fast, cheap, good enough for quick answers)
Creative writing goes to Claude Sonnet 4.6 (strong at prose, emails, blog posts)
The routing happens automatically on every turn. You can also force a specific route with slash commands like /coding, /reason, /simple, /creative, /action, /best, or /cheap (~ in telegram).
git https://github.com/alexspin/Model-Selection-Optimizer.git
npm: https://www.npmjs.com/package/model-selection-optimizer
maintainer: https://github.com/alexspin