Enterprise DNA Enterprise DNA
O Open Source Observability medium

claude-router

by Community

claude-router is a local prompt router that picks the right Claude model tier and prepends the right scaffold using local embeddings before you call the API. A deterministic routin

OSS

claude-router

Added 4 Oct 2026

#ai-reliability #anthropic #claude #cost-optimization #developer-tools #embeddings #hermes-labs #llm

Overview

claude-router is a local prompt router that selects a Claude model tier and prepends a scaffold to prompts before API calls. It uses local embeddings to deterministically route eval, research, content, and review prompts, aiming to reduce spend on Sonnet and Opus when Haiku plus structure suffices.

Best for

Best for
Teams using Claude APIs who want to cut token costs on structured, repetitive prompts.

Use cases

  • Route eval prompts to Haiku with a scaffold
  • Cut costs on research prompts by using Haiku
  • Standardize content and review prompts before API calls

Notes

claude-router is a local prompt router that selects a Claude model tier and prepends a scaffold to prompts before API calls. It uses local embeddings to deterministically route eval, research, content, and review prompts, aiming to reduce spend on Sonnet and Opus when Haiku plus structure suffices.

1 stars on GitHub. Last updated 2026-09-29. Licensed MIT.

Use cases

  • Route eval prompts to Haiku with a scaffold
  • Cut costs on research prompts by using Haiku
  • Standardize content and review prompts before API calls

Pros

  • Reduces API spend by routing simple prompts to cheaper model tiers
  • Keeps routing logic local with embeddings
  • Open source Python tool for Claude workflows

Cons

  • Only supports Claude models
  • Requires local embedding setup and maintenance
  • Early stage project with minimal community traction

Indexed from awesome-llmops and enriched against its public facts.

Pros

  • Reduces API spend by routing simple prompts to cheaper model tiers
  • Keeps routing logic local with embeddings
  • Open source Python tool for Claude workflows

Cons

  • Only supports Claude models
  • Requires local embedding setup and maintenance
  • Early stage project with minimal community traction
Free 27-page guide

Get the free Developer’s Field Guide

A 27-page field guide to the AI coding workflow with Claude. Claude Code, MCP servers, the prompt patterns that work, and what to delegate. Free.

Enter your work email. We send it straight over, plus a few short notes worth knowing. Unsubscribe any time.

No spam. Unsubscribe any time.