Find a file
2025-06-10 12:55:25 +08:00
plugins add cli 2025-06-10 12:55:25 +08:00
screenshoots Add an .env.example file and provide more detailed instructions. 2025-03-01 23:12:31 +08:00
src add cli 2025-06-10 12:55:25 +08:00
.gitignore support deepseek-v3-20250324 2025-03-25 14:51:28 +08:00
.npmignore add cli 2025-06-10 12:55:25 +08:00
CLAUDE.md add cli 2025-06-10 12:55:25 +08:00
config.json add cli 2025-06-10 12:55:25 +08:00
package.json add cli 2025-06-10 12:55:25 +08:00
pnpm-lock.yaml support deepseek-v3-20250324 2025-03-25 14:51:28 +08:00
README.md add cli 2025-06-10 12:55:25 +08:00
tsconfig.json support deepseek-v3-20250324 2025-03-25 14:51:28 +08:00

Claude Code Router

This is a repository for testing routing Claude Code requests to different models.

Usage

  1. Install Claude Code
npm install -g @anthropic-ai/claude-code
  1. Install Claude Code Router
npm install -g @musistudio/claude-code-router
  1. Start Claude Code by claude-code-router
ccr code

Plugin

The plugin allows users to rewrite Claude Code prompt and custom router. The plugin path is in $HOME/.claude-code-router/plugins. Currently, there are two demos available:

  1. custom router
  2. rewrite prompt

You need to move them to the $HOME/.claude-code-router/plugins directory and configure 'usePlugin' in $HOME/.claude-code-router/config.jsonlike this:

{
    "usePlugin": "gemini",
    "LOG": true,
    "OPENAI_API_KEY": "",
    "OPENAI_BASE_URL": "",
    "OPENAI_MODEL": ""
}

Features

  • Plugins
  • [] Support change models
  • [] Suport scheduled tasks