9router-gateway

Solid

Set up 9Router as a local AI gateway so coding agents never stop when a provider quota runs out — one OpenAI-compatible endpoint (localhost:20128) fanning out to 40+ providers with automatic fallback. Use when asked to 'set up 9router', 'cài 9router', 'hết quota Claude thì làm sao', 'fallback provider tự động', 'never hit rate limits', 'free AI router', or 'nối Claude Code vào nhiều provider'. Do NOT use for: cloud gateway architecture comparisons (LiteLLM/Portkey/Kong) — see ai-gateway-patterns. Do NOT use for: YAMTAM's internal task routing — see yana-router docs.

AI & Automation 2 stars 0 forks Updated yesterday Apache-2.0

Install

View on GitHub

Quality Score: 78/100

Stars 20%
16
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

# 9Router Gateway — Quota Armor cho mọi AI coding tool Một endpoint local duy nhất, đằng sau là 40+ providers với fallback tự động. Hết quota Claude giữa chừng → request tự chảy sang provider kế tiếp, phiên làm việc không đứt. ``` Claude Code / Cursor / Codex / yana-web │ OpenAI-compatible request ▼ http://127.0.0.1:20128/v1 ← 9Router (local, MIT) │ 3-tier fallback + token saver (RTK −20..65%) ├─ Anthropic (subscription) ├─ Gemini / OpenAI / Groq / DeepSeek … └─ Free pools (OpenCode Zen, Kiro …) ``` ## Cài đặt (1 phút) ```bash npm install -g 9router # passes L4 vetting: 17K+ stars, MIT, active 9router # dashboard: http://localhost:20128 ``` Dashboard → Add Provider (dán API key từng provider) → tạo Combo (chuỗi fallback có thứ tự) → copy API key của 9Router. ## Nối vào từng tool ```bash # Claude Code (~/.claude/settings.json hoặc env) export ANTHROPIC_BASE_URL="http://localhost:20128" export ANTHROPIC_API_KEY="<9router-key>" # Bất kỳ tool OpenAI-compatible nào export OPENAI_BASE_URL="http://localhost:20128/v1" export OPENAI_API_KEY="<9router-key>" # yana-web: Provider picker → 9Router → dán key → model "kr/claude-sonnet-4.5" # (provider có sẵn từ v0.41.2 — server.js PROVIDERS['9router']) ``` Model naming của 9Router: `<provider-prefix>/<model>` — ví dụ `kr/claude-sonnet-4.5`. Combo dùng tên tự đặt: `my-coding-stack`. ## Combo mẫu — "không bao giờ đứt mạch" ``` Combo: maximize-claude ...

Details

Author
yanacuti1121
Repository
yanacuti1121/Yana-AI
Created
2 months ago
Last Updated
yesterday
Language
Python
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category