RepositoryGo
yolorouter

yolorouter/yolorouter

A self-hosted, OpenAI-compatible LLM gateway with multi-provider failover, key rotation, and a built-in admin console.

404sao
6fork
0issue
4lượt xem

Thành tựu nổi bật

Những danh hiệu mới nhất của dự án

1
TINIX TRENDING·Chủ đề: openai-proxy

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: load-balancing

#1 Repository của tuần

1
TINIX TRENDING·Chủ đề: llm-gateway

#1 Repository của tuần

🚀 Yolorouter — Cổng LLM đa giao thức, failover tự động, một binary duy nhất

Yolorouter giúp bạn chỉ cần trỏ một endpoint và một API key — mọi thứ phức tạp như quản lý key, failover, và theo dõi chi phí đều được xử lý tại đây.

Yolorouter là một cổng LLM tự host, miễn phí nguồn mở, hỗ trợ bốn giao thức wire: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, và Gemini generateContent. Bạn có thể dùng bất kỳ giao thức nào để nhận từ bất kỳ nhà cung cấp nào — dù provider chỉ hỗ trợ OpenAI cũng có thể phục vụ Claude Code, và ngược lại. Streaming, tool calling, reasoning blocks, và hình ảnh đều được giữ nguyên qua chuyển đổi.

✨ Điểm nổi bật

  • Failover đa nhà cung cấp: ánh xạ một tên model công cộng (ví dụ: smart) tới danh sách provider theo thứ tự, tự động chuyển khi một provider lỗi.
  • Quay key upstream tự động: mỗi provider có pool key, tự động bỏ qua key bị rate-limit, không hợp lệ, hoặc hết quota.
  • Alias model ổn định: caller gọi tên model công cộng, mỗi candidate sẽ map tới model id thực tế của provider.
  • Streaming chính xác: failover và quay key xảy ra trước khi gửi byte đầu tiên tới client; streaming không bao giờ hòa trộn nội dung từ hai provider.
  • Timeout linh hoạt cho reasoning model: 7 giai đoạn timeout độc lập, tránh việc model bị giết giữa quá trình suy nghĩ.
  • Kiểm soát truy cập per-key: allowlist model, rate/concurrency limit, ngân sách tích lũy, thời hạn tùy chọn, thu hồi ngay lập tức.
  • Tối ưu chi phí: chèn system prompt toàn cục hoặc per-key, nén output tool trước khi gửi lên upstream.
  • Quan sát tích hợp sẵn: KPI token/cost, usage theo model/provider/thời gian/caller, log đầy đủ chuỗi routing.

💡 Vì sao đáng chú ý

Không giống các giải pháp khác phân tán logic quản lý key, failover, và theo dõi chi phí khắp nhiều codebase, Yolorouter tập trung mọi thứ vào một binary duy nhất với SQLite mặc định, hỗ trợ PostgreSQL khi cần. Bảng điều khiển web được nhúng sẵn, hỗ trợ tiếng Anh và tiếng Trung, tự động cập nhật bản mới.


#LLM #Gateway #FailOver #OpenSource #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.

RepositoryPython
mozilla-ai/otari

Open-source AI gateway you run yourself. One endpoint for 40+ providers, with virtual keys, budgets, and usage tracking.

986
Nov 30, 2026
RepositoryGo
maximhq/bifrost

Open-source, high-performance AI gateway that works as your LLM gateway, MCP gateway and agent gateway. One OpenAI-compatible API for 10,000+ models, with failover, load balancing, semantic caching, virtual keys, budgets and MCP Code Mode. Works with any SDK or agent and adds under 200µs of overhead at 5k RPS.

10.1k
Dec 1, 2026
RepositoryGo
yanstd888/9routerx

9RouterX (9R Next Go Generation): Single-binary Go AI router, LLM gateway & 20-40% token saver. Route Claude Code, Cursor & Codex across 155 providers, 28 OAuth & 248 free models (24 keyless) — OpenAI, Claude, Gemini, DeepSeek, Groq, Ollama & MCP.

279
Nov 28, 2026
RepositoryRust
respanai/respan-gateway

Open-source LLM gateway in Rust. One endpoint for OpenAI, Anthropic, Gemini and every other vendor. Any SDK, any model, any tool.

1.2k
Nov 30, 2026
RepositoryRust
ThinkWatchProject/ThinkWatch

Self-hosted AI API and MCP gateway for organizations: SSO and RBAC, per-user identity for MCP tool calls, PII redaction and tool-call guards, rate limits, budgets, cost accounting and audit logs.

818
Dec 1, 2026
RepositoryRust
nyroway/nyro

Self-hosted AI Gateway — connect Claude Code, Codex, Gemini CLI and any SDK to any model provider with protocol translation.

200
Oct 16, 2026
RepositoryHTML
cuihuan/awesome-ai-gateway

⚡ 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.

161
Nov 26, 2026
RepositoryPython
0xzr/freellmpool

Free LLM gateway: 22 LLM providers, 178 enabled chat routes, 431 cataloged chat models; keyless start when available.

159
Nov 20, 2026
RepositoryTypeScript
Inebrio/Routerly

Self-hosted LLM gateway that routes requests across AI providers (OpenAI, Anthropic, Gemini, Mistral, Ollama) using intelligent multi-policy scoring — including an LLM-native routing policy. Drop-in compatible: just swap the base URL. No database required, built-in cost tracking, budget enforcement and multi-tenant isolation.

111
Nov 12, 2026