# 9Router

> FREE AI Router & Token Saver

Source: https://talira.ai/catalog/9router-315aa8x2
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Web app, API, Command-line tool
- Categories: [ai / llm / gateways / subscription proxies](https://talira.ai/categories/ai/llm/gateways/subscription-proxies), [ai / llm / gateways](https://talira.ai/categories/ai/llm/gateways)
- Platforms: web, docker, linux, windows[^4]
- Licence: MIT[^5][^6]
- Pricing: Free and open source[^4][^5]
- Pricing notes: The README says 9Router 'never charges' and the dashboard's costs are estimates only: you pay providers directly for subscriptions or API usage, or use their free tiers.
- Free tier: yes[^4][^5]
- Self-hostable: yes[^4]
- API: yes[^4]
- Creator: decolua

9Router is a local AI router for coding tools: it runs on your machine or server (default http://localhost:20128/v1) as an OpenAI-compatible endpoint, and you point [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md), [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md), [Cursor](https://talira.ai/catalog/cursor-x8ypqq22.md), Cline, Copilot, [OpenClaw](https://talira.ai/catalog/openclaw-ght0hsav.md) and other tools at it. Behind it you connect your own accounts: subscriptions signed in with OAuth (Claude Code, Codex, GitHub Copilot, Cursor, Antigravity), API keys for 40+ providers ([OpenRouter](https://talira.ai/catalog/openrouter-7b9zt83p.md), Anthropic, OpenAI, [Gemini](https://talira.ai/catalog/gemini-api-r5x8ntes.md), DeepSeek, GLM, MiniMax, Kimi and more), free tiers such as Kiro and [OpenCode](https://talira.ai/catalog/opencode-fn6hh4gp.md) Free, and self-hosted speech and embedding servers. It translates between OpenAI, [Claude](https://talira.ai/catalog/claude-w14d0j2d.md), [Gemini](https://talira.ai/catalog/gemini-api-r5x8ntes.md) and other formats, falls back from subscription to cheap to free models in combos you define, round-robins several accounts per provider, refreshes OAuth tokens, tracks quota resets and estimated costs, and compresses tool output (its port of RTK) to save tokens. It's a [Next.js](https://talira.ai/catalog/next-js-2chrxyc7.md) app with [SQLite](https://talira.ai/catalog/sqlite-cys3nt23.md), installed with npm or [Docker](https://talira.ai/catalog/docker-engine-9442r3nw.md) under the MIT licence; its README credits [CLIProxyAPI](https://talira.ai/catalog/cliproxyapi-sg34tvnz.md) as the Go project it ports, and [OmniRoute](https://talira.ai/catalog/omniroute-v3a86e5b.md) is a fork of it.

## Links

- Website: https://9router.com/
- GitHub: https://github.com/decolua/9router

## Ways to install

### On your own server

- [Coolify](https://talira.ai/catalog/coolify-0mx3mr9d.md): <https://coolify.io/docs/services/9router>[^1]
- [Proxmox VE Helper-Scripts](https://talira.ai/catalog/proxmox-ve-helper-scripts-3h36wtyj.md): <https://community-scripts.org/scripts/9router>[^2]

### Hosted for you

- [Railway](https://talira.ai/catalog/railway-mczwyt8g.md): <https://railway.com/deploy/9router>[^3]

## Problems it solves

- keep coding when my Claude Pro quota runs out by falling back to a cheaper model automatically
- use my Claude Code or Codex subscription from other coding tools through one local endpoint
- route Cursor, Cline and Claude Code through one OpenAI-compatible URL to many AI providers
- rotate between several accounts of the same AI provider to avoid rate limits
- cut the tokens my coding agent spends on git diff and grep output
- see how much of my AI subscription quota is left before the 5-hour reset
- combine free and cheap AI models into one fallback chain for my coding agent
- translate Claude-format requests to OpenAI-format providers and back
- connect a free model provider to Claude Code without paying for an API key
- estimate what my AI coding usage would cost at API prices
- a self-hosted AI router I can run on a VPS and share across my laptops
- sync my AI provider and model routing settings across devices

## Features

- OpenAI-compatible endpoint (/v1/chat/completions, /v1/models) for AI coding tools
- OAuth sign-in to Claude Code, Codex, GitHub Copilot, Cursor and Antigravity subscriptions, with automatic token refresh
- API keys for 40+ providers and custom OpenAI- or Anthropic-compatible endpoints
- free providers such as Kiro and OpenCode Free
- self-hosted speech-to-text, text-to-speech and embedding servers
- format translation between OpenAI, Claude, Gemini, Cursor, Kiro, Vertex, Antigravity, Ollama and OpenAI Responses
- combos with automatic fallback from subscription to cheap to free models
- multiple accounts per provider with round-robin or priority routing
- real-time quota tracking with reset countdowns, usage analytics and cost estimates
- RTK token saver that compresses tool outputs, optional Headroom compression, Caveman and Ponytail prompt modes
- spending limits per provider
- request logging in debug mode
- cloud sync of providers, combos and settings, and a Cloudflare tunnel to reach the router from anywhere
- runs on localhost, a VPS, Docker or Cloudflare Workers; optional API key enforcement on /v1

## Limitations

- Doesn't supply AI models or quota itself: you connect your own subscriptions, API keys and free provider accounts, and pay providers directly[^4]

## Capabilities

- Has an API: plan not known
- Has a command line tool: plan not known

## Trust

Overall: 0.34 out of 1.
Signals: backing 0.20, extensibility 0.40.

- created by decolua

Warnings:

- GitHub activity not fetched yet

## Forks

- [OmniRoute](https://talira.ai/catalog/omniroute-v3a86e5b.md): The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback. Its own project since 2026.

## Related

- Works with [Claude Code](https://talira.ai/catalog/claude-code-jqv5000a.md)
- Works with [Codex](https://talira.ai/catalog/codex-8m7d8cdk.md)

## Alternatives

- [OmniRoute](https://talira.ai/catalog/omniroute-v3a86e5b.md): The free AI gateway: one endpoint for hundreds of providers, with quota-aware fallback
- [CLIProxyAPI](https://talira.ai/catalog/cliproxyapi-sg34tvnz.md): Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build, Muse Code and Devin as an OpenAI/Gemini/Claude/Codex compatible API service
- [OpenRouter](https://talira.ai/catalog/openrouter-7b9zt83p.md): One API for text, image, video, and audio models.
- [New API](https://talira.ai/catalog/new-api-c7b0h9w9.md): An AI gateway for models, applications, and agents
- [LiteLLM](https://talira.ai/catalog/litellm-dcj2btwh.md): The AI Gateway for platform teams.
- [Bifrost](https://talira.ai/catalog/bifrost-vwd1keba.md): Open-source, high-performance AI gateway that works as your LLM gateway, MCP gateway and agent gateway.

## Sources

[^1]: https://coolify.io/docs/services/9router (checked 20 Nov 2026)
[^2]: https://github.com/community-scripts/ProxmoxVE/blob/main/ct/9router.sh (checked 21 Nov 2026)
[^3]: https://railway.com/deploy/9router (checked 20 Nov 2026)
[^4]: https://github.com/decolua/9router/blob/master/README.md (checked 20 Nov 2026)
[^5]: https://9router.com/ (checked 20 Nov 2026)
[^6]: https://github.com/decolua/9router/blob/master/LICENSE (checked 20 Nov 2026)
