← All Comparisons (/vs)
HEAD-TO-HEAD TECHNICAL COMPARISON (2026)

claude-code-router vs cost-xray

Side-by-side 2026 comparison in Coding, Skills & MCP: musistudio/claude-code-router leads in total GitHub adoption (★ 38.5k), while tigerless-labs/cost-xray shows stronger 7-day momentum. Licensing: MIT · Commercial Friendly vs MIT · Commercial Friendly.

Cumulative Star Gain Chart (Embeddable SVG)

Backed by independent 6-hour D1 snapshots. Embed in GitHub READMEs or technical blogs.

claude-code-r… vs cost-xray — 14-Day Star Velocity Comparison on RepoForAI.com 14-DAY CUMULATIVE STAR GAIN COMPARISON REPOFORAI.COM claude-code-r… ★ 38.5k (+101/7d) cost-xray ★ 5.4k (+209/7d) +218 +109 0 11-21 11-28 12-04 (D1 snapshot)
musistudio/claude-code-router (Health A+ 98/100) vs tigerless-labs/cost-xray (Health B+ 73/100) multi-day star momentum.
Compare different repos →

Key Metrics Matrix

Dimensionmusistudio/claude-code-routertigerless-labs/cost-xray
Total GitHub Stars★ 38,472★ 5,441
24h / 7d Velocity+8 / +101+0 / +209
7-Day Trend Curve
Engineering HealthA+ · 98/100B+ · 73/100
Deployment SignalsDocker · Self-Hosted · CLI · MCP · APISelf-Hosted · CLI
Primary LanguageTypeScriptPython
Commercial LicenseMIT · Commercial FriendlyMIT · Commercial Friendly
ActivityUpdated 13d agoUpdated 22d ago
Latest Releasev3.1.6Rolling commits (main)
Best ForDevelopers or teams running several supported coding agents who need to switch providers, configure fallback routes, and verify where requests went without maintaining separate routing configurations for each clientClaude Code or Codex users tuning MCP configuration, investigating context pressure, or tracing costs to a particular schema or tool result
Maintaining claude-code-router, cost-xray, or an open-source alternative? Reach engineers comparing this stack.
Feature Repo ($19)Sponsor Track

claude-code-router · Highlights & Quickstart

Agent profiles: Apply model overrides, scopes, and environment settings to clients such as Claude Code, Codex, and OpenCode.
Routing and failover: Match headers or bodies, rewrite requests, retry, and try fallback models in a configured order.
Protocol coverage: Support OpenAI Chat and Responses, Anthropic Messages, and Gemini Generate Content and Interactions.
Access and observability: Issue expiring client keys with local request, token, and image limits; inspect resolved routes, latency, usage, and estimated costs.
npm install -g @musistudio/claude-code-router@latest
ccr ui

cost-xray · Highlights & Quickstart

Capture: Claude Code uses a base-URL override; Codex uses a forward proxy with command-scoped CA trust.
Processing: mitmproxy records redacted traffic; a separate materializer tokenizes and prices it.
Attribution: The TUI breaks out fresh input, cache reads, cache writes, and output down to individual tool calls.
Context occupancy: Identify MCP schemas injected on every turn even when their tools are never called.
curl -fsSL https://raw.githubusercontent.com/tigerless-labs/cost-xray/master/install.sh | bash

claude-code-router vs cost-xray FAQ

How do claude-code-router and cost-xray differ on commercial licensing?

musistudio/claude-code-router uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.), whereas tigerless-labs/cost-xray uses MIT · Commercial Friendly (Permissive license allowing commercial use, modification, and proprietary distribution.).

Which is growing faster in 2026: claude-code-router or cost-xray?

According to RepoForAI's 6-hour GitHub telemetry, claude-code-router has 38,472 stars (+101 in 7d) vs. cost-xray with 5,441 stars (+209 in 7d).

When should engineering teams pick claude-code-router vs cost-xray?

Choose claude-code-router (TypeScript) for: Developers or teams running several supported coding agents who need to switch providers, configure fallback routes, and verify where requests went without maintaining separate routing configurations for each client. Choose cost-xray (Python) for: Claude Code or Codex users tuning MCP configuration, investigating context pressure, or tracing costs to a particular schema or tool result.

More Head-to-Head Comparisons

WEEKLY BREAKOUT DIGEST

Top 10 Breakout Open-Source AI Repos, Every Thursday

Signal-only digest of fast-growing AI repos, SPDX license alerts, and architecture picks. Zero spam.

Zero spam · 1-click unsubscribe · Privacy Policy

Saved in your browser · Export Markdown RFC tables or jump into /vs compare