dragonxia-ctrl

Claude Model Router — DevOps skill for Claude Code

DevOps community

Safety-first local Claude Code router for DeepSeek and Kimi, with reversible installation and hardened Docker deployment.

How to install Claude Model Router

This entry records only its repository, not the path inside it, so there is no exact command to give. Open dragonxia-ctrl/claude-model-router and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Model Router does

Safety-first local Claude Code router for DeepSeek and Kimi, with reversible installation and hardened Docker deployment.

Alternatives in DevOps

  • Claude Code Router — Use Claude Code as the foundation for coding infrastructure, allowing you to decide how to interact with the m 30.1k ★
  • Zhikuncode — Codex/Claude Code/Cursor的开源增强版,专注一句话实现复杂长程任务(教育、编程、办公、生活、娱乐、游戏) 473 ★
  • Claude Code Sandbox — Run Claude Code safely in local Docker containers without having to approve every permission 301 ★

README

Claude Model Router

**English** | [简体中文](README.zh-CN.md)

[![CI](https://github.com/dragonxia-ctrl/claude-model-router/actions/workflows/ci.yml/badge.svg)](https://github.com/dragonxia-ctrl/claude-model-router/actions/workflows/ci.yml) [![Node.js](https://img.shields.io/badge/node-%3E%3D20-brightgreen)](https://nodejs.org/) [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

A local, safety-first routing proxy for **Claude Code**. It keeps DeepSeek as the default model and escalates to Kimi only when public benchmark evidence or live task signals show a clear Kimi advantage.

**Status:** early public release. Currently supports **DeepSeek and Kimi only**.

This is an independent community project. It is not affiliated with or endorsed by Anthropic, DeepSeek, or Moonshot AI. Claude Code is a product of Anthropic.

**Version information:** [VERSIONS.md](VERSIONS.md) — what each version changed, why, and the measurements behind it. Current release: **v2 (1.2.0)**.


Why this exists

Claude Code supports one model setting per session. That is simple, but it is a poor fit for mixed workloads:

  • Most coding, refactoring, Kaggle, data-science, finance, and legal work does not need the most expensive model.
  • Long-horizon terminal work, difficult source-verification research, frontier mathematics, complex visual reasoning, and video tasks can benefit from a stronger model.
  • Switching models by hand breaks flow and is easy to forget.

This project puts a small HTTP proxy on `127.0.0.1` between Claude Code and the providers. Claude Code sees one local endpoint. The proxy chooses DeepSeek or Kimi for each request, streams the response back, and preserves provider-compatible conversation state.

**Guiding rule:** use Kimi only for demonstrated advantage categories. Everything else stays on DeepSeek.


What it does

  • Routes Claude Code's Anthropic-compatible Messages API traffic to DeepSeek or Kimi.
  • Defaults to **DeepSee