Francis1998/nexus-llm-router
Drop-in LLM router and AI gateway for OpenAI Chat Completions, Responses and Anthropic Messages APIs: 125 routing strategies (incl. feedback-aware Thompson sampling) across GPT-6, Claude Opus 5.5 / Fable 5.2, Gemini 4 and Kimi K3.1, a request feedback API, budgets, fallbacks, tenant rate limits, idempotency and audit logs.
Thành tựu nổi bật
Những danh hiệu mới nhất của dự án
#1 Repository của tuần
#2 Repository của tuần
#3 Repository của tuần
🔄 Nexus-LLM-Router: Middleware định tuyến LLM thông minh cho production
Một middleware OpenAI-compatible tự quyết định model phù hợp theo từng task, tối ưu chi phí và đảm bảo an toàn fallback.
Nexus-LLM-Router là một công cụ middleware định tuyến LLM thông minh, giúp các hệ thống AI production sử dụng nhiều model khác nhau một cách hiệu quả. Thay vì gửi mọi yêu cầu đến cùng một model đắt tiền, Nexus phân loại độ phức tạp và lĩnh vực của prompt, sau đó chọn model phù hợp để tối ưu độ trễ, chất lượng và chi phí.
✨ Điểm nổi bật
- Định tuyến thông minh theo chiến lược: hỗ trợ rule-based, classifier, cost-optimal, latency-aware, reliability-aware, weighted-blend, budget-aware và ab routing.
- Tối ưu chi phí: ước lượng chi phí model, áp dụng ngân sách người dùng và xuất metric chi phí qua Prometheus.
- An toàn production: circuit breaker theo provider, fallback tự động, rate limiter token-bucket và kiểm tra ngân sách trước khi gửi yêu cầu.
- Hỗ trợ domain policy: áp dụng rule như y tế/pháp lý về Claude Sonnet 4.6, code phức tạp về GPT-5.5.
- API tương thích OpenAI: cung cấp
/v1/chat/completionsvới adapter chuẩn hóa OpenAI, Anthropic, Gemini, Moonshot. - Giám sát toàn diện: ghi log lý do định tuyến, audit request_id, latency, token và chi phí.
- Bảo vệ PII: hỗ trợ redaction regex và tích hợp Presidio trước khi gửi provider.
- Triển khai nhanh: hỗ trợ Docker Compose với Prometheus và Grafana, CI/CD và logging có cấu trúc.
💡 Vì sao đáng chú ý
Nexus không chỉ là một router đơn thuần — nó biến quyết định chọn model thành một policy có thể kiểm thử và giám sát. Thay vì phụ thuộc vào product code để chọn model, Nexus đưa toàn bộ logic định tuyến, ngân sách và an toàn vào tầng middleware, giúp các đội AI infrastructure kiểm soát chi phí, độ trễ và chất lượng một cách trung tâm. Đặc biệt phù hợp với các pipeline đa model đang chạy ở môi trường production nơi yêu cầu tối ưu đồng thời giữa calidad, latency và cost.
#AI #LLMRouter #OpenAICompatible #CostOptimization #MultiLLM #TiniX
Dự án tương tự
Khám phá các dự án và mô hình AI khác có sự tương đồng.
Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.
⚡ Awesome AI Gateway — pick an AI gateway from 240+ (LiteLLM, OpenRouter, Portkey, Kong, Higress, new-api, Bifrost) by cost, security & compliance, see what consolidated in 2026, learn how they actually work from an 8-chapter handbook, and verify every number yourself. Reproducible benchmarks, bilingual; stars & releases refreshed daily.
The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.
AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
why use many token when few token do trick. Skill + local proxy for coding agents: shorter answers, smaller tool output, every original recoverable.
Compress tool outputs, logs, files, and RAG chunks before they reach the LLM. 20% fewer tokens for coding agents, 60-95% fewer tokens for JSON, same answers. Library, proxy, MCP server.
Leaked system prompts of ChatGPT, Claude, Gemini and more. The hidden system prompt of every popular chatbot, in full, every version since May 2025. Also Anthropic Claude Code, OpenAI Codex, Google Antigravity, xAI Grok, Meta Muse, Moonshot Kimi, Alibaba Qwen, Z.ai GLM ZCode, MiniMax, Cursor, Perplexity, DeepSeek and 30+ others. Updated daily.