9router
An open-source AI model API routing and aggregation tool built on Next.js. Through a unified OpenAI-compatible endpoint it aggregates more than 60 providers and over 100 models, offering automatic fallback, quota statistics, token compression and API format conversion.
Timeline (last 90 days)
9router (decolua/9router) is an MIT-licensed open-source project built on Next.js, installable via npm install -g 9router, with the Dashboard automatically opening at http://localhost:20128, supporting 60+ Providers and 100+ models, and a Docker version is also available.
9router provides a three-tier automatic fallback mechanism: Tier 1 is subscriptions (such as Claude Code, Codex, Copilot), Tier 2 is low-cost Providers (such as GLM, MiniMax, Kimi), and Tier 3 is free Providers (such as Kiro, OpenCode Free, Vertex, NVIDIA NIM), automatically jumping to the next tier when one tier's quota is exhausted.
9router's 'format conversion' feature is a protocol adaptation layer: it exposes a unified OpenAI-compatible endpoint (POST /v1/chat/completions) to upstream Agents, and translates requests and responses to downstream Providers according to their respective native protocols (Anthropic Messages API, Gemini API, etc.).
9router's RTK Token Saver compresses tool output (git diff, grep, ls, logs) before it reaches the model, saving 20%~40% of input Tokens per request.
9router's Caveman Mode compresses model output, saving up to about 65% of Tokens.
The free Providers that 9router supports connecting to include OpenCode Free (no authentication required), Kiro AI (OAuth, about 50 quota per month, supporting Claude 4.5, GLM-5, MiniMax), Vertex AI (OAuth, $300 credit for new GCP accounts), NVIDIA NIM (API Key), and Cloudflare Workers AI (API Key).
9router provides other practical features, including multi-account round-robin usage, a combiner that chains multiple Providers into one virtual Provider, quota tracking, and mutual conversion between OpenAI/Claude/Gemini formats.
The way to connect an Agent is to point the Base URL in the tool settings to http://localhost:20128 and use 'auto' as the model name or specify a concrete model such as kr/claude-sonnet-4.5.
OmniRoute (diegosouzapw/OmniRoute) is a heavier alternative with basically the same goals as 9router (Provider hub, automatic fallback, Token savings, the same localhost:20128 endpoint), but it supports 350+ Providers and has built-in memory, MCP Server, semantic caching, A2A, and encrypted credential storage.
All Facts (10)
通过路由工具大规模聚合调用免费AI提供商可能违反部分提供商的服务协议
80%Unverified9router (decolua/9router) is an MIT-licensed open-source project built on Next.js, installable via npm install -g 9router, with the Dashboard automatically opening at http://localhost:20128, supporting 60+ Providers and 100+ models, and a Docker version is also available.
50%Unverified9router provides a three-tier automatic fallback mechanism: Tier 1 is subscriptions (such as Claude Code, Codex, Copilot), Tier 2 is low-cost Providers (such as GLM, MiniMax, Kimi), and Tier 3 is free Providers (such as Kiro, OpenCode Free, Vertex, NVIDIA NIM), automatically jumping to the next tier when one tier's quota is exhausted.
50%Unverified9router's 'format conversion' feature is a protocol adaptation layer: it exposes a unified OpenAI-compatible endpoint (POST /v1/chat/completions) to upstream Agents, and translates requests and responses to downstream Providers according to their respective native protocols (Anthropic Messages API, Gemini API, etc.).
50%Unverified9router's RTK Token Saver compresses tool output (git diff, grep, ls, logs) before it reaches the model, saving 20%~40% of input Tokens per request.
50%Unverified9router's Caveman Mode compresses model output, saving up to about 65% of Tokens.
50%UnverifiedThe free Providers that 9router supports connecting to include OpenCode Free (no authentication required), Kiro AI (OAuth, about 50 quota per month, supporting Claude 4.5, GLM-5, MiniMax), Vertex AI (OAuth, $300 credit for new GCP accounts), NVIDIA NIM (API Key), and Cloudflare Workers AI (API Key).
50%Unverified9router provides other practical features, including multi-account round-robin usage, a combiner that chains multiple Providers into one virtual Provider, quota tracking, and mutual conversion between OpenAI/Claude/Gemini formats.
50%UnverifiedThe way to connect an Agent is to point the Base URL in the tool settings to http://localhost:20128 and use 'auto' as the model name or specify a concrete model such as kr/claude-sonnet-4.5.
50%UnverifiedOmniRoute (diegosouzapw/OmniRoute) is a heavier alternative with basically the same goals as 9router (Provider hub, automatic fallback, Token savings, the same localhost:20128 endpoint), but it supports 350+ Providers and has built-in memory, MCP Server, semantic caching, A2A, and encrypted credential storage.
50%