Indonesiayanstd888/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.
Featured achievements
The project's latest awards
#1 Repository of the week
#1 Repository of the week
#1 Repository of the week
🚀 9RouterX: Single Binary AI Router & Token Saver
Route any LLM through one Go binary and cut your token bill dramatically. 9RouterX is an open‑source, self‑hosted AI routing gateway and LLM proxy written in Go, bundled with a Svelte 5 + Vite + Tailwind 4 dashboard. It lets AI coding assistants talk to 155 providers (91 key‑service APIs, 28 OAuth, 29 free‑tier, 24 keyless models) while saving 20‑40 % of token usage and eliminating Node.js runtime overhead.
✨ Highlights
- Token Saver: Cuts tool-output token consumption by 20–40% using built‑in RTK compression and ready‑made per‑tool filters.
- Smart 3‑Tier Failover: Routes requests through Subscription → Cheap → Free tiers automatically when primary limits are hit.
- 155 Providers & 248 Free Models: Connects to 155 AI providers (91 key‑service APIs, 28 OAuth, 29 free‑tier, 24 keyless models) with zero Node.js runtime overhead.
- OpenAI & Anthropic Compatible: Exposes unified OpenAI‑compatible and Anthropic‑compatible proxy endpoints for coding assistants.
- Per‑Key Budget & Rate Limits: Enforces daily USD spending ceilings, per‑key rate limits, CIDR/IP whitelists, and endpoint permissions before forwarding keys.
- Health Probing & Auto‑Repair: Monitors endpoint health continuously and uses a 3‑tier circuit breaker to bypass degraded nodes and repair broken tool‑call structures.
💡 Why it matters
9RouterX resolves fragmented monthly subscriptions, sudden rate‑limit interruptions, and runaway token billing by handling routing and optimization locally. It automatically cascades from your active Subscription tier to cheaper providers and finally to free keyless models, ensuring continuous access. The built‑in token saver and per‑key budgeting cut costs while health probes and circuit breakers keep the system reliable. All of this runs in a single Go binary with no Node.js overhead, making deployment simple and resource‑light. Thus developers can focus on building AI workflows instead of managing provider limits. ---#AI #LLM #OpenSource #Go #TiniX
Similar Projects
Discover other similar projects and AI models.
Self-hosted AI Gateway — connect Claude Code, Codex, Gemini CLI and any SDK to any model provider with protocol translation.
A self-hosted, OpenAI-compatible LLM gateway with multi-provider failover, key rotation, and a built-in admin console.
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申请与审批,调用统计、负载均衡、多模型灾备。一键部署,开箱即用。
Free LLM gateway: 22 LLM providers, 178 enabled chat routes, 431 cataloged chat models; keyless start when available.
Get up and running with Inkling, Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
Open-source AI gateway. Self-hosted LLM gateway with OpenAI-, Claude- and Gemini-compatible APIs, model routing, access control, usage tracking and cost accounting.
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.