# musistudio/claude-code-router

One local control plane for every AI agent: route across models, fuse new capabilities, orchestrate tools, and stay fully in control.

Repository: https://github.com/musistudio/claude-code-router
Canonical: https://ross.abutalabs.com/products/claude-code-router
Homepage: https://ccrdesk.top/
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2026-08-25T14:03:58+00:00

## Health v2 (maintenance only)
Score: 87/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 99, longevity 39
- inputs: {"age_days": 555, "days_push": 8, "days_rel": 9, "gap_med": 1.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 36893, forks 3095 (observed 2026-08-28T04:12:01.263272+00:00)

## What it is
Claude Code Router (CCR) is a self-hosted local model gateway and control plane that routes AI coding agent requests (Claude Code, Codex, Grok CLI, etc.) across multiple LLM providers with conditional routing, failover, and request rewriting. It ships as a desktop app, npm CLI, or Docker deployment, and adds Fusion model composition, ToolHub MCP tool aggregation, request logging, and IM bot integration (AgentClaw).

## Use cases
- route claude code requests to deepseek or openrouter models
- set up failover between multiple llm providers for coding agents
- combine a text model with vision or web search into one model endpoint
- aggregate multiple mcp servers into a single tool search entry
- log token usage and cost for every agent request
- run a local llm gateway for codex and other cli agents
- expose a local coding agent as a slack or discord bot

## When to choose
- you use Claude Code or similar coding agents and want to switch or mix model providers
- you need conditional routing, retries, and failover across LLM APIs
- you want local logging and cost observability for agent traffic
- you want to extend models with vision, search, or MCP tools via composition

## When to avoid
- you only use a single provider directly with no routing needs
- you need a fully managed cloud gateway rather than a self-hosted service
- your agent does not support configurable API endpoints

## Facets
- artifact type: service
- maturity: active
- function: llm-inference, api-gateway, proxy, routing, mcp, agent-framework, monitoring, logging
- domain: large-language-models, developer-tools, self-hosted, apis
- platform: cross-platform, windows, self-hosted, cli
- tags: model-router, claude-code, llm-gateway, provider-failover, mcp-toolhub, model-fusion, agent-observability, im-bot, ai-agents, macos, linux, docker, nodejs, desktop

## Member repositories
- musistudio/claude-code-router (main) score 87

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:12:01.263272+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:25:47.738415+00:00, confidence not recorded.
  - readme: https://github.com/musistudio/claude-code-router (fetched 2026-08-28T04:12:01.263272+00:00, sha ea688a8d89d7)
  - homepage: https://ccrdesk.top/ (fetched 2026-08-29T07:47:40.372521+00:00, sha 7bca58747ce0)
  - site_page: https://ccrdesk.top/guides/install (fetched 2026-08-29T07:47:40.382467+00:00, sha 848248505c0b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
