# NeuroRoute — Adaptive LLM Inference Router

> 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.

NeuroRoute — Adaptive LLM Inference Router is a free AI agent skill on Agensi by Anurag Jha, in LLM Ops. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Anurag Jha](https://www.agensi.io/creators/anurag-jha)
- Category: [LLM Ops](https://www.agensi.io/skills/llm-ops)
- Version: 1.0
- Last updated: 2026-11-25
- Security: scan passed (2026-11-25); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/neuroroute-adaptive-llm-inference-router
- Tags: llm-ops, agents-orchestration

## 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`, and `llm_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.

## Requires

- Python 3.10+
- Git
- Optional: Ollama
- Optional: 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.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the NeuroRoute — Adaptive LLM Inference Router skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What does NeuroRoute — Adaptive LLM Inference Router do?

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.

### Which AI agents support NeuroRoute — Adaptive LLM Inference Router?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use NeuroRoute — Adaptive LLM Inference Router?

Connect your AI agent to Agensi through MCP, then ask it to use NeuroRoute — Adaptive LLM Inference Router on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
