Categories
Self-Hosted Developer Tools API Management LLM Gateway Rate Limiting AI Router Prompt InjectionStars
Forks
Watchers
Developer links
9Router Pro
One endpoint for every model account you own: 9Router Pro sits between your applications and a fleet of LLM providers, decides which account answers each request, and keeps the whole operation visible on a live dashboard. Its signature trick is prompt injection scoped three ways, globally, per API key, or per model, delivered either as a system prompt or as a scripted chat history that primes the model far harder than instructions alone. Keys are products here: each carries a rolling token budget over 24 hours, 7 days, or 30 days plus rate limits per minute, hour, and day, so a resold plan enforces itself with polite 429 responses. Routing stays healthy on its own, with accounts tiered as clean, suspect, or cooldown, least-recently-used spreading across the fleet, flaky upstream responses retried against the next account, and proxy pools health-checked with one-click cleanup of the dead. The monitoring dashboard leads with VPS specs, fastest and most-used providers, top API key, and usage spectrum charts, while backup and restore cover providers, combos, keys, and settings section by section. Everything runs as a single application with one SQLite file and a dashboard localized into 34 languages. Running on a dedicated VPS on RepoCloud with guaranteed CPU, RAM, and SSD, full root SSH access, and a browser serial console. MIT licensed.
Benefits
- Keys That Enforce Plans
- Every API key carries a rolling token budget over 24 hours, 7 days, or 30 days plus per-minute, hourly, and daily rate limits, so sold plans enforce themselves automatically.
- Prompt Injection Three Ways
- Inject globally, per API key, or per model, either as a prepended or appended system prompt or as a scripted chat history, stacking at most three layers per request.
- Fallback That Heals Itself
- Accounts tier as clean, suspect, or cooldown with least-recently-used spreading, suspects recover after an hour, and flaky upstream responses retry against the next account instead of failing chats.
- One App, One File
- A single Next.js application with one SQLite file covers routing, dashboard, quotas, and backups, with no database server or extra services to deploy, secure, and maintain separately.
Features
- Live Monitoring Dashboard
- The first sidebar view shows VPS specs, fastest and most-used providers, the most-used API key, and totals for providers, proxies, combos, and keys with usage charts.
- Usage Topology View
- Request totals, latency, and cached versus output tokens render beside a live topology map of providers flowing through the router, making traffic patterns visible at once.
- Organized Provider Management
- Custom OpenAI and Anthropic-compatible providers get their own section with server-side search and pagination, bulk add with live progress, favicon-detected icons, and Test All everywhere.
- Self-Maintaining Proxy Pools
- Server-side health checks sweep every proxy pool with one-click cleanup of dead entries, and per-provider rotation can pin random or round-robin selection to chosen pools.
- Sectioned Backup And Restore
- Back up everything or only providers, combos, keys, or settings from the dashboard, and restore sections independently when migrating between routers or recovering from mistakes.