npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@alexeiled/claude-router

v1.35.0

Published

Native Claude Code model and effort routing with Anthropic, DeepSeek, z.ai, MiniMax, MiMo and Kimi defaults, custom provider profiles, and classifier advice.

Readme

Claude Model Router

CI License: MIT

For Claude Code users with mixed work: each turn gets a fitting model and effort, picked automatically and shown above your prompt.

flowchart LR
  A["1 · Prompt<br/>“why does this test fail?”<br/>your classifier rates tier and activity"]
  B["2 · Route<br/>Opus 5.5 · xhigh<br/>local rules weigh cache, context, holds, policy"]
  C["3 · Turn<br/>Claude Code runs it<br/>the band shows the route and why"]
  A --> B --> C

Illustrative example. No proxy; prompt text goes to the classifier you choose.

Quick start

You need a Claude Code version at or above MIN_CLAUDE_CODE in lib/config.mjs (on an older one the router names that minimum and keeps Claude's model), and credentials for one classifier or a local Ollama model.

claude plugin marketplace add alexei-led/claude-router
claude plugin install router@alexei-led-claude-router
claude --model claude-haiku-5-5

In Claude Code, run /plugin configure router and save the credentials. Jev is the default classifier; to use another, select it on the Classifier tab of the /router pane. Before the first turn, the band above the prompt shows a dim tier meter, the model, ready and the routing mode, such as balanced. Send a prompt. /router off stops routing. Desktop app and VS Code set-up.

See where your turns went

Now: the next turn's route and why, plan usage, context, this session. Sample data.

Usage: estimated cost against no routing for the same tokens. Sample data, not a measured saving.

Anthropic defaults: Haiku 5.5 for the micro and low tiers, Opus 5.5 for medium and high; some kinds of work use Sonnet 5.5 or Haiku instead. All routes.

Savings and answer quality are not measured; costs shown are list-price estimates. Evaluation.

Control it

| To | Do | | ---------------------------------- | ---------------------------------------------------------------------------------------- | | Open the pane | /router, or Router on the band | | Turn routing on or off | /router on, /router off | | Pin the next turn to a tier | /router pin <micro\|low\|medium\|high>, or the pin control | | Lean cheaper or stronger | /router mode cost\|balanced\|quality | | Move one turn from the prompt | Start it with morethink, highthink, maxthink, lessthink, lowthink or nothink | | See why each turn ran where it did | /router decisions |

Classifiers and privacy

| Classifier | Credential | Prompt text goes to | | ----------------------------------------------------- | ----------------------------------- | --------------------- | | Jev, the default (typesafe.ai) | Jev API key | typesafe.ai | | Clef, Clef Flash, Clef Omni | Cloudflare API token and account ID | Cloudflare | | OpenAI, gpt-6-luna | OpenAI API key | OpenAI | | Ollama, a local model | None | Stays on this machine |

Only the active classifier receives text: the prompt and recent dialogue at each new turn and again during long turns, and each routed subagent's task ("subagentRouting": "off" keeps that local).

Go further

Several providers in one session: use claude-proxy, one local Anthropic API endpoint for Claude Code and multiple native model providers. With it and the model-proxy profile, one session can route turns across providers and mix your Claude subscription with API-key providers such as DeepSeek. It is a separate, optional program; the router itself does not proxy traffic. Mix providers.