GitHub - musistudio/claude-code-router: Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the model while enjoying updates from Anthropic.

musistudio ยท article ยท 2026-07-11 source โ†— Reader ๐Ÿ–ฅ๏ธ

Agent HarnessAI Unit EconomicsCapability Provisioning (right-sizing to the task)Claude CodeFrontier Model Convergence / CommoditizationLocal AIModel RoutingOpen-Weight Models
Claude Code's harness should be decoupled from Anthropic's models: by running a local proxy that intercepts its API requests and routes each sub-task โ€” background, thinking, long-context, web-search โ€” to the cheapest capable model across many providers, with per-provider transformers normalizing each vendor's API dialect into Claude Code's Anthropic-shaped protocol, you keep Anthropic's coding harness and its updates while freely choosing, mixing, and cost-optimizing the model behind it.

practical ยท mixed โ€” A tool README: how-to exposition (installation, config.json walkthroughs, transformer tables, CI recipes) wrapped around an argumentative spine โ€” you SHOULD run Claude Code through a router that swaps the model per task. Its propositions serve 'you can/should do X', so it reads as a practical text with an implicit thesis rather than a neutral manual.

Structure

PartRole
Features list (Model Routing, Multi-Provider, Transformers, Dynamic Switching, GitHub Actions, Plugins)States the capability surface up front โ€” the six things the tool claims to let you do.
Getting Started: install + config.json anatomy (PROXY_URL, APIKEY, HOST, Providers, Router)Operationalizes the claim โ€” shows the proxy sits between Claude Code and the model endpoints and is driven by a single config file.
Providers + Transformers reference (built-in transformer catalog, options, custom transformers)Explains how heterogeneous provider APIs are made compatible โ€” the adaptation layer.
Router + Custom Router + Subagent RoutingSpecifies the routing policy surface โ€” scenario categories, arbitrary JS logic, and per-subagent pinning.
GitHub Actions integration + 'off-peak to reduce API costs' noteExtends the tool from interactive use into CI/automation and names the payoff.

Key terms

Propositions

Arguments

You should run Claude Code through a router that dispatches each request to the cheapest capable model per task type across many providers. strength: medium
Explicit premises:
Implicit premises:
Inferences:

Narratives

Questions addressed

Gaps

Closes gaps elsewhere

Related documents