Smart Router Intents

Other

Route any query by intent. Code, analysis, creative, realtime, general. Each goes to the cheapest model that can handle it.

Install

openclaw skills install smart-router-intents

smart-router-intents

Route any query by intent. Code, analysis, creative, realtime, general. Each goes to the cheapest model that can handle it.

How it works

INPUT: any query
  ↓
Is it cached? → Return instantly (0 cost)
  ↓ if no
Detect intent:

CODE
  write / debug / refactor
  → Qwen3.5 Flash (fast) or Grok 4.20

ANALYSIS
  research / explain / compare / evaluate
  → Grok 4.20 (standard) or Opus 4.8 (deep)

CREATIVE
  write / brainstorm / design / draft
  → Grok 4.20

REALTIME
  news / prices / weather / current events
  → Grok 4.20 (live data)

GENERAL
  Q&A / summarize / translate / chat
  → Qwen3.5 Flash

Speed

Router adds 2ms. The rest is the LLM you'd wait for anyway.

SetupAverage wait per query
All Opus 4.845s
All Grok 4.2011s
With router~13s

What you save

SetupCost per 1k queries
All Opus 4.8$15
All Grok 4.20$4
All Qwen3.5 Flash$0.80
With router~$3

Intent detection detail

CODE
  Keywords: write, code, debug, fix, refactor, function, class, test
  → Qwen3.5 Flash (fast), Grok 4.20 (complex)

ANALYSIS
  Keywords: analyze, explain, compare, research, evaluate, assess
  → Grok 4.20. Opus 4.8 for audits.

CREATIVE
  Keywords: write a story, brainstorm, imagine, design, draft
  → Grok 4.20

REALTIME
  Keywords: now, today, current, latest, news, price, weather
  → Grok 4.20 (requires live data)

GENERAL
  Default. Simple Q&A, translate, summarize, chat
  → Qwen3.5 Flash

Usage

clawhub install smart-router-intents

Author

Created by CertainLogic — deterministic AI infrastructure. certainlogic.ai