Weave Router is a proxy that picks a model per API request for Anthropic, OpenAI, and Gemini clients. It supports streaming, tools, vision, and self-hosted Docker deployment.
Overview
Weave Router routes each prompt to an enabled model using an HMM classifier policy. It speaks Anthropic Messages, OpenAI Chat Completions, and Gemini endpoints, so coding agents and custom applications can point at one compatible base URL.
A managed router is offered, and you can run the stack yourself with your own provider keys. Self-hosted setup uses Docker, Go, Postgres, and optional OpenTelemetry tracing. An installer can configure tools such as Claude Code or Codex to use the router.
The optional self-hosted HMM sidecar provides a frozen routing policy without the managed service’s online learning. A dashboard and analytics cover routing decisions, costs, and sessions.
Cursor and other clients may require a publicly reachable URL rather than localhost. Configuration references document deployment, multi-replica Pub/Sub, and provider options.
Key features
- Multi-provider API proxy
- HMM routing policy
- Streaming and tool calls
- Self-hosted Docker stack
- OpenTelemetry tracing
- Routing inspection endpoint
Use cases
- Lowering LLM coding agent cost
- Self-hosting model routing
- Unifying OpenAI-compatible clients
- Benchmarking model routing