NeuroRoute — Adaptive LLM Inference Router
by Anurag Jha
Route every request to the cheapest sufficient model tier, retrieval, tools, vision or audio path — under a validated, budget-capped execution graph with confidence scoring and full cost/latency traces.
Free
About this skill
NeuroRoute treats inference as a routing problem. Instead of sending every request to one fixed pipeline (usually the biggest model), a lightweight decision model decides how each request should be answered — which model tier, whether to retrieve, which tools to use, whether an image or audio file must be perceived first, and how much budget it may spend. A validator authorises the resulting execution graph before anything runs, and a confidence engine checks the outcome and escalates when it isn't good enough. The objective is quality per unit cost, measured against fixed always-large and always-medium baselines on identical datasets, with decision and verification overhead included in NeuroRoute's own totals.
The code is open source (the neuroroute repository by Anurag0018 on
GitHub). This skill is the operating manual: it installs, configures,
runs, and queries that platform. It does not reimplement it.
-
Install or run NeuroRoute locally (offline mock mode, or real local models via Ollama).
-
Send requests through NeuroRoute's REST API or its MCP server and read back the strategy, confidence, cost, and trace for each answer.
-
Preview a routing decision (
/route/preview) without executing it. -
Configure routing behaviour: decision model, DAG planner, embeddings, vector store, vision/audio models, API key, budgets and prices.
-
Reproduce the published benchmarks and test suite.
-
Routing strategies:
direct_small,rag_medium,verified_large,decomposed_research(parallel sub-questions merged by a large synthesis node),tool_assisted,vision_grounded,audio_grounded, andllm_dag(an LLM proposes the execution graph; a validator authorises it — it can never execute unchecked or escalate itself). -
Decision model: deterministic rules by default; an optional lightweight-LLM router (
NR_DECISION_MODEL=llm) behind the same interface. Deterministic guardrails (high-risk or document inputs) outrank any model. -
Tools (registered only): calculator (AST-evaluated, no
eval), datetime, and web search (DuckDuckGo). Free-form code execution is deliberately not offered. -
Retrieval: document ingestion (PDF/TXT/MD, ~1,200-character chunks), hashing embeddings by default, all-MiniLM-L6-v2 semantic embeddings when installed, in-memory vector store by default or Qdrant (
NR_VECTOR_STORE=qdrant). -
Confidence & verification: score = 0.35·evidence coverage + 0.25·validation + 0.20·retrieval relevance + 0.20·model agreement. Bands: return ≥ 0.85, verify 0.60–0.84, escalate < 0.60 (thresholds env-tunable). Verification is evidence- and rule-based, never a second LLM's opinion. Escalation is capped (budget-bound, at most one escalation per request by default policy).
-
Budgets: per-request caps on tokens, latency, modelled cost, model calls, and escalations, enforced at plan time and run time.
-
Observability: a full execution trace per request (spans, decision source, confidence, cost), a built-in dashboard, a Next.js web console, and Prometheus-format metrics.
-
Interfaces: REST (FastAPI) and MCP (stdio server,
mcp_server.py) over the same validated pipeline.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 9 days ago
- Free with an Agensi account
- Accounts
Duckduckgo
- Software
Python 3.10+
Git
- Optional
- Ollama
Node.js 18+
No API keys required; mock mode runs fully offline. Python 3.9 also works via the project's eval_type_backport dependency.
Permissions
Allowed Hosts
File Scopes
Reads NR_* environment variables to configure the local NeuroRoute server. Everything except the optional web-search tool runs on localhost (API on :8000, Ollama on :11434).
What's inside
Frequently Asked Questions
New in LLM Ops
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for LLM Ops.