AI

9Router - A smart gateway between your tools (Cursor, Claude Code, Codex, Cline, Copilot…)

aiproxydeveloper-tools

9Router is a self-hosted AI model router that keeps coding agents running without interruption. It gives you one OpenAI-compatible endpoint and rotates requests across multiple providers with automatic fallback, so when your main subscription hits a quota or a provider fails, it shifts to a backup model. It also has a token saver feature that compresses bulky tool outputs like git diff or grep results before they reach the LLM, which can cut token usage by 20 to 40 percent without losing context. It is free, MIT licensed, and runs locally or on your own server via Docker or npm.

Links

Alternatives

  • LiteLLM: Python-based proxy and SDK supporting 100+ providers, with virtual keys, budgets, and semantic caching. Heavier than 9Router but more enterprise features in the open source core.
  • Busbar: A fork of 9Router. Same data directory and port, but adds 292 native providers, faster model listing, and native web search and fetch redirects for non-Anthropic models.
  • Spillway: Lightweight self-hosted gateway, single Docker container, admin UI and SQLite storage. Good for teams mixing cloud and local models.
  • OpenRouter: Managed hosted service with 400+ models. Charges around 5.5 percent on credits. Not self-hostable and you cannot inspect the routing logic.
  • OmniRoute: Commercial gateway claiming 350+ providers and aggressive token compression. Closed source and feature heavy compared to 9Router.