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
npm install -g @daokimluc/x-routerFound in the project README. Check it for setup steps after installing.
git clone https://github.com/daokimluc/X-Router.gitFrom 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…
Details
- Repository
- daokimluc/X-Router
- 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
Antigravity Add Model
117vahapogut/antigravity-add-model
Proxy patch for Google Antigravity that intercepts internal Cloud Code API and adds support for OpenAI, Claude, Ollama, Gemini and any custom LLM provider.
ccMesh
128VkRainB/ccMesh
Claude Code / Codex local AI proxy gateway desktop app (Tauri). Anthropic Messages <-> OpenAI-compatible protocol transform, model mapping, endpoint rotation/failover. 本地桌面代理网关:协议转换、模型映射、多端点轮换/熔断,对接官方 API 或中转站,不改客户端。Windows/macOS/Linux.
Claude Code Anymodel
99antonoly/claude-code-anymodel
Use Claude Code with any AI model — proxy tools for OpenRouter, Ollama, and 200+ models
Agent Router
120nidhi-singh02/agent-router
CLI that picks Cursor, Claude Code, Codex, or OpenCode + model/effort for a task, then launches it. Powered by Jev and Herdr
Cligate
135codeking-ai/cligate
Private AI assistant, AI agent, and unified model proxy for Claude Code, Codex CLI, Gemini CLI & OpenClaw. Skills, MCP, tools, channels, tasks,model routing, accounts, keys, logs, dashboard.
AnyRouter Transparent Proxy
110RebornQ/AnyRouter-Transparent-Proxy
一个基于 FastAPI 的轻量级透明 HTTP 代理服务,专为解决 AnyRouter 的 Anthropic API 在 Claude Code for VS Code 插件中报错 500 的问题而设计。
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.