Jev Router and AI Model Routing for Agents | AutoJev

Use Jev to route your coding agents. AutoJev is a free local gateway that picks a model for every request.

Jev Router is both a general decision pattern and a name used by several community tools. In the general pattern, Jev selects among models your application already permits. It evaluates the task, candidate capabilities, priorities, constraints and stakes, then returns a typed recommendation that the agent can inspect before starting expensive work.

The workflow question

Which approved model can handle this task without spending more time or money than necessary?

This is different from an unrestricted model marketplace. AutoJev does not add providers or credentials. The caller supplies the allowed candidates and keeps control over permissions, budgets and fallbacks.

Example model-routing input

json
{
  "task": "Review a complex customer dispute with 100k context and tool use",
  "candidates": [
    {
      "id": "fast-model",
      "description": "Fast general model with 32k context",
      "cost": "low",
      "latency": "low"
    },
    {
      "id": "reasoning-model",
      "description": "Strong reasoning, 200k context and tool use",
      "cost": "high",
      "latency": "medium"
    }
  ],
  "priorities": ["quality", "context", "tool_use", "cost"],
  "constraints": ["Customer data must remain within approved tools"],
  "stakes": "high"
}

An illustrative result shape is:

json
{
  "recommendation": "reasoning-model",
  "confidence": 0.84,
  "escalate": false,
  "guidance": "Use the selected approved model and preserve the stated constraints."
}

Actual answers and probabilities depend on the supplied state and configured Jev provider.

When to use Jev model routing

  • A product has several approved models with different capabilities.
  • Task context, tools or risk matter more than a static default.
  • Routing happens frequently enough that a full generative call is wasteful.
  • The workflow needs a probability or escalation signal, not only a model name.

Do not use semantic routing to bypass provider allowlists, residency rules, hard budgets or deterministic capability checks.

Open-source jev-router projects

Several independent projects use jev-router or JevRouter in their names:

  • gargpratyush/jev-router routes fresh Claude Code and OpenAI Codex turns across model tiers while preserving each CLI's native sessions, tools and permissions.
  • BillionsBobby/JevRouter describes a lightweight router for models, tools and subagents.
  • Other community projects apply Jev routing to LiteLLM, HTTP routes, skills or coding agents.

These repositories are separate community implementations, not one official Jev Router product and not part of AutoJev. Review each project's provider, credential handling, fallback policy and maintenance state before installing it. The Jev ecosystem guide explains how the names relate.

Jev Router production policy

A model router should combine semantic judgment with deterministic rules:

  1. Remove candidates that violate context, residency, permission or budget constraints.
  2. Ask Jev to choose among the remaining candidates.
  3. Keep the current or safe default model when the decision service fails.
  4. Avoid downgrading when low confidence or a large cached context makes switching risky.
  5. Record the candidate list, selected model, confidence and fallback reason.

Run the preset

Use POST /api/v1/decisions/model-route or open the model-routing example in the Playground. Agents can call the same decision through the AutoJev MCP server and the model-router Skill.

Related Jev resources

Frequently asked questions

Is this an LLM gateway?

No. AutoJev returns a routing recommendation. Your application still owns provider credentials, model invocation, retries and billing.

Can Jev choose a model that is not in the candidate list?

It should not. The candidate list is the bounded answer space supplied by the caller.

Should model routing replace hard constraints?

No. Enforce context limits, regional restrictions, permissions and budgets deterministically before or after the semantic recommendation.

Jev in practice

Put Jev to work routing Codex, Claude Code and your other agents.

AutoJev is a free, open-source desktop gateway. Its intelligent selection asks Jev which model fits each request — using routing metadata only, never your conversation.