Claude Code model router

X Router

Connect **Claude Code, Cursor, Cline, Kiro, Windsurf, Codex, OpenClaw, Antigravity** and any OpenAI-compatible tool to multiple AI providers through a single endpoint.

Install

Install
npm install -g @daokimluc/x-router

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/daokimluc/X-Router.git

From the README

X-Router

  One endpoint for every AI provider.
  Self-hosted AI gateway with multi-account pooling, auto-fallback, spending caps,
  response caching, and a full control-plane dashboard.

  =22" />

  Connect Claude Code, Cursor, Cline, Codex, Kiro, Windsurf, Aider and any
  OpenAI- or Anthropic-compatible tool to 50+ providers through a single local URL.

  English · Tiếng Việt

Why X-Router?

Running AI coding tools across many providers is messy: every tool wants its own
API key, subscriptions hit rate limits, accounts sit idle, and you have no idea
where the money goes. X-Router puts a single smart proxy in front of everything.

- One endpoint, every tool — point Cursor, Cline, Claude Code, Codex at one URL.
- Multi-account pooling — round-robin across N accounts per provider to multiply throughput.
- Auto-fallback — provider down or rate-limited? The next candidate is tried instantly.
- Spend control — hard daily/monthly USD caps per key and per team, enforced before the call.
- Token savings — optional Token Saver compresses tool output before it hits the provider.
- Response cache — identical requests return instantly at zero token cost (opt-in).
- Full observability — latency p50/p95/p99, usage charts, request logs, Prometheus /metrics.
- Web dashboard — manage providers, accounts, keys, routes, teams, and pricing from a browser.

Quick Start

Foza — the open control plane for AI supply
Public beta · Active development · A small group of internal users is already using it

X-Router is more than a proxy. It is an open-source foundation for making AI access
reliable, portable, and governable across providers. This repository contains two
deliberately separated layers:

The problem

AI developers increasingly depend on several providers, model families, coding…
Read the full README on GitHub

Details

Language
TypeScript
Last updated
12 August 2026

FAQ

What is X Router?

Connect **Claude Code, Cursor, Cline, Kiro, Windsurf, Codex, OpenClaw, Antigravity** and any OpenAI-compatible tool to multiple AI providers through a single endpoint. It is a model router for Claude Code, from daokimluc/X-Router on GitHub.

How do I install X Router?

Run npm install -g @daokimluc/x-router, then follow the setup in the README.

Is X Router popular?

daokimluc/X-Router has 97 GitHub stars and 86 forks. It was last updated on 12 August 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.