CertainLogic Smart Router

# CertainLogic Smart Router

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "CertainLogic Smart Router" with this command: npx skills add certainlogicai/certainlogic-smart-router

CertainLogic Smart Router

Route queries to the right model tier. Save money without thinking about it.

v1.0.0

Built and dogfooded by CertainLogicAI — Keyword routing. Not AI. Not magic. Just cheaper.


What It Actually Does

A deterministic keyword + regex router that classifies your query and recommends the best LLM tier:

  • cheap — Simple lookups, greetings, short answers
  • default — Standard tasks, explanations, drafting
  • powerful — Complex reasoning, architecture, strategy

It supports built-in profiles (coding, research, marketing, general) and custom profiles via JSON.

What It Does NOT Do

Claimed FeatureReality
AI-powered or learned routingNO — Pure keyword + regex matching (deterministic)
Automatic LLM API callsNO — Returns recommendation only. You call the model.
Built-in caching (v1)NO — Caching layer planned for v1.1
Guaranteed perfect routingNO — Simple heuristics. Edge cases may misroute.
Multi-provider auto-selectionNO — Works with any models (you map tiers to models)

How to Use

Standalone CLI

python3 scripts/smart_router.py "Write a Python function to parse JSON"

In Your Agent (example)

from smart_router import SmartRouter

router = SmartRouter()
result = router.route("Design a distributed system")

if result["model_tier"] == "cheap":
    model = "anthropic/claude-haiku-4-5"
elif result["model_tier"] == "default":
    model = "anthropic/claude-sonnet-4-6"
else:
    model = "anthropic/claude-opus-4-6"

# Then call your LLM with the chosen model

Override Flags

  • --cheap — Force cheap tier
  • --powerful — Force powerful tier
  • --config my_profiles.json — Use custom profiles

Honest Limitations

  • Static keyword lists (update config for new domains)
  • English only (patterns tuned for English)
  • Returns recommendation only (no API calls)
  • Simple heuristics — will misroute edge cases (override flags exist)
  • No built-in usage analytics or dynamic learning in v1

Free vs Pro

Free (this skill)

  • 4 built-in profiles
  • Custom config support
  • Override flags
  • Full source code on GitHub

Pro ($29 one-time)

  • Dynamic feedback loop (track what actually worked)
  • Usage analytics + monthly savings report
  • Auto-optimization using our benchmarks
  • Fallback chains and team profiles
  • Priority support

Example Savings

Scenario: 100 queries/day (estimates)

Without RouterWith Router
100 × Opus60 × Haiku + 30 × Sonnet + 10 × Opus
~$150/day~$120/day
Savings: ~20%

Note: Actual savings depend on your query mix. Test with our benchmarks.

Recommended Next Steps (CertainLogic Stack)

  • Skill Vetter Plus — Scan before installing anything new
  • Token Reduction Engine — Keep sessions lean and cheap
  • AgentPathfinder — Verifiable task tracking
  • Skill Oracle — Honest skill recommendations

All work great together.

Open Source Core

Links


Built by CertainLogicAI. We dogfood every skill we publish and fix issues transparently.

Version

latest v1.0.0

Runtime Requirements

Python 3.10+, zero external dependencies

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

Peon Ping for Openclaw

Install and configure PeonPing with an opinionated default (Orc Peon voice) so alerts work immediately with minimal user friction. Use when the user asks for...

Registry SourceRecently Updated
General

Openclaw Skill Publish

Polymarket prediction markets: analytics, trading, hot markets, price movements, top traders, and market search. Powered by prob.trade.

Registry SourceRecently Updated
General

post-to-xhs

小红书内容发布与管理助手。当用户要求登录、发小红书、搜索小红书、评论点赞收藏等任何小红书相关操作时使用。

Registry SourceRecently Updated
General

Chat History Analyzer

Extracts and analyzes Cursor IDE chat history to identify key discoveries, obstacles, and solutions, saving findings to the journal.

Registry SourceRecently Updated