RepositoryRust
nyroway

nyroway/nyro

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

200sao
34fork
32issue
6lượ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 tháng

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

#1 Repository của tuần

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

#1 Repository của tháng

🚪 Nyro AI Gateway — Cổng thống nhất cho mọi AI coding tool và model

Chạy mọi công cụ AI coding (Claude Code, Codex, Gemini CLI...) trên bất kỳ model nào, từ bất kỳ nhà cung cấp nào — chỉ cần trỏ về localhost:19530, Nyro lo phần còn lại.

Nyro là một AI gateway tự host viết bằng Rust, nằm giữa các AI coding tool (Claude Code, Codex CLI, Gemini CLI, OpenCode) và các nhà cung cấp model (OpenAI, Anthropic, Google Gemini, DeepSeek, MiniMax, xAI, Zhipu, Ollama...). Nó dịch chuyển giao thức (protocol translation) real-time: client dùng giao thức OpenAI/Anthropic/Gemini SDK, Nyro chuyển sang giao thức phù hợp của upstream model. Cung cấp cả desktop app (macOS/Windows/Linux) và server binary cho triển khai headless/self-hosted. API key lưu local, request không đi qua cloud trung gian.

✨ Điểm nổi bật

  • Dịch chuyển giao thức đa chiều: Ingress hỗ trợ OpenAI Chat Completions + Responses API, Anthropic Messages, Gemini GenerateContent; Egress route đến bất kỳ upstream OpenAI-compatible, Anthropic, hay Gemini nào.
  • Streaming SSE passthrough & chuyển đổi cross-protocol: Giữ nguyên streaming, chuyển định dạng reasoning (thinking tag) và tool calls giữa các giao thức khác nhau.
  • Routing linh hoạt: Exact match trên virtual_model, tách tên model ảo khỏi backend thực; multi-target với weighted load balancing hoặc priority failover; health-aware failover (3 lỗi liên tiếp → unhealthy, auto-recover sau 30s).
  • Caching hai lớp: Exact cache (request y hệt) và semantic cache (embedding similarity) với TTL/threshold tuỳ route; replay stream cho cached streaming response.
  • Khám phá khả năng model tự động: Tự detect tool call, reasoning, context window, modalities, cost; data source built-in ai://models.dev để lookup offline; HTTP model list endpoints cho dynamic discovery.
  • Bảo mật mặc định chặn: Proxy token và admin bearer token độc lập; default-deny route authorization (key phải gán tường minh); quota per-key (RPM/RPD/TPM/TPD).
  • Quản trị toàn diện UI: CRUD providers/routes/API keys, request logs chi tiết (provider, model, token, latency), usage charts, provider connectivity test, import/export config.
  • Connect — tích hợp một click: Sinh config sẵn cho OpenAI/Anthropic/Gemini SDK (Python, TypeScript, cURL) và auto-detect + ghi config cho Claude Code, Codex CLI, Gemini CLI, OpenCode (backup config gốc tự động).
  • Triển khai đa mode: Desktop app (Apple Silicon/Intel, Windows x64/ARM64, Linux x86_64/aarch64) + Server binary 3 mode: all (proxy+admin+WebUI), proxy (data-plane only), admin (control-plane only).

💡 Vì sao đáng chú ý

Nyro giải quyết bài toán thực tế: mỗi AI coding tool nói một giao thức khác nhau (Claude Code → Anthropic, Codex → OpenAI Responses API, Gemini CLI → Gemini), trong khi team muốn tự do chọn model/provider tốt nhất cho từng task. Thay vì config lại từng tool hay viết adapter riêng, Nyro gom về một endpoint local, dịch giao thức透明. Đặc biệt phù hợp cho team tự host, cần kiểm soát dữ liệu (key không ra ngoài), muốn fallback tự động giữa nhiều provider, hoặc cần caching semantic để tiết kiệm chi phí/látency cho query lặp lại. Kiến trúc tách proxy/admin cho phép scale data-plane độc lập — chạy proxy mode nhẹ trên nhiều node, admin mode tập trung điều khiển.


#AIGateway #LLMProxy #ProtocolTranslation #SelfHosted #Rust #ClaudeCode #CodexCLI #GeminiCLI #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.

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
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
RepositoryPython
BerriAI/litellm

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

64.3k
Dec 2, 2026
RepositoryTypeScript
Portkey-AI/gateway

A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.

13.5k
Nov 20, 2026
RepositoryTypeScript
APIParkLab/APIPark

Cloud native, ultra-high performance AI&API gateway, LLM API management, distribution system, open platform, supporting all AI APIs.🦄云原生、超高性能 AI&API网关,LLM API 管理、分发系统、开放平台,支持所有AI API,不限于OpenAI、Azure、Anthropic Claude、Google Gemini、DeepSeek、字节豆包、ChatGLM、文心一言、讯飞星火、通义千问、360 智脑、腾讯混元等主流模型,统一 API 请求和返回,API申请与审批,调用统计、负载均衡、多模型灾备。一键部署,开箱即用。

1.8k
Oct 27, 2026
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
yolorouter/yolorouter

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

404
Oct 28, 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