Skip to content

JAiRouter

AI Model Service Unified Gateway
Connect to all models with a single line of code

Quick StartConfigurationGitHub


🎯 Core Value

FeatureDescription
🔌 Unified APIOpenAI-compatible interface, seamlessly connect to Ollama, vLLM, GPUStack, etc.
⚖️ Smart Load Balancing5 strategies for automatic request distribution, health checks to remove failed nodes
🛡️ Traffic ControlRate limiting, circuit breaking, degradation for service stability
🔐 Dual AuthenticationJWT + API Key with audit logs and blacklist support
📊 Full-chain TracingOpenTelemetry integration, performance bottlenecks at a glance
💾 State PersistenceRedis / file storage, supports high-availability cluster deployment

🏗️ Architecture Overview

┌─────────────────┐     ┌─────────────────────┐     ┌─────────────────┐
│   OpenAI SDK    │────▶│     JAiRouter       │────▶│    Ollama       │
│   Langchain     │     │  • Load Balancing   │     │    vLLM         │
│   HTTP Client   │     │  • Rate Limiting    │     │    GPUStack     │
└─────────────────┘     │  • Authentication   │     │    Xinference   │
                        └─────────────────────┘     └─────────────────┘

⚡ 1-Minute Quick Start

# Start the service
docker run -d --name jairouter -p 8080:8080 sodlinken/jairouter:latest

# Access the console
open http://localhost:8080

📚 Quick Navigation

I want to...Recommended Docs
Get started quicklyQuick Start Guide
Deploy in productionDeployment Guide
Configure servicesConfiguration Guide
Integrate via APIAPI Reference
Set up monitoringMonitoring Guide
Troubleshoot issuesTroubleshooting

📈 Project Status

GitHub starsDocker PullsLicense

LTS Release: v2.6.11 is the final Long-Term Support version, maintained until 2028-05


🔧 Supported Backends

BackendDescription
GPUStackGPUStack private model service
OllamaLocal LLM runtime
vLLMHigh-performance LLM inference engine
XinferenceDistributed model inference framework
LocalAIOpenAI-compatible local inference
OpenAIOfficial OpenAI API

🤝 Community Support


If JAiRouter helps you, please give it a ⭐️ Star!