Self-host SmarterRouter
2.2.5Intelligent LLM router with automatic model selection
docker-compose up -d- Stars
- 154
- Port
- 11436 (HTTP API (OpenAI-compatible))
ghcr.io/peva3/smarterrouter:latestWhat is SmarterRouter?
SmarterRouter is a self-hosted AI gateway that automatically directs each prompt to the most suitable language model. It connects to local backends such as Ollama and llama.cpp as well as cloud APIs from OpenAI, Anthropic, Google, Cohere, and Mistral. The router discovers models, benchmarks them on your hardware, and learns which model handles each task type most effectively. It manages GPU memory across multiple vendors, unloading models when memory runs low. Responses are cached for instant reuse, and failed requests automatically fall back to alternative models. An OpenAI-compatible API makes it a drop-in replacement for existing clients. Admin endpoints expose model profiles, VRAM metrics, cache controls, and a dead-letter queue for failed background jobs, all protected by an API key. Configuration uses environment variables with an interactive setup wizard. Deployment options include Docker Compose with GPU-specific templates, a one-line docker-run.sh script, and manual Python installation.
Should you self-host SmarterRouter?
SmarterRouter scores 47/100 on selfhost.directory (how scoring works) and ranks #36 of 69 in AI Chat. It has 154 GitHub stars.
It shipped 10 stable releases in the past year. The latest, 2.2.5, came out on 18 April 2026. New versions land roughly every 5 days.
Setup is moderate: expect some configuration beyond a single command. An official Docker image is available. It is MIT-licensed and written mostly in Python.
Its closest alternative on selfhost.directory is LibreChat (85/100, 46 421 stars). It scores higher overall, so compare the two before you pick. See SmarterRouter vs LibreChat side by side.
Features
- Admin Dashboard API
- Automatic Model Profiling
- External Provider Routing
- Fallback & Cascading Retries
- Intelligent Model Routing
- Live Model Hot-Swap
- LLM-as-Judge ProfilingRequires external API key
- Model Filtering
- Multi-backend Support
- Pinned Model Support
- Prometheus Metrics
- Quality Preference Tuning
- Semantic Response Caching
- VRAM Monitoring & Management
SmarterRouter README
More in LLM Inference
SNDR Core EngineSelf-hosted vLLM patch overlay running Qwen3.6 and Gemma 4 at 280K context on 24 GB GPUs with 1.5× throughput, working tool calls, and neural-graph memory.
tabbyAPITabbyAPI is a self-hosted, open-source FastAPI server providing an OpenAI-compatible REST API for running ExllamaV3-quantized LLMs on your own GPU hardware.
Transformer LabSelf-hosted, open-source ML platform to train, fine-tune, evaluate and serve LLMs, diffusion and audio models locally or across GPU clusters.
Turbo-LLMSelf-hosted local LLM platform running any engine with auto-tuning, real measured tokens/sec, and OpenAI/Anthropic APIs for Claude Code.
unslothSelf-hosted, open-source UI and framework to run, fine-tune and export LLMs, GGUF/MLX and diffusion models on your own GPU or Mac.
vLLMvLLM is a self-hosted, open-source LLM inference engine with state-of-the-art throughput via PagedAttention.
vllm-qwenSelf-hosted OpenAI-compatible inference server running Qwen3.6-27B BF16 on AMD Ryzen AI Max+ 395 with vision support, 256K context, and separated reasoning output.
WhisperLive---CPUSelf-hosted, open-source real-time Whisper transcription server with faster-whisper, TensorRT and OpenVINO backends and an OpenAI-compatible REST API.
YALSYALS is a self-hosted, open-source OpenAI-compatible API server for GGUF models via llama.cpp, with continuous batching and JSON schema support.
AGmindAGMind is a self-hosted, open-source installer deploying a private RAG stack on NVIDIA DGX Spark in ~30 minutes via an interactive wizard.
aisuiteDocker Compose suite bundling N8N, Flowise, Langflow, LocalAI, Ollama, VLLM, Qdrant, ChromaDB, and Stable Diffusion behind Traefik with auto HTTPS.
aixclSelf-hosted platform for running LLMs locally with Vault secrets, GPG-signed commits, and rootless Podman. Includes Open WebUI, pgAdmin, Grafana, and BYO app framework.
0 comments