Weave Router is an open-source model router for agentic applications that automatically selects an appropriate AI model for each request. It acts as a drop-in proxy for Anthropic, OpenAI, Gemini, and OpenAI-compatible providers. A lightweight local scorer evaluates each action and routes it among enabled models instead of relying on prompt-based model selection. It supports streaming, tool use, vision, and multiple API formats. Provider credentials remain local in self-hosted deployments and can be encrypted at rest. Built-in observability exposes routing decisions, costs, and OTLP traces through a dashboard or external monitoring tools. It integrates with Claude Code, Codex, OpenCode, Pi, Cursor, and custom applications.
Features
- Automatic per-request model routing
- Anthropic, OpenAI, Gemini, and OpenAI-compatible APIs
- Streaming, tools, and vision support
- Encrypted bring-your-own-provider credentials
- Local model-scoring engine
- Routing analytics, cost tracking, and OTLP observability