AI Summary

Overview

This repository provides a high-performance model router designed for agentic systems. It intelligently routes every prompt to the most suitable model, achieving this in under 50 milliseconds. By simply changing your endpoint, you can expect to cut costs by 40-70%.

Key Features

  • Action-Based Routing: Utilizes a sophisticated cluster scorer derived from Avengers-Pro to determine the optimal model for each upstream API request, rather than relying on simple turn-based logic.
  • Universal API Compatibility: Seamlessly integrates with Anthropic Messages, OpenAI Chat Completions, and Gemini native APIs, supporting streaming, tools, and vision capabilities.
  • Open Source Model Support: Empowers you to leverage open-source models like DeepSeek, Kimi, GLM, Qwen, Llama, and Mistral, either directly or through OpenRouter, or any OpenAI-compatible endpoint.
  • Enhanced Security: By default, provider API keys remain on your local machine, encrypted at rest, ensuring greater control and security.
  • Observability: Out-of-the-box OTLP traces are provided, allowing integration with popular monitoring platforms like Weave dashboard, Honeycomb, Datadog, and Grafana.
  • Effortless Deployment: Offers a quickstart via npx @workweave/router for instant setup with popular tools like Claude Code, Codex, opencode, and pi, with options for project-level scoping and custom base URLs.
  • Self-Hosting Option: Provides a straightforward make full-setup command to run the router and dashboard locally, with Postgres integration.

Typical Use Cases

  • Cost Optimization for LLM Applications: Significantly reduce operational expenses for applications relying on large language models by dynamically selecting the most cost-effective model for each task.
  • Building Sophisticated AI Agents: Create intelligent agents that can reliably leverage a diverse range of LLMs for specific functionalities, from complex reasoning to creative text generation.
  • Streamlining LLM Development Workflows: Simplify the integration of various LLM providers and models into development pipelines, offering a unified API endpoint for all model interactions.
  • Enhancing Real-time AI Services: Ensure low latency and responsiveness in applications requiring rapid model inference, such as chatbots, code assistants, and real-time content generation tools.
  • Securing API Key Management: Maintain strict control over sensitive API credentials by keeping them local and encrypted, ideal for enterprise environments and security-conscious developers.

Repository Trajectory

Trended #19 on daily

August 30, 2026

First tracked on GitTrend

August 30, 2026

Similar Projects

Select up to three alternatives to compare with this repository:

Loading README...

Contributors

Languages

Go

82%

Shell

6%

Python

2%

PLpgSQL

2%

TypeScript

8%

About

Model router for agentic systems. Routes every prompt to the right model in <50ms. Cut costs 40-70% with just an endpoint change.

Related Blogs

Topics

agentic-coding

ai-gateway

codex

claude-code

anthropic

model-router

openai-compatible

Contributors

Languages

Go

82%

Shell

6%

Python

2%

PLpgSQL

2%

TypeScript

8%