Observed since 20 Oct, 22:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
An SRE-Optimized API Gateway for dynamic LLM routing, Redis caching, and Prometheus telemetry.
A production-grade, highly resilient API Gateway that dynamically routes Large Language Model (LLM) prompts based on complexity and minimizes cost through semantic caching.
Built strictly with Site Reliability Engineering (SRE) principles, it implements automated failovers, Redis-backed rate limiters, token-cost telemetry routing to Prometheus, and features a glowing, immersive UI dashboard built beautifully in Vanilla JS/Vite.
groq/llama-3.1-8b), while complex queries (e.g. system design) automatically route to heavy models (groq/llama-3.1-70b).< 0ms for $0USD cost.asyncio timeouts. If a provider throws a quota limit, 503, or hangs, the router gracefully degrades to alternative models before ever throwing an error to the user.x-api-key header to prevent billing exhaustion./metrics.Python 3.11, FastAPI, LiteLLM (for multi-provider standardization)HTML5, Vanilla Base CSS, Vite Node-Server, marked.jsRedis alpine containerDocker ComposePrometheus (Scraping), Grafana (Visualization)Groq LPU (Llama 3.1 models config standard)Clone the repository:
git clone https://github.com/ManikBodamwad/LLM-Latency-Cost-Router.git
cd "LLM Latency & Cost router"
Supply your API Keys:
Create a .env file in the root directory:
GROQ_API_KEY="gsk_your_groq_key_here"
Deploy via Docker Compose:
docker compose up -d --build
Experience the Application: Open http://localhost:5173 in your web browser. Type a complex prompt like "Can you explain the Medallion Architecture?" and observe the SRE dashboard dynamically tracking the latency, the exact Token Cost, and the routing strategy in real-time.
This repository is built as a portable Python package so engineering teams can inject edge-routing into their own systems natively without bulky Docker containers!
If you install this via pip:
pip install agentic-sre-gateway
You can instantly spin up the SRE-optimized Routing API on your local terminal using the globally injected command:
export GROQ_API_KEY="your_key"
export REDIS_URL="redis://localhost:6379/0"
agentic-gateway
This serves teams that want a drop-in API proxy to massively reduce LLM bills and monitor token consumption locally without rewriting complex LiteLLM and Prometheus wrappers themselves.
For local visualization during development, the docker-compose orchestration automatically spins up standard metrics scrape targets.
http://localhost:9090http://localhost:3000
(Note: This uses the default local-dev credentials Login: admin / Password: admin)Developed by Manik Bodamwad to solve enterprise-level LLM deployment friction points: Cost Runaway, High Latency, and Provider Downtime.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.0.0 | 7 Apr 2026 | 5 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 22:21 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:055350d9cbcfd2d4306105765f274f9b9865cc8323e126e75118dfbab7b65661