Skip to main content

Install RouteLLM

Start RouteLLM Server

Environment Variables

Router Options

Threshold Configuration

The threshold (0.0-1.0) controls routing:
  • 0.0: Always use weak model
  • 1.0: Always use strong model
  • 0.5: Balanced (default)

Multi-Agent Example

Workflow Example

Server with Custom Models

Docker Deployment

Config File

Create config.yaml:
Start with config:

API Compatibility

RouteLLM server is OpenAI-compatible. Use with any OpenAI client:

Cost Savings

RouteLLM can reduce costs by up to 85% while maintaining 95% quality on benchmarks.