mirror of
https://github.com/musistudio/claude-code-router.git
synced 2026-01-29 22:02:05 +00:00
feature/cli
Claude Code Router
This is a repository for testing routing Claude Code requests to different models.
Usage
- Install Claude Code
npm install -g @anthropic-ai/claude-code
- Install Claude Code Router
npm install -g @musistudio/claude-code-router
- 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:
You need to move them to the $HOME/.claude-code-router/plugins directory and configure 'usePlugin' in $HOME/.claude-code-router/config.json,like this:
{
"usePlugin": "gemini",
"LOG": true,
"OPENAI_API_KEY": "",
"OPENAI_BASE_URL": "",
"OPENAI_MODEL": ""
}
Features
- Plugins
- [] Support change models
- [] Suport scheduled tasks
Languages
TypeScript
96.2%
JavaScript
2.3%
CSS
0.7%
Shell
0.5%
Dockerfile
0.2%