Skip to content

Jev directory

Pi TypeSafe Router — npmjs.com

Opt-in task routing for Pi: Jev classifies each request, then a deterministic policy sends it to one of three configured routes, with TypeSafe, Cloudflare, Vercel, and OpenRouter backends and a doctor command for checks.
Reading time
2 min
Published by
Community
Last verified
Oct 2026

Highlights

  • Install with pi install npm:pi-typesafe-router; setup creates ~/.pi/agent/typesafe-router.json, initially off.
  • Backends: TypeSafe (jev-1.13.0), Cloudflare AI Gateway (typesafe/jev), Vercel AI Gateway (typesafe-ai/jev), OpenRouter (typesafe/jev-1.13).
  • typesafe-router doctor tests the classifier and configured models with synthetic requests, without sending your conversation.
  • Ships with tests, architecture decision records, and a Pulumi-managed GitHub ruleset; npm run check runs offline tests, lint, formatting, and typechecking.
  • Live end-to-end tests need all five backend credentials and run only under TYPESAFE_ROUTER_LIVE_E2E=1.

Watch out

MIT, but the README says not to enable it alongside another automatic router. Doctor checks may incur provider charges, routing stays off until you flip it, and the classifier depends on live model responses, so its behavior is only as stable as the configured backends.

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.

Facebook: Intake Router keeps diagnosis out of the answer space at the front desk.

FacebookClinicnotes

X: OpenRouter Decision Model Rankings

X: herdr + jev, an agent router

X: A group chat bot with decision room routing

Other listings of this project

Forks and copies of this project in the directory. This entry is the canonical one.

0GitHub stars
A Pi coding-agent extension that uses Jev to classify each request and route it to one of three configured models. Supports TypeSafe, Cloudflare AI Gateway, Vercel AI Gateway and OpenRouter backends, with doctor checks, shadow mode and an off-by-default setup.
Jev Tools & CLIs#community#coding-agents#routing

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