@musistudio/claude-code-router 1.0.58 → 1.0.60

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +27 -0
  2. package/dist/cli.js +3965 -516
  3. package/package.json +4 -2
package/README.md CHANGED
@@ -24,6 +24,7 @@
24
24
  - **Multi-Provider Support**: Supports various model providers like OpenRouter, DeepSeek, Ollama, Gemini, Volcengine, and SiliconFlow.
25
25
  - **Request/Response Transformation**: Customize requests and responses for different providers using transformers.
26
26
  - **Dynamic Model Switching**: Switch models on-the-fly within Claude Code using the `/model` command.
27
+ - **CLI Model Management**: Manage models and providers directly from the terminal with `ccr model`.
27
28
  - **GitHub Actions Integration**: Trigger Claude Code tasks in your GitHub workflows.
28
29
  - **Plugin System**: Extend functionality with custom transformers.
29
30
 
@@ -229,6 +230,32 @@ This will open a web-based interface where you can easily view and edit your `co
229
230
 
230
231
  ![UI](/blog/images/ui.png)
231
232
 
233
+ ### 5. CLI Model Management
234
+
235
+ For users who prefer terminal-based workflows, you can use the interactive CLI model selector:
236
+
237
+ ```shell
238
+ ccr model
239
+ ```
240
+ ![](blog/images/models.gif)
241
+
242
+ This command provides an interactive interface to:
243
+
244
+ - View current configuration:
245
+ - See all configured models (default, background, think, longContext, webSearch, image)
246
+ - Switch models: Quickly change which model is used for each router type
247
+ - Add new models: Add models to existing providers
248
+ - Create new providers: Set up complete provider configurations including:
249
+ - Provider name and API endpoint
250
+ - API key
251
+ - Available models
252
+ - Transformer configuration with support for:
253
+ - Multiple transformers (openrouter, deepseek, gemini, etc.)
254
+ - Transformer options (e.g., maxtoken with custom limits)
255
+ - Provider-specific routing (e.g., OpenRouter provider preferences)
256
+
257
+ The CLI tool validates all inputs and provides helpful prompts to guide you through the configuration process, making it easy to manage complex setups without editing JSON files manually.
258
+
232
259
  #### Providers
233
260
 
234
261
  The `Providers` array is where you define the different model providers you want to use. Each provider object requires: