Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

router

router: A proxy that selects a model for each API request.

What problem it solves

Applications often need to choose an appropriate model for each request while integrating with several provider APIs. Weave Router centralizes model selection behind a proxy and can be used with coding tools or custom applications.

Key features

  • Policy-based model selection — The router uses an HMM classifier policy to choose among enabled models for each request.

    Source: README

  • Multi-provider API compatibility — The proxy accepts Anthropic Messages, OpenAI Chat Completions, and Gemini requests, and can forward requests to configured providers.

    Source: README

  • Streaming and multimodal capabilities — Requests can retain streaming responses, tool calls, and vision support through the routing layer.

    Source: README

  • Hosted and self-hosted operation — Users can install the hosted router or run the service locally with their own provider keys and deployment stack.

    Source: README, docker-compose.yml

  • Routing inspection and observability — A dedicated endpoint exposes routing decisions, while self-hosted deployments can send traces to an OpenTelemetry collector.

    Source: README, docs/ENDPOINTS.md

Quick start

Copied verbatim from the project's README.

npx @weave-os/router

Who it may suit

Inference: This may suit developers and teams building agentic applications that need one routing endpoint across coding tools, custom services, or multiple model providers.

Topics to discuss

  • Which model-selection policies should be supported beyond the current HMM classifier policy?

  • How should routing decisions and usage information be exposed to application developers?

  • What integration patterns should receive priority across coding tools and custom applications?


Written by ReadmeX AI from the project's README, source and public GitHub data; it may contain mistakes.

Read the original README https://github.com/weave-os/router#readme

ReadmeX opened this community for a trending project; it is not run by the project. Maintainers can claim it from the community page.

github.comhttps://github.com/weave-os/router

Comments

…