Skip to content

Jev directory

Agent Router

A local-first Herdr CLI that filters your agent subscriptions with fixed eligibility rules, then asks TypeSafe Jev to rank the remaining Cursor, Claude Code, Codex, or OpenCode options and pick a reasoning effort.
Stars
115
Language
TypeScript
License
MIT
Reading time
3 min
Published by
Community
Author
nidhi-singh02
Last verified
Sep 2026

About this project

Local-first, quota-aware routing for AI coding agents in Herdr. router is a command-line tool that picks an AI coding agent, model, and reasoning effort for a task, then starts that agent for you in a Herdr pane. It filters your subscriptions with fixed rules (enabled models, quota, the 40% reserve on shared accounts), asks TypeSafe to rank what is left and choose an effort, starts the chosen agent (Cursor, Claude Code, Codex, or OpenCode), and hands it the task.

Quoted from the project's README. Read the full README.

Highlights

  • Eligibility rules run before semantic ranking: enabled models, quota, and a 40% reserve on shared accounts are applied locally.
  • Routing always calls TypeSafe, and each run sends the task text; recognizable credentials are rejected locally before the request.
  • Supports Cursor, Claude Code, Codex, and OpenCode through one router run command, using existing agent logins rather than provider keys.
  • Ships as a Herdr plugin via herdr plugin install nidhi-singh02/agent-router, and router run only launches from inside a Herdr pane.
  • Local usage snapshots, decisions, and session history stay on the machine; Node.js 20 or newer is required.

Quickstart

bash
git clone https://github.com/nidhi-singh02/agent-router.git
cd model-router
npm install
npm run build
npm link -w @agent-router/router
export MODEL_ROUTER_HOME="$HOME/Code/model-router/.model-router"
router run "implement the approved plan in docs/plans/billing.md"

Watch out

MIT-licensed and marked pre-release. Needs Node.js 20+, a TypeSafe API key with no fallback, at least one logged-in agent CLI, and Herdr to launch agents.

Questions about this entry

Short answers drawn from the linked project or page.

Reactions & coverage

Posts, threads, and videos about this entry from around the web.

X: A usage router for Grok Bot

X: A prompt box that fills itself in

X: How Jev makes agents faster and cheaper

YouTube: CJ from Syntax demos browser use, classification, code review, a model router, and a chat bot with no LLM.

From the Jev guides

Original write-ups on what this entry is for.

From the Jev AI model community

Posts from builders shipping with Jev right now.

Follow @typesafeai