luwill

Claude Code Model Router — AI skill for Claude Code

AI community

A lightweight API gateway that lets you switch to third-party AI models when using Claude Code.

How to install Claude Code Model Router

This entry records only its repository, not the path inside it, so there is no exact command to give. Open luwill/Claude-Code-Model-Router and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code Model Router does

A lightweight API gateway that lets you switch to third-party AI models when using Claude Code.

Alternatives in AI

  • Claude Code Switch — One-command model switcher for Claude Code (Only for Anthropic API) 655 ★
  • Devo — Model-neutral agent desktop/runtime for private, enterprise, and OpenAI-compatible / Anthropic-compatible mode 316 ★
  • Brick SR1 — brick is a smart AI Models router, based on complexity & capabilities extraction from the query to the models 128 ★

README

[![npm version](https://img.shields.io/npm/v/claude-code-model-router.svg)](https://www.npmjs.com/package/claude-code-model-router) [![npm downloads](https://img.shields.io/npm/dm/claude-code-model-router.svg)](https://www.npmjs.com/package/claude-code-model-router) [![CI](https://github.com/luwill/Claude-Code-Model-Router/actions/workflows/ci.yml/badge.svg)](https://github.com/luwill/Claude-Code-Model-Router/actions/workflows/ci.yml) [![node](https://img.shields.io/badge/node-%3E%3D18-green.svg)](https://www.npmjs.com/package/claude-code-model-router) [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)

🔀 ccmr — Claude Code Model Router

**Switch between 40+ third-party models mid-conversation — no restarts, no config editing.**

ccmr is a lightweight gateway that runs on your machine: Claude Code talks to it, and it forwards every request verbatim to whichever model you pick — DeepSeek, Kimi, Qwen, GLM, MiniMax, Step, MiMo or Doubao Seed, 42 models across 8 vendors, all prewired. Type `/model kimi` in a session and the very next message runs on Kimi. When a key dies, the error tells you exactly which env var to fix, where to get a new key, and the command that verifies it. Config edits hot-reload in about a second. Loopback-only by default; everything stays local.

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

$ npx claude-code-model-router@latest setup

Providers (key status from environment and .env):
   1. DeepSeek        DEEPSEEK_API_KEY        [no key]
   2. Kimi            KIMI_API_KEY            [no key]
   ... (18 entries, console URLs included)
Configure which providers? 1
Paste DEEPSEEK_API_KEY for DeepSeek (get one: https://platform.deepseek.com/): ********
Verify keys now with one tiny request per provider? [y/N] y
  [OK] deepseek-v4-pro
Default model [deepseek-flash] (Enter = accept):

$ ccmr claude        # into Claude Code — switch freely, in-session:
> /model kimi        # last message was DeepSeek, this one is Kimi
>