nyroway/nyro
Self-hosted AI Gateway — connect Claude Code, Codex, Gemini CLI and any SDK to any model provider with protocol translation.
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 tháng
#1 Repository của tuần
#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 (
thinkingtag) 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.
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.
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.
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.
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]
A blazing fast AI Gateway with integrated guardrails. Route to 1,600+ LLMs, 50+ AI Guardrails with 1 fast & friendly API.
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申请与审批,调用统计、负载均衡、多模型灾备。一键部署,开箱即用。
Open-source AI gateway you run yourself. One endpoint for 40+ providers, with virtual keys, budgets, and usage tracking.
A self-hosted, OpenAI-compatible LLM gateway with multi-provider failover, key rotation, and a built-in admin console.
Free LLM gateway: 22 LLM providers, 178 enabled chat routes, 431 cataloged chat models; keyless start when available.